Skip to main content
gamedev.net
🔒 Locked

triangle count?

Started by fireking 2 replies 550+ views
Original Post
fireking
fireking
i wanna make sure my octree is working, how can i obtain the number of triangles being drawn each frame?
--FirekingOwner/LeaderFiregames Development &Blackdragon Studios
blizzard999
blizzard999
a count++ if you glBegin(GL_TRIANGLE)?
Ostsol
Ostsol
Count them. Seriously, there''s no automatic mechanism for this. You''ve just gotta keep track of it yourself. I set a static variable in my octree node class, setting it to zero when I start rendering the octree and incrememting it every time a triangle is drawn.
-Ostsol
fireking
fireking
does your octree class draw things? if so, do you make classes that inherit it as a parent in order to use it, like maybe for instance, your terrain class, overriding the draw function?

[edited by - fireking on October 21, 2003 9:21:52 PM]
--FirekingOwner/LeaderFiregames Development &Blackdragon Studios

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.