SFML community forums

Help => General => Topic started by: Henrik.Flink on January 07, 2008, 09:50:16 pm

Title: Graphics without RenderWindow
Post by: Henrik.Flink on January 07, 2008, 09:50:16 pm
Is it possible to use the graphics pac without using a renderwindow, i just want the feature to create new images and not render anything att all, just a console window?
Title: Graphics without RenderWindow
Post by: Laurent on January 08, 2008, 02:00:35 am
Yep, there's no problem to use only the classes you need. No class is dependent of another to be able to work properly.
Title: Graphics without RenderWindow
Post by: Henrik.Flink on January 08, 2008, 02:41:41 pm
Hmm just a  side question, when i try to create an image i get these errors 7 times on different rows:
An internal OpenGL call failed in image.cpp (448) : GL_INVALID_OPERATION, the specified operation is not allowed in the current state

The Code:

Code: [Select]
sf::image world_image;
world_image.Create( xSize, ySize, sf::Color( 255,0,0 ) );
Title: Graphics without RenderWindow
Post by: Laurent on January 08, 2008, 03:47:56 pm
What's the values of xSize and ySize ? Which version of SFML are you using ?
Title: Graphics without RenderWindow
Post by: Henrik.Flink on January 08, 2008, 05:08:22 pm
x & y size are  32 and im using sfml 1.2
Title: Graphics without RenderWindow
Post by: Laurent on January 09, 2008, 02:00:56 am
Which revision of the sources ?
Title: Graphics without RenderWindow
Post by: Henrik.Flink on January 09, 2008, 12:46:05 pm
oh i ment 1.1