SDL and object OpenGL

Started by
0 comments, last by vgmtech 18 years, 9 months ago
Hi, I'm having a few issues with trying to encapsulate my opengl functions within a class so they now are member functions.I want it to run something like: int main(){ Grid *grid = new Grid(SCREEN_WIDTH, SCREEN_HEIGHT); grid-> init(); grid->createlists(); grid->initSDL(SCREEN_WIDTH,SCREEN_HEIGHT); grid->DrawScene(SCREEN_WIDTH,SCREEN_HEIGHT); } Obviously I can't use GLUT (even if I make member functions static I cant call any other mamber functions frokm the same class) but when I use SDL I have some performance issues , especially when resizing the window , it will take about 2 seconds for the window to appear . I was wondering if there are any issues with Mesa and SDL ? Has anyone used GLFW ? and is that a better alternative to SDL ? Regards
Advertisement
Do you have any code? and i have tryed GLFW and SDL there both the same, well all most.

The only alternative's can be your OS, like Win32 API and DirectImnput.

What do you need?

This topic is closed to new replies.

Advertisement