Skip to content

Commit 95520be

Browse files
Heinrichmikesart
Heinrich
authored andcommitted
glxgears: Use new GPUVIS_TRACE_BLOCK(F) macros
1 parent 0f8f7f3 commit 95520be

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

sample/glxgears.c

+4
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,9 @@ gear( GLfloat inner_radius, GLfloat outer_radius, GLfloat width,
151151
GLfloat angle, da;
152152
GLfloat u, v, len;
153153

154+
GPUVIS_TRACE_BLOCKF( "build gear inner=%.2f, outer=%.2f, width=%.2f",
155+
inner_radius, outer_radius, width );
156+
154157
r0 = inner_radius;
155158
r1 = outer_radius - tooth_depth / 2.0;
156159
r2 = outer_radius + tooth_depth / 2.0;
@@ -280,6 +283,7 @@ gear( GLfloat inner_radius, GLfloat outer_radius, GLfloat width,
280283
static void
281284
draw( void )
282285
{
286+
GPUVIS_TRACE_BLOCK( "draw" );
283287
glClear( GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT );
284288

285289
glPushMatrix();

0 commit comments

Comments
 (0)