Code::Blocks Forums

User forums => General (but related to Code::Blocks) => Topic started by: jcheng3305 on April 08, 2010, 06:39:33 am

Title: Different application templates
Post by: jcheng3305 on April 08, 2010, 06:39:33 am
As I am learning OpenGL programming on Code::Blocks, I found that, for any new project issusing, there are a lot of available application templates, such as OpenGL application, GLUT application, SDL application,.. etc.   What are the difference in-between?  Should I only stick on OpenGL application, but someone informed to use SDL application?  Please help.  Tks.
Title: Re: Different application templates
Post by: MortenMacFly on April 08, 2010, 06:49:21 am
As I am learning OpenGL programming on Code::Blocks

Should I only stick on OpenGL application, but someone informed to use SDL application?  Please help.  Tks.
This depends on what you are actually doing. For learning OpenGL the OpenGL template is enough, as it is just based on the core OpenGL libraries (API).
Another options would be glut which wraps a lot of things in OpenGL to a higher application layer.
If you are doing game programming and need an even higher abstraction layer, try SDL or similar. Surely this may not teach the "core" OpenGL programming, as the OpenGL core is... erm... abstracted in a sense.

If unsure read yourself into the documentation of these libraries and decide what's right for you. This decision is out of the scope of this forum. If you need help, try a game programming forum. This forum is related to Code::Blocks development only. Code::Blocks does not make use of any OpenGL functionality - so there is not much help here.
Title: Re: Different application templates
Post by: jcheng3305 on April 08, 2010, 07:57:17 am
Noted with thanks. :P