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

Author Topic: View frustum culling with a vertex array of tiles?  (Read 2352 times)

0 Members and 1 Guest are viewing this topic.

zakkor

  • Newbie
  • *
  • Posts: 27
    • View Profile
View frustum culling with a vertex array of tiles?
« on: April 07, 2015, 03:16:52 pm »
I googled around a bit, but I couldn't find anything.

Any idea if this is possible? (Drawing just a part of a vertex array?)

zsbzsb

  • Hero Member
  • *****
  • Posts: 1409
  • Active Maintainer of CSFML/SFML.NET
    • View Profile
    • My little corner...
    • Email
Re: View frustum culling with a vertex array of tiles?
« Reply #1 on: April 07, 2015, 03:38:01 pm »
It always helps to read the documentation  ;)

http://www.sfml-dev.org/documentation/2.2/classsf_1_1RenderTarget.php#ab636d7363f6681077361ee274ba89a8d

Just pass in the pointer to the start of the vertices and the total number to draw.
Motion / MotionNET - Complete video / audio playback for SFML / SFML.NET

NetEXT - An SFML.NET Extension Library based on Thor

zakkor

  • Newbie
  • *
  • Posts: 27
    • View Profile
Re: View frustum culling with a vertex array of tiles?
« Reply #2 on: April 07, 2015, 03:42:54 pm »
Damn, this is good news! Thanks for the fast reply and sorry for being stupid :(

 

anything