SFML community forums
Help => Graphics => Topic started by: snaef98 on May 23, 2011, 04:07:59 pm
-
Hi,
I'm trying to build a video game similar to the old might and magic game on the Sega... with 2d vide movement and text. I've been able to initialize a blank openGL window and play music but ive been having problems printing a string to the window, also when i load music to the window the window itself seems to cause stuff to loop. Im very new to this kind of programming since im used to console applications. If anyone could point me in the direction for getting a basic window setup id appreicate it thanks!
-
I've been able to initialize a blank openGL window
Why OpenGL? Concerning basic 2D graphics, SFML should provide everything you need. Only for more advanced stuff, OpenGL is necessary.
but ive been having problems printing a string to the window
Have you taken a look at the SFML tutorials, especially the one that explains how to draw strings/texts?
-
I seriously don't understand why you're using OpenGL (OpenGL is for 3D games, not 2D) :?
Here's the tutorial on the site for displaying strings:
http://www.sfml-dev.org/tutorials/1.6/graphics-fonts.php
-
I think i was wrong accually its the the regular window not opengl window but i think the problem lies with the fact im using Catalyst 11.5 with ATI graphics i read somewhere that anything past 10.10 won't work with SFML? Im using visual studio 2008 SFML 1.6 with radeon HD 5870 / Catalyst 11.5
The program compiles correctly but after i updated my graphics drivers now the window won't even open it just sits idle with the console window.
Prior to this i was able to open a blank window, load some music but was unable to get the fonts/text string to load.
-
I think i was wrong accually its the the regular window not opengl window but i think the problem lies with the fact im using Catalyst 11.5 with ATI graphics i read somewhere that anything past 10.10 won't work with SFML? Im using visual studio 2008 SFML 1.6 with radeon HD 5870 / Catalyst 11.5
The program compiles correctly but after i updated my graphics drivers now the window won't even open it just sits idle with the console window.
Prior to this i was able to open a blank window, load some music but was unable to get the fonts/text string to load.
If you're using SFML 1.6 or an older version of SFML2, you'll get errors with ATi drivers. Use a new build of SFML2.