SFML community forums

Help => Graphics => Topic started by: Grimshaw on March 06, 2012, 12:49:52 am

Title: Feature request for sf::Texture
Post by: Grimshaw on March 06, 2012, 12:49:52 am
I am using SPARK 2 particle systems, and its renderer gets a texture id,
to draw alpha-tested quads as particles.

Because I load my textures as sf::Texture, i cannot use them with SPARK , because there is no method to get the texture id.

Could you please expose such a method ?! Thanks
Title: Feature request for sf::Texture
Post by: Laurent on March 06, 2012, 12:49:01 pm
Nop.

Already discussed in other threads ;)

Loading an OpenGL texture is not complicated, look at the OpenGL example in SFML.
Title: Feature request for sf::Texture
Post by: Grimshaw on March 06, 2012, 02:01:06 pm
But why replicate the texture to use in each of the libraries? When i could share it?

Okay im convinced ahah! :)
Title: Feature request for sf::Texture
Post by: Elgan on March 06, 2012, 02:04:42 pm
nice, one of my fave games, a little descrip[tion, screenshot, and a notice that it is windows would be good for peeps.

it should show the best score;

I had a go, got 13.
Title: Feature request for sf::Texture
Post by: Haikarainen on March 09, 2012, 02:22:53 pm
SFML is opensource, couldnt be so hard to create a getter yourself for sf::Texture ? ;)