projects
/
dosdemo
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
added serial spaceball support in the dos version. can be used for
[dosdemo]
/
src
/
polytest.c
diff --git
a/src/polytest.c
b/src/polytest.c
index
cc64a0d
..
1815bb9
100644
(file)
--- a/
src/polytest.c
+++ b/
src/polytest.c
@@
-7,6
+7,7
@@
#include "3dgfx.h"
#include "gfxutil.h"
#include "polyfill.h" /* just for struct pimage */
#include "3dgfx.h"
#include "gfxutil.h"
#include "polyfill.h" /* just for struct pimage */
+#include "cfgopt.h"
struct mesh {
int prim;
struct mesh {
int prim;
@@
-135,8
+136,12
@@
static void draw(void)
g3d_matrix_mode(G3D_MODELVIEW);
g3d_load_identity();
g3d_translate(0, 0, -cam_dist);
g3d_matrix_mode(G3D_MODELVIEW);
g3d_load_identity();
g3d_translate(0, 0, -cam_dist);
- g3d_rotate(cam_phi, 1, 0, 0);
- g3d_rotate(cam_theta, 0, 1, 0);
+ if(opt.sball) {
+ g3d_mult_matrix(sball_matrix);
+ } else {
+ g3d_rotate(cam_phi, 1, 0, 0);
+ g3d_rotate(cam_theta, 0, 1, 0);
+ }
g3d_light_pos(0, -10, 10, 20);
g3d_light_pos(0, -10, 10, 20);