MCPcopy Create free account
hub / github.com/bulletphysics/bullet3 / drawTexturedRect

Method drawTexturedRect

examples/OpenGLWindow/SimpleOpenGL3App.cpp:708–715  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

706}
707
708void SimpleOpenGL3App::drawTexturedRect(float x0, float y0, float x1, float y1, float color[4], float u0, float v0, float u1, float v1, int useRGBA)
709{
710 glEnable(GL_BLEND);
711 glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
712
713 m_primRenderer->drawTexturedRect(x0, y0, x1, y1, color, u0, v0, u1, v1, useRGBA);
714 glDisable(GL_BLEND);
715}
716
717int SimpleOpenGL3App::registerCubeShape(float halfExtentsX, float halfExtentsY, float halfExtentsZ, int textureIndex, float textureScaling)
718{

Callers 6

drawTextMethod · 0.45
DrawTexturedRectMethod · 0.45
mainFunction · 0.45
mainFunction · 0.45
renderMethod · 0.45
renderSceneMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected