Quote Originally Posted by Lifepower View Post
By the way, if you are using DGL headers, where do you call InitOpenGL(), ReadExtensions() and ReadImplementationProperties()?
- (Optional, create window here. You can use ready TForm, or with Lazarus you should use TOpenGLContext.)
- InitOpenGL()
- Create window (if wasn't already)
- Initialize rendering context (don't need to do much with TOpenGLContext, at least MakeCurrent())
- ReadExtensions()
- ReadImplementationProperties()
- Now you can initialize the projection matrix, load textures etc.