MCPcopy Create free account
hub / github.com/TypesettingTools/Aegisub / Draw

Method Draw

src/gl_wrap.cpp:85–92  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

83 }
84
85 void Draw(GLenum mode, bool clear = true) {
86 glEnableClientState(GL_VERTEX_ARRAY);
87 glVertexPointer(dim, GL_FLOAT, 0, &data[0]);
88 glDrawArrays(mode, 0, data.size() / dim);
89 glDisableClientState(GL_VERTEX_ARRAY);
90 if (clear)
91 data.clear();
92 }
93};
94
95OpenGLWrapper::OpenGLWrapper() {

Callers 4

DrawLineMethod · 0.45
DrawRectangleMethod · 0.45
DrawTriangleMethod · 0.45
DrawRingMethod · 0.45

Calls 2

sizeMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected