Sign in to follow this  
moetman

SDL and object OpenGL

Recommended Posts

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

Share this post


Link to post
Share on other sites
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?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this