SFML community forums

Help => Graphics => Topic started by: acrin1 on August 30, 2007, 02:03:06 pm

Title: OpenGL and SFML Graphics in a single window
Post by: acrin1 on August 30, 2007, 02:03:06 pm
Hi,

Apologies if this is a silly question. Is is possible to draw an OpenGL 3D view in an SFML window but use SMFLs 2D graphics functions in the same window? E.g. for displaying text or overlaying sprites.

Thanks
Title: OpenGL and SFML Graphics in a single window
Post by: Moomin on August 30, 2007, 02:06:09 pm
Yes, just look at the opengl sample project.
Title: OpenGL and SFML Graphics in a single window
Post by: Laurent on August 30, 2007, 02:07:51 pm
Yes, have a look at the OpenGL sample, it does exactly what you want.
Title: OpenGL and SFML Graphics in a single window
Post by: acrin1 on August 30, 2007, 03:44:06 pm
Quote from: "Laurent"
Yes, have a look at the OpenGL sample, it does exactly what you want.


Thanks. That's great. I'd been looking at the OpenGL tutorial rather than the sample progrem.

My current SDL/OpenGL project has the 2D stuff done with OpenGL which I find less convenient. This will make things a lot easier for me.

thanks again.