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

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Osccon

Pages: [1]
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:
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 ?

Pages: [1]
anything