Welcome,
Guest
. Please
login
or
register
. Did you miss your
activation email?
French forum
Home
Help
Search
Login
Register
SFML community forums
»
Help
»
General
»
View frustum culling with a vertex array of tiles?
Print
Pages: [
1
]
Author
Topic: View frustum culling with a vertex array of tiles? (Read 2365 times)
0 Members and 1 Guest are viewing this topic.
zakkor
Newbie
Posts: 27
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?)
Logged
zsbzsb
Hero Member
Posts: 1409
Active Maintainer of CSFML/SFML.NET
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.
Logged
Motion / MotionNET
- Complete video / audio playback for SFML / SFML.NET
NetEXT
- An SFML.NET Extension Library based on
Thor
zakkor
Newbie
Posts: 27
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
Logged
Print
Pages: [
1
]
SFML community forums
»
Help
»
General
»
View frustum culling with a vertex array of tiles?