GLWindow

Download GLWindow

Example

Putting this all together, linking with opengl32.lib and glu32.lib, we have our window set up. Running the application is as easy as instantiating a GLWindow object and calling mainLoop

#include "GLWindow.h"

int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow)
{
GLWindow* window = new GLWindow();
window->mainLoop(hInstance, hPrevInstance, lpCmdLine, nCmdShow);
delete window;
}

Pages: 1 2 3 4 5 6 7 8

No Comments »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a comment

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>