Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Textures Container  (Read 1555 times)

0 Members and 1 Guest are viewing this topic.

Meerjel01

  • Newbie
  • *
  • Posts: 28
    • View Profile
Textures Container
« on: April 24, 2023, 05:45:37 pm »
A theory:
I've done this with my Xbox homebrew engines that a class contains a list of textures which entities uses by linking a specific texture from the container to the entity's sprite. This way used textures don't get duplicated for a single entity.

Maybe it's already implemented in SFML but if not, here's an idea for you :)

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11034
    • View Profile
    • development blog
    • Email
Re: Textures Container
« Reply #1 on: April 24, 2023, 09:48:10 pm »
You mean something like the ResourceHolder from the SFML Game Development book? :)
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

Meerjel01

  • Newbie
  • *
  • Posts: 28
    • View Profile
Re: Textures Container
« Reply #2 on: April 25, 2023, 07:56:06 am »
Apparently  :)