Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Graphics without RenderWindow  (Read 7100 times)

0 Members and 1 Guest are viewing this topic.

Henrik.Flink

  • Newbie
  • *
  • Posts: 21
    • View Profile
Graphics without RenderWindow
« 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?

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Graphics without RenderWindow
« Reply #1 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.
Laurent Gomila - SFML developer

Henrik.Flink

  • Newbie
  • *
  • Posts: 21
    • View Profile
Graphics without RenderWindow
« Reply #2 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 ) );

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Graphics without RenderWindow
« Reply #3 on: January 08, 2008, 03:47:56 pm »
What's the values of xSize and ySize ? Which version of SFML are you using ?
Laurent Gomila - SFML developer

Henrik.Flink

  • Newbie
  • *
  • Posts: 21
    • View Profile
Graphics without RenderWindow
« Reply #4 on: January 08, 2008, 05:08:22 pm »
x & y size are  32 and im using sfml 1.2

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Graphics without RenderWindow
« Reply #5 on: January 09, 2008, 02:00:56 am »
Which revision of the sources ?
Laurent Gomila - SFML developer

Henrik.Flink

  • Newbie
  • *
  • Posts: 21
    • View Profile
Graphics without RenderWindow
« Reply #6 on: January 09, 2008, 12:46:05 pm »
oh i ment 1.1