const glm::mat4 * sweet::MatrixStack::getMVP(){ if(mvpDirty){ mvp = *getVP() * currentModelMatrix; mvpDirty = false; } return &mvp; }
void CameraC::update(const float & dt) { if (updatedFlag) { updateProjection(); updatedFlag = false; } // need to control by mouse mah if (mouseControl) MouseControl(dt); // check what mode is this mode == FPS ? FPSTargetUpdate() : TPSPositionUpdate(); // finally update my damn view updateView(); frustum->setVP(getVP()); }