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

Pages: [1]
1
General / Re: Making sf::Texture object a static member of a class.
« on: March 08, 2016, 11:07:51 am »
Making a resource manager is a great idea! :D
The resource tutorial was very helpful .

Thanks everyone for your support!! :)

2
General / Making sf::Texture object a static member of a class.
« on: March 07, 2016, 03:20:00 pm »
Hi everyone!!

I am making a simple 2D game in which i require to create many graphical entities.
These entities have sf::Sprite and sf::Texture as their data members. I want all the objects of this entity class to share same texture so as to increase game speed :-\ . I was thinking of making texture a static variable but i don't know what to initialize the texture with.
Please help!! :)

(Pls pardon my English it's not my first language :P)

Pages: [1]