[Scummvm-git-logs] scummvm master -> 7cc90c7d44cf2952fc3828337f75a38986bf1324

aquadran noreply at scummvm.org
Mon Dec 27 10:26:50 UTC 2021


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
7cc90c7d44 TINYGL: Added few tglTextCoord combinations


Commit: 7cc90c7d44cf2952fc3828337f75a38986bf1324
    https://github.com/scummvm/scummvm/commit/7cc90c7d44cf2952fc3828337f75a38986bf1324
Author: Paweł Kołodziejski (aquadran at gmail.com)
Date: 2021-12-27T11:26:44+01:00

Commit Message:
TINYGL: Added few tglTextCoord combinations

Changed paths:
    graphics/tinygl/api.cpp


diff --git a/graphics/tinygl/api.cpp b/graphics/tinygl/api.cpp
index 91f89ba725f..a52bd99b9a7 100644
--- a/graphics/tinygl/api.cpp
+++ b/graphics/tinygl/api.cpp
@@ -121,14 +121,36 @@ void tglTexCoord4f(float s, float t, float r, float q) {
 	c->gl_add_op(p);
 }
 
+void tglTexCoord3f(float s, float t, float q) {
+	tglTexCoord4f(s, t, q, 1);
+}
+
 void tglTexCoord2f(float s, float t) {
 	tglTexCoord4f(s, t, 0, 1);
 }
 
+void tglTexCoord1f(float s) {
+	tglTexCoord4f(s, 0, 0, 1);
+}
+
+void tglTexCoord4fv(const float *v) {
+	tglTexCoord4f(v[0], v[1], v[2], v[3]);
+}
+
+void tglTexCoord3fv(const float *v) {
+	tglTexCoord4f(v[0], v[1], v[2], 1);
+}
+
 void tglTexCoord2fv(const float *v) {
 	tglTexCoord4f(v[0], v[1], 0, 1);
 }
 
+void tglTexCoord1fv(const float *v) {
+	tglTexCoord4f(v[0], 0, 0, 1);
+}
+
+// misc
+
 void tglEdgeFlag(int flag) {
 	TinyGL::GLContext *c = TinyGL::gl_get_context();
 	TinyGL::GLParam p[2];
@@ -139,8 +161,6 @@ void tglEdgeFlag(int flag) {
 	c->gl_add_op(p);
 }
 
-// misc
-
 void tglShadeModel(int mode) {
 	TinyGL::GLContext *c = TinyGL::gl_get_context();
 	TinyGL::GLParam p[2];




More information about the Scummvm-git-logs mailing list