Horde3D

Next-Generation Graphics Engine
It is currently 16.04.2024, 10:16

All times are UTC + 1 hour




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Using SFML with Horde3D
PostPosted: 26.06.2011, 04:29 
Offline

Joined: 26.06.2011, 04:24
Posts: 1
There are some other posts about this, but one in particular has a broken link to an example.

Does anyone have a simple example of how to use horde3d with sfml? It would be much appreciated. I am trying to work from the examples into sfml, but only garbage is rendering.

Thanks


Top
 Profile  
Reply with quote  
PostPosted: 01.08.2011, 19:58 
Offline

Joined: 01.08.2011, 19:54
Posts: 5
I use Horde with SFML. It works pretty well, but one thing you have to remember is to call sf::Window::SaveGLStates() before you call h3dInit(), because h3dInit() will change GL state away from what SFML wants. Then, in the rendering loop, you will draw everything in Horde, then call sf::Window::RestoreGLStates() preparatory to drawing anything in SFML. After you restore states, call sf::Window::SaveGLStates() one last time to push the state back onto the stack preparatory to the next iteration of the loop.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 10 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group