mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-12 03:56:20 +00:00
WINTERMUTE: Add functions for pushing and popping matrices
This commit is contained in:
parent
28420144fc
commit
3096d4660c
@ -172,6 +172,15 @@ void BaseRenderOpenGL3D::resetModelViewTransform() {
|
||||
glLoadIdentity();
|
||||
}
|
||||
|
||||
void BaseRenderOpenGL3D::pushWorldTransform(const Math::Matrix4 &transform) {
|
||||
glPushMatrix();
|
||||
glMultMatrixf(transform.getData());
|
||||
}
|
||||
|
||||
void BaseRenderOpenGL3D::popWorldTransform() {
|
||||
glPopMatrix();
|
||||
}
|
||||
|
||||
bool BaseRenderOpenGL3D::windowedBlt() {
|
||||
warning("BaseRenderOpenGL3D::windowedBlt not yet implemented");
|
||||
return true;
|
||||
|
@ -30,6 +30,7 @@
|
||||
#include "graphics/opengl/system_headers.h"
|
||||
#include "graphics/opengl/texture.h"
|
||||
#include "graphics/transform_struct.h"
|
||||
#include "math/matrix4.h"
|
||||
|
||||
namespace Wintermute {
|
||||
|
||||
@ -75,6 +76,8 @@ public:
|
||||
bool setProjection(float fov);
|
||||
bool setProjection2D();
|
||||
void resetModelViewTransform();
|
||||
void pushWorldTransform(const Math::Matrix4 &transform);
|
||||
void popWorldTransform();
|
||||
|
||||
bool windowedBlt() override;
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user