Jump to content

OpenGL beginner questions.

- - - - -

  • Please log in to reply
3 replies to this topic

#1
notes

notes

    Learning Programmer

  • Members
  • PipPipPip
  • 48 posts
Hi,

With a new semester I have new class called Basisc of computer graphis where we are learning about Open Graphics Library.
I have few questions which Mr. Google couldnt answer.
1) Declaration :
long pascal Window_Procedure (HWND hwnd, unsigned int m, unsigned int w, long p)
What is 'pascal' and where it comes from ?

2)
wc.hIcon			= LoadIcon(NULL, IDI_WINLOGO);			// Load The Default Icon
How can I load another iconm how to make one and so on..

3)And Finally, almost in every code I can find something like :
  MSG msg;

  while(::GetMessage(&msg, NULL, 0, 0))

  {

    ::TranslateMessage(&msg);

    ::DispatchMessage(&msg);

  }
I can't seem to find class MSG. What this loop is doing ?
Where it's dispatching msg ?

4) Apart from classes, our teacher recommended to us NeHe Productions - Everything OpenGL page for free solid tutorials, however I find it preety difficult. The first lesson has way too much loops and tweaks and It's also hard to read since there are no header files. Can any one recommend me other OGL page with nice tutorials ?
Remebre about KISS & DRY

#2
2Root

2Root

    Newbie

  • Members
  • Pip
  • 5 posts
Most of your questions involve the WinAPI. For loading a custom icon you should check msdn.

MSG is not a class, it is a structure that is used to store messages received by the windows application. It dispatches the next message in the structure to your window procedure so it can be translated.

The OpenGL red book is the best resource for learning opengl in my opinion.

#3
lethalwire

lethalwire

    while(false){ ... }

  • Members
  • PipPipPipPipPipPipPip
  • 748 posts
  • Programming Language:Java, PHP
  • Learning:Java, PHP
NeHe is the way to go. The full source code of the tutorials is located at the bottom of the page. (For several programming languages.)
Also, the OpenGL red book is another great resource.

#4
Flying Dutchman

Flying Dutchman

    Programming God

  • Members
  • PipPipPipPipPipPipPip
  • 889 posts
  • Location:::1
I heard (= read) somewhere that OpenGL 3.0 or 4.0 completely dropped several functions that NeHe's tutorial's are based on.
A conclusion is where you got tired of thinking.
#define class struct    // All is public.




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users