1
Graphics / Direct texture rendering
« on: December 23, 2015, 10:52:53 pm »
Hi,
I am new to SFML and came from plain OpenGL.
At the moment, I get known to SFML.
I am wondering whether there is some way to draw a texture directly to a RenderWindow.
For example:
So I dont have to create first for example a RectangleShape object or Sprite obejct, edit the properties like size and position, and finally draw it to the window.
This would also add some more efficiency to for example particle rendering, or in general short living dynamic objects.
Is there already something like this implemented or have I to implement such a texture renderer myself ?
I am new to SFML and came from plain OpenGL.
At the moment, I get known to SFML.
I am wondering whether there is some way to draw a texture directly to a RenderWindow.
For example:
myRenderWindow.draw(myTexture, myTextureSource, myTextureTargetSize);
So I dont have to create first for example a RectangleShape object or Sprite obejct, edit the properties like size and position, and finally draw it to the window.
This would also add some more efficiency to for example particle rendering, or in general short living dynamic objects.
Is there already something like this implemented or have I to implement such a texture renderer myself ?