SFML 2D Rendering over OpenGL

SFML 2D Rendering over OpenGL

Postby eawerbaneth » Mon Apr 09, 2012 4:40 am

Hi everyone,

I've started working on my Game Architecture final project and wanted to pass on a few observations I came across. I'm using SFML 2.0 as a windowing vehicle, and because I had some previous experience with SFML 1.6, I thought I would just write my own GUI. As far as I can tell, SFML doesn't play nice with OpenGL objects drawn using a VBO, but rather require the glBegin(GL_WHATEVER)...glEnd() method. I've posted a question about this on the SFML forums, but because SFML 2.0 is in development and the problem is kind of obscure, I'm not really crossing my fingers for a concrete solution.

It doesn't really make sense to me why drawing with a VBO would make SFML behave differently than drawing with the older method, but I know that SFML does use certain internal OpenGL states for 2D rendering, and it may be that I am just making an error somewhere. If anyone does happen to successfully blend 2D SFML with OpenGL, please let me know.
Posts: 5
Joined: Thu Feb 09, 2012 5:38 pm

Return to Game Development

Who is online

Users browsing this forum: No registered users and 2 guests