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

Author Topic: Should I not use the 'Quads' PrimitiveType?  (Read 1503 times)

0 Members and 1 Guest are viewing this topic.

steveRoll

  • Newbie
  • *
  • Posts: 5
    • View Profile
Should I not use the 'Quads' PrimitiveType?
« on: November 10, 2020, 09:06:12 am »
I wanted to use VertexArrays to make my own tile-based drawing system, and the 'Quads' PrimitiveType seems perfect for it, because each tile is a quad. However, I saw this note in the documentation for it:
Quote
Quads | List of individual quads (deprecated, don't work with OpenGL ES)
Does that mean that it's better to not use it, or will it still be fine?

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 10815
    • View Profile
    • development blog
    • Email
Re: Should I not use the 'Quads' PrimitiveType?
« Reply #1 on: November 10, 2020, 10:35:34 am »
It's still supported on all desktop platforms, but if you plan on writing for mobile platforms, you may want to consider using two triangles instead of one quad.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

steveRoll

  • Newbie
  • *
  • Posts: 5
    • View Profile
Re: Should I not use the 'Quads' PrimitiveType?
« Reply #2 on: November 10, 2020, 10:38:13 am »
Can I be sure that desktop platforms will keep supporting them?

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 10815
    • View Profile
    • development blog
    • Email
Re: Should I not use the 'Quads' PrimitiveType?
« Reply #3 on: November 10, 2020, 10:46:24 am »
They're not removed from OpenGL, so yes.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

steveRoll

  • Newbie
  • *
  • Posts: 5
    • View Profile
Re: Should I not use the 'Quads' PrimitiveType?
« Reply #4 on: November 10, 2020, 10:48:57 am »
Alright, I guess I'll use Quads then. Thanks

 

anything