SFML community forums
Help => Graphics => Topic started by: CombatWombat on September 03, 2012, 08:04:00 pm
-
Maybe I'm missing something obvious here, but is there no way to translate and/or rotate a vertexArray?
Regenerating the entire geometry each frame is too slow already. Essentially I need something like:
glTranslatef(x,y);
glRotatef(angle);
window.draw(vertexArray);
Would mixing opengl and sfml in that way cause unexpected effects with regards to their transforms fighting?
-
Pass sf::RederStates object, it can contain a transformation or derieve from vertexarray and transformable and impelement own virtual draw function.
-
ooh, excellent. Didn't realize that was hidden in the render states bit. Thanks.