projects
/
freeglut
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b180b2a
)
note about glutSetVertexAttribTexCoord2 in shapes demo
author
Diederick Niehorster
<dcnieho@gmail.com>
Mon, 1 Apr 2013 12:25:53 +0000
(12:25 +0000)
committer
Diederick Niehorster
<dcnieho@gmail.com>
Mon, 1 Apr 2013 12:25:53 +0000
(12:25 +0000)
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@1571
7f0cb862
-5218-0410-a997-
914c9d46530a
progs/demos/shapes/shapes.c
patch
|
blob
|
history
diff --git
a/progs/demos/shapes/shapes.c
b/progs/demos/shapes/shapes.c
index
520a209
..
2fe6bb4
100644
(file)
--- a/
progs/demos/shapes/shapes.c
+++ b/
progs/demos/shapes/shapes.c
@@
-690,6
+690,7
@@
static void display(void)
gl_UseProgram (program);
glutSetVertexAttribCoord3(attribute_fg_coord);
glutSetVertexAttribNormal(attribute_fg_normal);
+ /* There is also a glutSetVertexAttribTexCoord2, which is used only when drawing the teapot, teacup or teaspoon */
gl_matrix_mode(GL_PROJECTION);
gl_load_identity();