diff options
| author | Steven Fuller <relnev@icculus.org> | 2001-08-06 19:50:26 +0000 |
|---|---|---|
| committer | Patryk Obara <dreamer.tan@gmail.com> | 2019-08-20 02:22:36 +0200 |
| commit | 0770c95c17191b8945695eb5c27c11d279e3c1b9 (patch) | |
| tree | ae08d9afa6e83bbeeb586b21bb9823f43e93cdc6 /src/kshape.c | |
| parent | 12c6a39177837a5c4dc8928a78140b4c3bb8f47a (diff) | |
Moved TranslatePoint into a separate file.
Implemented most of the main loop in main.c.
Game now seems to run OK. Need to write texture code and then add OpenGL.
Diffstat (limited to 'src/kshape.c')
| -rw-r--r-- | src/kshape.c | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/src/kshape.c b/src/kshape.c index 9ca70be..1e5d12b 100644 --- a/src/kshape.c +++ b/src/kshape.c @@ -32,9 +32,6 @@ #include "detaillevels.h" #include "avp_userprofile.h" -#if SOFTWARE_RENDERER -#define D3D_ZBufferedGouraudTexturedPolygon_Output Software_ZBufferedGouraudTexturedPolygon_Output -#endif #define ALIENS_LIFEFORCE_GLOW_COLOUR 0x20ff8080 #define MARINES_LIFEFORCE_GLOW_COLOUR 0x208080ff #define PREDATORS_LIFEFORCE_GLOW_COLOUR 0x2080ff80 @@ -4503,10 +4500,16 @@ void TranslatePoint(int *source, int *dest, int *matrix) #endif #endif -/* TODO */ static void TranslatePoint(float *source, float *dest, float *matrix) { - fprintf(stderr, "TranslatePoint(%f, %f, %f)\n"); +// fprintf(stderr, "TranslatePoint(%f, %f, %f)\n"); + +/* TODO - implement the inline assembly here? */ +/* Moved to a separate file because I can't figure out the damn syntax! */ +__asm__("call TranslatePoint_Asm \n\t" + : + : "S" (source), "b" (dest), "d" (matrix) + ); } |
