aboutsummaryrefslogtreecommitdiff
path: root/backends/graphics/opengl/texture.h
diff options
context:
space:
mode:
Diffstat (limited to 'backends/graphics/opengl/texture.h')
-rw-r--r--backends/graphics/opengl/texture.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/backends/graphics/opengl/texture.h b/backends/graphics/opengl/texture.h
index 97e99b4b37..3be09cb9f9 100644
--- a/backends/graphics/opengl/texture.h
+++ b/backends/graphics/opengl/texture.h
@@ -99,10 +99,27 @@ public:
*/
void updateArea(const Common::Rect &area, const Graphics::Surface &src);
+ /**
+ * Query the GL texture's width.
+ */
uint getWidth() const { return _width; }
+
+ /**
+ * Query the GL texture's height.
+ */
uint getHeight() const { return _height; }
/**
+ * Query the logical texture's width.
+ */
+ uint getLogicalWidth() const { return _logicalWidth; }
+
+ /**
+ * Query the logical texture's height.
+ */
+ uint getLogicalHeight() const { return _logicalHeight; }
+
+ /**
* Obtain texture coordinates for rectangular drawing.
*/
const GLfloat *getTexCoords() const { return _texCoords; }
@@ -120,6 +137,7 @@ private:
const GLenum _glType;
uint _width, _height;
+ uint _logicalWidth, _logicalHeight;
GLfloat _texCoords[4*2];
GLint _glFilter;