summaryrefslogtreecommitdiffstats
path: root/sdl/glframe.c
diff options
context:
space:
mode:
Diffstat (limited to 'sdl/glframe.c')
-rw-r--r--sdl/glframe.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/sdl/glframe.c b/sdl/glframe.c
index fa6b461..da7800e 100644
--- a/sdl/glframe.c
+++ b/sdl/glframe.c
@@ -63,15 +63,18 @@ void get_camera_orientation(GLFrame *frame, M3DMatrix44f m)
/* some of the code is unimplemented */
void apply_camera_transform(GLFrame *frame)
{
+ /* XXX: rotation only, should passed in as a parameter */
+ int rot_only = 0;
+
M3DMatrix44f m;
get_camera_orientation(frame, m);
glMultMatrixf(m);
-#if 0
/* if Rotation only, then do not do the translation */
if (!rot_only)
- glTranslatef(-v_location[0], -v_location[1], -v_location[2]);
-
+ glTranslatef(-frame->v_location[0], -frame->v_location[1], -frame->v_location[2]);
+
+#if 0
gluLookAt(v_location[0], v_location[1], v_location[2],
v_location[0] + v_forward[0],
v_location[1] + v_forward[1],