No, unless you use OpenGL directly.
There's no tutorial yet, but you can read the online API doc and the forum (and then ask more questions of course). There's nothing complicated:
- sf::RenderTexture has the same API as sf::RenderWindow, the only difference is that it draws to a texture
- sf::VertexArray is just like an array of sprites, except that the definition of the quads and their texture coordinates is more low-level
For this I'd rather go with sf::VertexArray. sf::RenderTexture is limited by the maximum size of texture supported by the graphics card, and the result cannot be easily edited after it is created.The texture size is a limit which should be worked around (not letting it grow to unreasonable sizes) but the question is rather, will the tiles have to change?
Is there no way I can Implement these features of 2.0 into 1.6?Implementing those features would set you way further back, than just switch to SFML 2 and investing some good time into your future. ;)
For this I'd rather go with sf::VertexArray. sf::RenderTexture is limited by the maximum size of texture supported by the graphics card, and the result cannot be easily edited after it is created.The texture size is a limit which should be worked around (not letting it grow to unreasonable sizes) but the question is rather, will the tiles have to change?
If not then drawing hundrets of vertices with their own textures (or sprite sheet) seems to me kind of extrem if you could just draw a few textures instead.
But then again GPUs are build to draw not only hundrets but thousands of vertices and you get a way more flexible system with a vertex array. :DIs there no way I can Implement these features of 2.0 into 1.6?Implementing those features would set you way further back, than just switch to SFML 2 and investing some good time into your future. ;)
Tiles will NOT change once the floor has been set down, And I just installed SFML 2 and am toying around with it now. I'm not seeing any sort of sf::RenderTexture, or sf::VertexArray :/
EDIT: Found .hpp but it's not a class type or whatever? I don't know.
Tiles will NOT change once the floor has been set down, And I just installed SFML 2 and am toying around with it now. I'm not seeing any sort of sf::RenderTexture, or sf::VertexArray :/
EDIT: Found .hpp but it's not a class type or whatever? I don't know.
RTFM: sf::RenderTexture (http://www.sfml-dev.org/documentation/2.0/classsf_1_1RenderTexture.php) & sf::VextexArray (http://www.sfml-dev.org/documentation/2.0/classsf_1_1VertexArray.php)
If you can't work with them in your project, then you're still using the old heards/libraries, change the settings in the project/make file.
If not then drawing hundrets of vertices with their own textures (or sprite sheet) seems to me kind of extrem if you could just draw a few textures instead.This kind of solution implies that all the tiles are in a single texture. If they are all in separate textures, this solution is ruined.
Also if someone could give me the lowdown on how to draw RenderTextures to a RenderWindow, that would be amazing. Since obviously RenderTextures aren't drawables. :IThe online doc shows a working example.
You have to #define SFML_STATIC.