Author Topic: Different application templates  (Read 3307 times)

Offline jcheng3305

  • Multiple posting newcomer
  • *
  • Posts: 11
  • Super!
Different application templates
« 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.
New guy on C++/Code::Blocks/OpenGL....!

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: Different application templates
« Reply #1 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.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline jcheng3305

  • Multiple posting newcomer
  • *
  • Posts: 11
  • Super!
Re: Different application templates
« Reply #2 on: April 08, 2010, 07:57:17 am »
Noted with thanks. :P
New guy on C++/Code::Blocks/OpenGL....!