diff options
author | chai <chaifix@163.com> | 2018-05-17 18:04:41 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2018-05-17 18:04:41 +0800 |
commit | 34947d066b994c2ef9121a83497da344982d28e2 (patch) | |
tree | 41a65f6973a9082dafcc081a8a46de99b556370b /src/render | |
parent | d45064be602c3becb046d86913ea8013774b0079 (diff) |
v0.1.0
Diffstat (limited to 'src/render')
-rw-r--r-- | src/render/font.cpp | 4 | ||||
-rw-r--r-- | src/render/graphics.cpp | 2 | ||||
-rw-r--r-- | src/render/jsl.cpp | 3 |
3 files changed, 4 insertions, 5 deletions
diff --git a/src/render/font.cpp b/src/render/font.cpp index 1c13a34..39d1e4e 100644 --- a/src/render/font.cpp +++ b/src/render/font.cpp @@ -97,7 +97,7 @@ namespace render float factor = fheight / (float)PIXEL_HEIGHT; - for (int i = 0; i < len; i++) + for (int i = 0; i < len; ++i) { char c = text[i]; if (c == '\n') @@ -166,7 +166,7 @@ namespace render float factor = fheight / (float)PIXEL_HEIGHT; - for (int i = 0; i < len; i++) + for (int i = 0; i < len; ++i) { char c = str[i]; if (c == '\n') diff --git a/src/render/graphics.cpp b/src/render/graphics.cpp index 21bb0ec..15d8a9c 100644 --- a/src/render/graphics.cpp +++ b/src/render/graphics.cpp @@ -79,7 +79,7 @@ namespace render void polygon_line(float* p, int count) { float* verts = new float[count * 4]; - for (int i = 0; i < count; i++) + for (int i = 0; i < count; ++i) { // each line has two point n,n+1 verts[i * 4] = p[i * 2]; diff --git a/src/render/jsl.cpp b/src/render/jsl.cpp index 5bb9347..6fcee53 100644 --- a/src/render/jsl.cpp +++ b/src/render/jsl.cpp @@ -55,10 +55,9 @@ namespace render glUseProgram(pid); } - void JSLProgram::unuse() + shared void JSLProgram::unuse() { glUseProgram(0); - } void JSLProgram::sendFloat(const char* variable, float number) |