MCPcopy Create free account
hub / github.com/cinder/Cinder / drawFrame

Method drawFrame

test/GLTileRenderTest/src/GLTileRenderTestApp.cpp:66–97  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

64}
65
66void GLTileRenderTestApp::drawFrame()
67{
68 glClearColor( 0.1f, 0.1f, 0.3f, 1.0f );
69 glClear( GL_COLOR_BUFFER_BIT );
70
71 gl::pushModelView();
72 glRotatef( mCurrentRotation, 0, 0, 1.0f );
73 glBegin( GL_TRIANGLES );
74 glColor3f( 1, 0, 0 );
75 glVertex2f( 0, -5 );
76 glColor3f( 0, 1, 0 );
77 glVertex2f( 5, 5 );
78 glColor3f( 0, 0, 1 );
79 glVertex2f( -5, 5 );
80 glEnd();
81 gl::popModelView();
82
83 glLineWidth( 17.0f );
84 glColor3f( 1, 0.5f, 0.25f );
85 glBegin( GL_LINE_LOOP );
86 glVertex2f( 0, 5 );
87 glVertex2f( -5, -5 );
88 glVertex2f( 3, -3 );
89 glVertex2f( 7, -7 );
90 glVertex2f( 7, 7 );
91 glVertex2f( -1, 2 );
92 glEnd();
93
94 glColor3f( 1, 1, 0 );
95 glRasterPos2i( 0, 0 );
96 glBitmap( 16, 16, 0.0, 0.0, 0, 0, smiley );
97}
98
99void GLTileRenderTestApp::draw()
100{

Callers

nothing calls this directly

Calls 2

pushModelViewFunction · 0.85
popModelViewFunction · 0.85

Tested by

no test coverage detected