Jump to content
  • Advertisement

Ryan_Burnside

Member
  • Content count

    13
  • Joined

  • Last visited

Community Reputation

109 Neutral

About Ryan_Burnside

  • Rank
    Member
  1. Hello fellow programmers! After some thought I've decided that I'd like to launch a little project. I've created a different forum where the focus is on presentation of effects and amusements platform independent pseudocode. The core concept of my forum is presentation of classic effects in such a way that any programmer can implement them in any language. A C++ programmer need not struggle through Lisp nor a Python programmer get lost in x86 assembly language to learn a neat effect. The effects and amusements we focus on are mostly static raster effects such as fractals. That said we also have some cellular automaton examples that are meant to be enjoyed in real time. My moderators and hand selected members have done a great job laying down some examples for you to try. We look forward to more user contributed pseudocode. It is not about compiled works, it is about giving other programmers some recreations to try on a lazy afternoon. Please join if you want to contribute! (The URL is a bit hard to remember, so do bookmark and come back ) We do have an approval system to avoid bots so please give me a few hours to approve you (I do actually sleep sometimes) http://forums.pixeloutlaw.smakweb.com/index.php <- Ultimate Effects Universe Forum Here is one such example we cover "Attractors" Learn to make such things in your language today!
  2. Ryan_Burnside

    [C++] Execute from command line with path to file

    Thank you very much. I intend to use this file path as an argument for loading files. I seem to recall somebody mentioning that C++ cannot see outside of the current directory the application is running from. This might be a problem I guess even though I can pass an absolute path via the command line to the starting program Is this true?
  3. Hello, I'm trying to make a terminal based program that will take a path to a file as a parameter. How can this be done with C++? Something like: run my_program <pathname parameter here>
  4. Ryan_Burnside

    Code::Blocks, CImg

    Thank you SO much! Working now! What is a general rule of thumb process when adding a new library to a project? It seems that no two libraries share exactly the same steps...
  5. Ryan_Burnside

    The first step for graphics in C++?

    Well you can't expect C++ to have any functions to draw and create graphics beyond simple text based visuals (terminal output). C++ is a powerful language that was developed for very low level work. However, it is quite popular and people have written libraries that allow it to work with hardware to render graphics. As far as I know there is really no way around adding a library like SFML, SDL, or Allegro. You can probably play a bit with text adventures with primitive ASCII graphics if you want to just get something visual working. I'd use a 2D screen buffer of chars to make ASCII graphics and pictures. C++ is a very lean and fast language that was made for low level work. We can adapt it to other needs however like rendering graphics, sounds, and joystick polling. In this way, C++ works like glue, by binding components together so that we can use elements and functions from libraries.
  6. Ryan_Burnside

    Code::Blocks, CImg

    Hello, Recently I've downloaded Code::Blocks because I'd like to make projects that are open and multi platform. I want to make a very simple program that uses the C image liberary CImg. The whole library is included in a single header called :CImg.h". I've included this in the same folder as my project I wish to work on. I have also included the header file in my source code for the project. The minimum code contained in my main.cpp file looks like this: #include "CImg.h" using namespace cimg_library; int main() { const unsigned char purple[] = { 255,0,255 }; CImg<unsigned char>(640,400,1,3,0).draw_text(100,100,"Hello World",purple).display("My first CImg code"); return 0; } Upon compiling I get the following errors: obj\Release\main.o:main.cpp|| undefined reference to `SetDIBitsToDevice@48'| obj\Release\main.o:main.cpp|| undefined reference to `SetDIBitsToDevice@48'| obj\Release\main.o:main.cpp|| undefined reference to `SetDIBitsToDevice@48'| obj\Release\main.o:main.cpp|| undefined reference to `SetDIBitsToDevice@48'| obj\Release\main.o:main.cpp|| undefined reference to `SetDIBitsToDevice@48'| obj\Release\main.o:main.cpp|| more undefined references to `SetDIBitsToDevice@48' follow| ||=== Build finished: 6 errors, 0 warnings ===| I'm not used to really working much with external dependencies with Code::Blocks and I've not ventured beyond playing with SFML (which I got working following a tutorial). I'm working on Windows 7 at the moment if that is of any help. I'm not advanced with C++ but I have an understanding of the core library. Adding dependent libraries is really a headache it seems...
  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!