triangle count?

Started by
2 comments, last by fireking 20 years, 6 months ago
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
Advertisement
a count++ if you glBegin(GL_TRIANGLE)?
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
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

This topic is closed to new replies.

Advertisement