00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #ifndef __CS_TEXTRANS_H__
00020 #define __CS_TEXTRANS_H__
00021
00022 #include "csgeom/matrix3.h"
00023
00030 class csTextureTrans
00031 {
00032 public:
00046 static void compute_texture_space (
00047 csMatrix3& m, csVector3& v,
00048 const csVector3& v_orig, const csVector3& v1, float len1,
00049 float A, float B, float C);
00051 static void compute_texture_space (
00052 csMatrix3& m, csVector3& v,
00053 float xo, float yo, float zo,
00054 float x1, float y1, float z1, float len1,
00055 float A, float B, float C);
00056
00061 static void compute_texture_space (
00062 csMatrix3& m, csVector3& v,
00063 const csVector3& v_orig,
00064 const csVector3& v1, float len1,
00065 const csVector3& v2, float len2);
00066
00071 static void compute_texture_space (
00072 csMatrix3& m, csVector3& v,
00073 const csVector3& v_orig, const csVector3& v_u, const csVector3& v_v);
00074
00079 static void compute_texture_space (
00080 csMatrix3& m, csVector3& v,
00081 float xo, float yo, float zo,
00082 float xu, float yu, float zu,
00083 float xv, float yv, float zv,
00084 float xw, float yw, float zw);
00085 };
00086
00087 #endif // __CS_TEXTRANS_H__