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

Author Topic: [SOLVED]Is it possible to batch lines?  (Read 5182 times)

0 Members and 1 Guest are viewing this topic.

gurbuz

  • Newbie
  • *
  • Posts: 2
    • View Profile
[SOLVED]Is it possible to batch lines?
« on: November 18, 2021, 11:58:31 am »
Is it possible to draw the lines that I created with the Vertex Array in a one draw call, instead of drawing them individually?

Edit: Yes it is possible. It was not nice of me to open a topic like this without being sure. I apologize in advance.  :-[
« Last Edit: November 18, 2021, 02:34:22 pm by gurbuz »

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 10801
    • View Profile
    • development blog
    • Email
Re: [SOLVED]Is it possible to batch lines?
« Reply #1 on: November 18, 2021, 11:28:50 pm »
No worries, glad you could figure it out! :)

For others here's a link to the Vertex Array tutorial: https://www.sfml-dev.org/tutorials/2.5/graphics-vertex-array.php
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/