Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#79 Seperate thread for content loading

open
nobody
None
5
2012-02-19
2012-02-19
Anonymous
No

Hello, I am creating a game of which requires quite a bit of bitmap/font loading. Since there is a pretty big amount, I want to have a seperate thread for loading that, so that the gameplay doesn't freeze waiting for the images to load. I want the game to keep playing and the image will appear as they are loaded. I just recently switched to freeglut because of the portability between systems. That is great for me, except I would like a few functions to create a new context, make it current, and share the context. These are the three functions I used to get content loading on seperate threads when I was just using OpenGL and Win32 to make the application. I think this would be nice to have inside the library because I will have to include windows.h, xgl.h, etc depending on the platform, which means I will also have to link them to the project.

Discussion

  • huMOSV Great article. Great.

     
  • 87dqbY Looking forward to reading more. Great blog post.Really thank you!