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 - jammer312

Pages: [1]
1
Graphics / Re: About sprites.
« on: March 16, 2014, 10:59:22 am »
I trying to implement it with AS, so game will be easily moddable. For it each entity needs it's own texture file

2
Graphics / Re: About sprites.
« on: March 16, 2014, 10:48:02 am »
Using many textures also eats memory I think, and also
Quote
Using as few textures as possible is a good strategy, and the reason is simple: changing the current texture is an expensive operation for the graphics card. Drawing many sprites that use the same texture will give you the best performances.
It's quote from official tutorial.

3
Graphics / About sprites.
« on: March 16, 2014, 10:38:57 am »
I made class that have sf::Sprite or vector of sf::Sprite. Is there any way to make them work without existing texture?
I mean that I load sprites object(made by me, to handle sf::sprites) by loading image file into texture that created using 'new'. Then I load texture into sprite and finally make object with copy of that sprite. But it cost big amount of perfomance as I read in tutorial to change textures. So, is there any way to either construct one texture made of other textures, so I can load .png file into texture, then append my texture and somehow draw my newly created texture on that texture and delete newly created texture, so it's like appending texture with other texture, or make sprite work without reference to texture?

Pages: [1]
anything