Jump to content

Graphics library

- - - - -

  • Please log in to reply
6 replies to this topic

#1
zapdude1234

zapdude1234

    Learning Programmer

  • Members
  • PipPipPip
  • 31 posts
Hey im pretty new to C and C++ but ive learned all the basics through multithreading and wanted to try my hand at starting with a graphics library. i know of allegro and sdl, but does anyone else have some suggestions?

#2
Flying Dutchman

Flying Dutchman

    Programming God

  • Members
  • PipPipPipPipPipPipPip
  • 889 posts
  • Location:::1
SFML is a C++ platform independent library. Of course there's XNA from Microsoft and you can try OpenGL without any frameworks.
A conclusion is where you got tired of thinking.
#define class struct    // All is public.

#3
mebob

mebob

    Programming Expert

  • Members
  • PipPipPipPipPipPip
  • 490 posts
If you want to use OpenGL but don't want to deal with the low level stuff for creating windows and OpenGL contexts, you could try GLFW - An OpenGL library. You can also do it with SFML and SDL.
Latinamne loqueris?

#4
zapdude1234

zapdude1234

    Learning Programmer

  • Members
  • PipPipPip
  • 31 posts
Thanks you. Right now i have the mingw compiler. how do i add a graphics library in or do i need to get an ide like code::blocks?

#5
mebob

mebob

    Programming Expert

  • Members
  • PipPipPipPipPipPip
  • 490 posts
It depends. What library are you trying to use? You'll probably find guides for installing them on the respective library's website.

And no you don't need to use an IDE but it may make it easier.
Latinamne loqueris?

#6
bbqroast

bbqroast

    Codecall Addict

  • Members
  • PipPipPipPipPipPipPip
  • 554 posts
  • Location:/etc/passwd

zapdude1234 said:

Thanks you. Right now i have the mingw compiler. how do i add a graphics library in or do i need to get an ide like code::blocks?
Everytime you compile you will have to link all the libraries in the command (you could use a batch script) so I recommend a IDE, easiest route is probably to delete MinGW and download the Code::Blocks + MinGW package (less of a headache).

Check out lazyfoo.net for a indepth tutorial on linking SDL (other libraries are similar, just go to the first tutorial, select Windows and then select Code::Blocks).
Please, write clearly with proper structure. Double spacing makes the text feel un-jointed, Capitalizing Every Word Means People Stop Before Every Word Sub-Consciously Which Is A Pain In The Backside, and use code tags! (The right most styling box).

#7
Soryy708

Soryy708

    Learning Programmer

  • Banned
  • PipPipPip
  • 61 posts
C + SDL + OpenGL + Code::Blocks + Lazy Foo' Productions == Profit$$$




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users