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

Author Topic: Particle System with Textures  (Read 1163 times)

0 Members and 1 Guest are viewing this topic.

dshenoy

  • Newbie
  • *
  • Posts: 3
    • View Profile
Particle System with Textures
« on: October 03, 2023, 04:05:26 am »
Dear Community,

I can see from this example https://www.sfml-dev.org/tutorials/2.6/graphics-vertex-array.php that you can create an array of vertices that will take advantage of the GPU or essentially process the items efficiently.  Is there a way to enter in an array of textures?  (i.e. images)

Best regards

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11030
    • View Profile
    • development blog
    • Email
Re: Particle System with Textures
« Reply #1 on: October 03, 2023, 09:08:53 pm »
No, there isn't.
It's instead recommended to use a texture atlas, meaning you combine all the wanted texture into one large texture
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/