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

Method draw

source/examples/ssbo/ScreenAlignedQuad.cpp:123–137  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

121}
122
123void ScreenAlignedQuad::draw()
124{
125 if (m_texture)
126 {
127 glActiveTexture(GL_TEXTURE0 + m_samplerIndex);
128 m_texture->bind();
129 }
130
131 m_program->use();
132 m_vao->drawArrays(GL_TRIANGLE_STRIP, 0, 4);
133 m_program->release();
134
135 if (m_texture)
136 m_texture->unbind();
137}
138
139void ScreenAlignedQuad::setTexture(Texture* texture)
140{

Callers 1

drawFunction · 0.45

Calls 5

drawArraysMethod · 0.80
bindMethod · 0.45
useMethod · 0.45
releaseMethod · 0.45
unbindMethod · 0.45

Tested by

no test coverage detected