Add ModelMatrix retrieval to WindowWrapper

This commit is contained in:
Alexander Bock
2016-06-16 00:57:31 +02:00
parent f38b8856c1
commit 5cc278c97f
4 changed files with 16 additions and 0 deletions

View File

@@ -115,6 +115,10 @@ bool SGCTWindowWrapper::isRegularRendering() const {
glm::mat4 SGCTWindowWrapper::viewProjectionMatrix() const {
return sgct::Engine::instance()->getCurrentModelViewProjectionMatrix();
}
glm::mat4 SGCTWindowWrapper::modelMatrix() const {
return sgct::Engine::instance()->getModelMatrix();
}
void SGCTWindowWrapper::setNearFarClippingPlane(float nearPlane, float farPlane) {
sgct::Engine::instance()->setNearAndFarClippingPlanes(nearPlane, farPlane);