projects
/
freeglut
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
implement setter for texture coord 2 (u,v) vertex attribute so it can be used by...
[freeglut]
/
src
/
fg_gl2.c
diff --git
a/src/fg_gl2.c
b/src/fg_gl2.c
index
deb4bb2
..
4ef87be
100644
(file)
--- a/
src/fg_gl2.c
+++ b/
src/fg_gl2.c
@@
-37,6
+37,11
@@
void FGAPIENTRY glutSetVertexAttribNormal(GLint attrib) {
fgStructure.CurrentWindow->Window.attribute_v_normal = attrib;
}
fgStructure.CurrentWindow->Window.attribute_v_normal = attrib;
}
+void FGAPIENTRY glutSetVertexAttribTexCoord2(GLint attrib) {
+ if (fgStructure.CurrentWindow != NULL)
+ fgStructure.CurrentWindow->Window.attribute_v_texture = attrib;
+}
+
void fgInitGL2() {
#ifndef GL_ES_VERSION_2_0
fgState.HasOpenGL20 = 0;
void fgInitGL2() {
#ifndef GL_ES_VERSION_2_0
fgState.HasOpenGL20 = 0;