diff options
author | Wolfgang Draxinger <Wolfgang.Draxinger@draxit.de> | 2013-07-26 11:14:54 +0200 |
---|---|---|
committer | Wolfgang Draxinger <Wolfgang.Draxinger@draxit.de> | 2013-07-26 11:14:54 +0200 |
commit | 4842cb28522a89c0a6d800139b934001484fadbe (patch) | |
tree | 62086ddb090bb031e2677f13dfeec1a1a6b0033d /samples/OpenGL/frustum/frustum.c | |
parent | 12c48a05b2f5c51c61ff744f419bdd85a552612c (diff) | |
download | codesamples-4842cb28522a89c0a6d800139b934001484fadbe.tar.gz codesamples-4842cb28522a89c0a6d800139b934001484fadbe.tar.bz2 |
...
Diffstat (limited to 'samples/OpenGL/frustum/frustum.c')
-rw-r--r-- | samples/OpenGL/frustum/frustum.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/samples/OpenGL/frustum/frustum.c b/samples/OpenGL/frustum/frustum.c index 51efb7e..c5732c8 100644 --- a/samples/OpenGL/frustum/frustum.c +++ b/samples/OpenGL/frustum/frustum.c @@ -11,6 +11,8 @@ #include <GL/glu.h> #include <GL/glut.h> +#include "linmath.h" + #if defined(GLUT_MULTISAMPLE) && defined(GL_MULTISAMPLE) #define OPTION_GLUT_MULTISAMPLE GLUT_MULTISAMPLE #define OPTION_MULTISAMPLE 1 @@ -208,6 +210,16 @@ void draw_arrow( } } +void draw_arc( + vec3 center, + vec3 a, vec3 b, + float ah, float bh, + char const * const annotation, + float annot_size ) +{ + a[0] = b[2]; +} + void draw_frustum( float l, float r, float b, float t, float n, float f ) |