opengl-learn

step-by-step introduction to OpenGL
git clone https://0xdd.org/code/opengl-learn.git
Log | Files | Refs | README | LICENSE

commit a41f4379ea5729069c98db69616eb8a42772322a
parent 0e6c9099c9414a8108e85d9228aac2d96907ba79
Author: David DiPaola <DavidDiPaola@users.noreply.github.com>
Date:   Sat,  6 Oct 2018 09:10:23 -0400

ogl: added comments to warn readers not use legacy OpenGL calls

Diffstat:
ogl/ogl_lookat.c | 3++-
ogl/ogl_mat4f_scale.c | 1+
ogl/ogl_mat4f_translate.c | 1+
3 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/ogl/ogl_lookat.c b/ogl/ogl_lookat.c @@ -14,7 +14,8 @@ ogl_lookat( ) { /* equivelant to gluLookAt() followed by glTranslatef(). see: https://www.opengl.org/discussion_boards/showthread.php/130409-using-gluLookAt-properly */ /* see OpenGL 2.1 gluLookAt(): https://www.khronos.org/registry/OpenGL-Refpages/gl2.1/xhtml/gluLookAt.xml */ - /* see OpenGL 2.1 glTranslatef(): https://www.khronos.org/registry/OpenGL-Refpages/gl2.1/xhtml/glTranslate.xml */ + /* see OpenGL 2.1 glTranslate(): https://www.khronos.org/registry/OpenGL-Refpages/gl2.1/xhtml/glTranslate.xml */ + /* note: gluLookAt() and glTranslate() were deprecated, then removed from later OpenGL versions. don't use them */ struct ogl_vec3f f = { .x = center.x - eye.x, diff --git a/ogl/ogl_mat4f_scale.c b/ogl/ogl_mat4f_scale.c @@ -11,6 +11,7 @@ ogl_mat4f_scale( struct ogl_mat4f * out_result ) { /* see OpenGL 2.1 glScale(): https://www.khronos.org/registry/OpenGL-Refpages/gl2.1/xhtml/glScale.xml */ + /* note: glScale() was deprecated, then removed from later OpenGL versions. don't use it */ struct ogl_mat4f scale_matrix = { .values = { scale.x, 0.0f, 0.0f, 0.0f, diff --git a/ogl/ogl_mat4f_translate.c b/ogl/ogl_mat4f_translate.c @@ -11,6 +11,7 @@ ogl_mat4f_translate( struct ogl_mat4f * out_result ) { /* see OpenGL 2.1 glTranslate(): https://www.khronos.org/registry/OpenGL-Refpages/gl2.1/xhtml/glTranslate.xml */ + /* note: glTranslate() was deprecated, then removed from later OpenGL versions. don't use it */ struct ogl_mat4f translation_matrix = { .values = { 1.0f, 0.0f, 0.0f, translation.x,