ANY one worked on A project and knows how to start one in codeblocks with Graphics?

Dec 9, 2012 at 5:23pm
ANY one worked on A project and knows how to start one in codeblocks with Graphics? cause i want to do a flight sim in C++
Dec 10, 2012 at 4:26am
Alright so this is a super broad question, because of that I am going to assume you are new to graphics programming and/or c++. So, first of all you need to decide what type of graphics you are going to use (2d, or 3d?) Then, you need to decide if you want speed or simplicity. Because of your experience, I am going to assume simply 2d graphics, to start. So use a library know as SDL. Follow the tutorials on this website http://lazyfoo.net/SDL_tutorials/index.php. Also, read these articles.

Must read - http://lazyfoo.net/articles/article01/index.php

Would certainly help if you want anyone on here to help you with your code - http://lazyfoo.net/articles/article02/index.php

And this would be good to read, but it is not necessary. It just makes your life easier when code gets more complex. http://lazyfoo.net/articles/article07/index.php

Reply if you have a more specific problem setting up said library.
Dec 10, 2012 at 6:09am
got it next?
Last edited on Dec 10, 2012 at 6:17am
Dec 10, 2012 at 6:19am
You could have stated that in the first place. Tried searching for a few WINBGI tutorials?
Dec 10, 2012 at 6:24am
got the BGI LIBRARY for codeblocks IDE next?
Last edited on Dec 10, 2012 at 6:26am
Dec 10, 2012 at 2:00pm
alright, I am not sure what the BGI library is, but if you followed the first tutorial on the first link I posted you should have SDL set up. To confirm, run this program and return with the results.

1
2
3
4
5
6
7
#include <SDL/SDL.h>

int main(int argc, char **argv)
{
     SDL_Init(SDL_INIT_EVERYTHING);
     return 0;
}
Topic archived. No new replies allowed.