Horde3D
http://www.horde3d.org/forums/

Using SFML with Horde3D
http://www.horde3d.org/forums/viewtopic.php?f=2&t=1547
Page 1 of 1

Author:  warrenr [ 26.06.2011, 04:29 ]
Post subject:  Using SFML with Horde3D

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

Author:  JTippetts [ 01.08.2011, 19:58 ]
Post subject:  Re: Using SFML with Horde3D

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.

Page 1 of 1 All times are UTC + 1 hour
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/