Mercurial > hg > Members > kono > Cerium
comparison Renderer/Engine/sys.cc @ 1047:6a80ca9a65d9
broken texure ( h/w != 2^n ) protection
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Wed, 08 Dec 2010 05:38:45 +0900 |
parents | e201be3f6897 |
children | 40cde8c1a6cd |
comparison
equal
deleted
inserted
replaced
1046:8c75060eb153 | 1047:6a80ca9a65d9 |
---|---|
144 xyz[t+i] = xyz1[t]*xyz2[i] + xyz1[t+1]*xyz2[4+i] + xyz1[t+2]*xyz2[8+i] + xyz1[t+3]*xyz2[12+i]; | 144 xyz[t+i] = xyz1[t]*xyz2[i] + xyz1[t+1]*xyz2[4+i] + xyz1[t+2]*xyz2[8+i] + xyz1[t+3]*xyz2[12+i]; |
145 } | 145 } |
146 } | 146 } |
147 } | 147 } |
148 | 148 |
149 void get_matrix( float *matrix, float *rxyz, float *txyz, float *stack) | 149 /** |
150 stack 上の変換行列に、相対的に、rxyz の回転、txyz の平行移動を | |
151 行ったものを matrix に代入する | |
152 */ | |
153 void | |
154 get_matrix( float *matrix, float *rxyz, float *txyz, float *stack) | |
150 { | 155 { |
151 float radx,rady,radz; | 156 float radx,rady,radz; |
152 radx = rxyz[0]*3.14/180; | 157 radx = rxyz[0]*3.14/180; |
153 rady = rxyz[1]*3.14/180; | 158 rady = rxyz[1]*3.14/180; |
154 radz = rxyz[2]*3.14/180; | 159 radz = rxyz[2]*3.14/180; |