Jump to content
  • Advertisement
Sign in to follow this  
moetman

SDL and object OpenGL

This topic is 4819 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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
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?

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!