MCPcopy Create free account
hub / github.com/OpenNFS/OpenNFS / SetMatrices

Method SetMatrices

src/Physics/Physics.h:35–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33class BulletDebugDrawer_DeprecatedOpenGL : public btIDebugDraw {
34public:
35 void SetMatrices(glm::mat4 pViewMatrix, glm::mat4 pProjectionMatrix) {
36 glUseProgram(0); // Use Fixed-function pipeline (no shaders)
37 glMatrixMode(GL_MODELVIEW);
38 glLoadMatrixf(&pViewMatrix[0][0]);
39 glMatrixMode(GL_PROJECTION);
40 glLoadMatrixf(&pProjectionMatrix[0][0]);
41 }
42
43 virtual void drawLine(const btVector3 &from, const btVector3 &to, const btVector3 &color) {
44 glColor3f(color.x(), color.y(), color.z());

Callers 1

RenderMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected