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

Pages: [1]
1
Graphics / Re: [SOLVED] Loading textures multiple times
« on: May 28, 2017, 02:13:17 am »
That's the confirmation I needed.

Thanks for the quick answer :D

2
Graphics / [SOLVED] Loading textures multiple times
« on: May 28, 2017, 01:51:03 am »
Hi,

I tried to find my answer through search but can't find exactly what I'm after just yet.
I'm wondering if sfml will load a texture multiple times if I have multiple different object instances that call the load function, asking for the same texture? Or will it detect that it has already been loaded and use the same texture? If not, then I assume loading the same texture multiple times is not the most optimal solution.

Given this scenario, would it be a good idea to create a sprite manager class, load all textures I need on game start, encapsulate them in sprites, store them, and then assign them to these object instances?

Thanks in advance.

Pages: [1]
anything