Project

General

Profile

« Previous | Next » 

Revision 418aa554

Added by Leszek Koltunski almost 4 years ago

Beginnings of support for a new Object: the Dino.

View differences:

src/main/res/raw/compute_quats.c
2 2
#include <math.h>
3 3
#include <stdlib.h>
4 4

  
5
#define PYRAMIX
5
#define DINO
6 6

  
7 7
#define SQ2 1.41421356237f
8 8
#define SQ3 1.73205080757f
......
20 20
#endif
21 21

  
22 22
#ifdef CUBE
23
#define NUM_AXIS 3
23
#define NUM_AXIS    3
24 24
#define BASIC_ANGLE 4
25

  
25 26
float axis[NUM_AXIS][3] = { { 1,0,0 }, {0,1,0}, {0,0,1} };
26 27
#endif
27 28

  
29
#ifdef DINO
30
#define NUM_AXIS    4
31
#define BASIC_ANGLE 3
32

  
33
float axis[NUM_AXIS][3] = { {+SQ3/3,+SQ3/3,+SQ3/3} , 
34
                            {+SQ3/3,+SQ3/3,-SQ3/3} , 
35
                            {+SQ3/3,-SQ3/3,+SQ3/3} , 
36
                            {+SQ3/3,-SQ3/3,-SQ3/3} };
37
#endif
38

  
28 39
float* quats;
29 40
float* table;
30 41
int inserted=0;

Also available in: Unified diff