Mercurial > hg > Game > Cerium
view Renderer/Engine/matrix_calc.h @ 1479:163220e54cc0 draft
remove hard code for TaskLog
author | Daichi TOMA <toma@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 24 Jul 2012 17:15:15 +0900 |
parents | e51127dbd63c |
children |
line wrap: on
line source
#ifndef CR_SYS_H #define CR_SYS_H void noMoreMemory(); void get_matrix(float *matrix, float *rxyz, float *txyz, float *stack); void get_matrix_scale(float *matrix, float *rxyz, float *txyz, float *scale, float *stack); void rotate_x(float *xyz, float r); void rotate_y(float *xyz, float r); void rotate_z(float *xyz, float r); //void rotate(float *xyz, float *matrix, float *rxyz, float *txyz, float *stack[]); void rotate(float *xyz, float *matrix); void translate(float *xyz, float x, float y, float z); void scale_matrix(float *xyz, float *scale, float *c_xyz); void matrix4x4(float *, float *, float *); void mulMatrix4x4(float *xyz, float *xyz1); void normalize(float *v0, float *v1); void subVector(float *v0, float *v1, float *v2); void outerProduct(float *v0, float *v1, float *v2); float innerProduct(float *v0, float *v1); void applyMatrix(float *v0, float *m, float *v1); void inverseMatrix(float *m0, float *m1); void transposeMatrix(float *m0, float *m1); void unitMatrix(float *m); float determinant(float *m); void transMatrix(float *m0, float *m1, float *v); void ApplyMatrix(float *v1, float *v2); void copyMatrix(float *m0, float *m1); void ScaleMatrix(float *m, float v); void ScaleMatrixXYZ(float *m, float sx,float sy, float sz); static inline unsigned long align(unsigned long x,unsigned long alig) { return ((x+(alig-1))&~(alig-1)); } #endif