aboutsummaryrefslogtreecommitdiff
path: root/src/libjin/Graphics/je_graphic.cpp
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2018-11-13 21:33:25 +0800
committerchai <chaifix@163.com>2018-11-13 21:33:25 +0800
commitd2058dce75ceb67f27c50e9f27d755a4d30c9003 (patch)
tree7575e4b15b637511705632c276f244159841e375 /src/libjin/Graphics/je_graphic.cpp
parent75792c15480d3d99b2ba7e79e143e4b569b22611 (diff)
*修改渲染模块
Diffstat (limited to 'src/libjin/Graphics/je_graphic.cpp')
-rw-r--r--src/libjin/Graphics/je_graphic.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libjin/Graphics/je_graphic.cpp b/src/libjin/Graphics/je_graphic.cpp
index 73d46b3..1231139 100644
--- a/src/libjin/Graphics/je_graphic.cpp
+++ b/src/libjin/Graphics/je_graphic.cpp
@@ -43,7 +43,7 @@ namespace JinEngine
glDeleteTextures(1, &mTexture);
}
- void Graphic::render(int x, int y, float sx, float sy, float r, float ox, float oy)
+ void Graphic::render(int x, int y, float sx, float sy, float r, float ox, float oy) const
{
gl.ModelMatrix.setTransformation(x, y, r, sx, sy, ox, oy);
int w = getWidth(), h = getHeight();
@@ -71,7 +71,7 @@ namespace JinEngine
gl.bindTexture(0);
}
- void Graphic::render(const Math::Quad& slice, int x, int y, float sx, float sy, float r, float ax, float ay)
+ void Graphic::render(const Math::Quad& slice, int x, int y, float sx, float sy, float r, float ax, float ay) const
{
static float vertexCoords[8];
static float textureCoords[8];