MCPcopy Create free account
hub / github.com/cginternals/globjects / draw

Function draw

source/examples/programpipelines/main.cpp:109–117  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

107}
108
109void draw()
110{
111 glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
112
113 glViewport(0, 0, g_size.x, g_size.y);
114
115 g_programPipeline->use();
116 g_vao->drawArrays(GL_TRIANGLE_STRIP, 0, 4);
117}
118
119
120void error(int errnum, const char * errmsg)

Callers 1

mainFunction · 0.70

Calls 2

drawArraysMethod · 0.80
useMethod · 0.45

Tested by

no test coverage detected