From 3c74f0147d2e2e12ad5a163d3ed1a1e8dab76743 Mon Sep 17 00:00:00 2001 From: chai Date: Mon, 3 Sep 2018 09:31:26 +0800 Subject: *update --- src/libjin/Graphics/Shapes.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/libjin/Graphics/Shapes.cpp') diff --git a/src/libjin/Graphics/Shapes.cpp b/src/libjin/Graphics/Shapes.cpp index aef4a1c..b2ef3f8 100644 --- a/src/libjin/Graphics/Shapes.cpp +++ b/src/libjin/Graphics/Shapes.cpp @@ -44,7 +44,7 @@ namespace graphics glDisableClientState(GL_VERTEX_ARRAY); } - void circle(RENDER_MODE mode, int x, int y, int r) + void circle(RenderMode mode, int x, int y, int r) { r = r < 0 ? 0 : r; @@ -69,13 +69,13 @@ namespace graphics delete[] coords; } - void rect(RENDER_MODE mode, int x, int y, int w, int h) + void rect(RenderMode mode, int x, int y, int w, int h) { float coords[] = { x, y, x + w, y, x + w, y + h, x, y + h }; polygon(mode, coords, 4); } - void triangle(RENDER_MODE mode, int x1, int y1, int x2, int y2, int x3, int y3) + void triangle(RenderMode mode, int x1, int y1, int x2, int y2, int x3, int y3) { float coords[] = { x1, y1, x2, y2, x3, y3 }; polygon(mode, coords, 3); @@ -101,7 +101,7 @@ namespace graphics delete[] verts; } - void polygon(RENDER_MODE mode, float* p, int count) + void polygon(RenderMode mode, float* p, int count) { if (mode == LINE) { -- cgit v1.1-26-g67d0