Bug fixes. TriangleMesh now ref-counts, implement missing element formats, add missing modes for program vertex. Add matrix support classes. Add test app rollo
diff --git a/libs/rs/rsProgramVertex.cpp b/libs/rs/rsProgramVertex.cpp
index a80e2f7..fc26ab5 100644
--- a/libs/rs/rsProgramVertex.cpp
+++ b/libs/rs/rsProgramVertex.cpp
@@ -47,7 +47,7 @@
glMatrixMode(GL_PROJECTION);
if (mProjectionEnable) {
- //glLoadMatrixf(&f[OFFSET_PROJECTION]);
+ glLoadMatrixf(&f[RS_PROGRAM_VERTEX_PROJECTION_OFFSET]);
} else {
}
@@ -57,7 +57,6 @@
} else {
glLoadIdentity();
}
-
}
void ProgramVertex::setConstantType(uint32_t slot, const Type *t)
@@ -126,6 +125,11 @@
rsc->mStateVertex.mPV->setTransformEnable(enable);
}
+void rsi_ProgramVertexSetProjectionMatrixEnable(Context *rsc, bool enable)
+{
+ rsc->mStateVertex.mPV->setProjectionEnable(enable);
+}
+
}