comparison Renderer/Engine/viewerGL.cc @ 1039:b9cd0c88b69a

AllExecute speparation.
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Tue, 07 Dec 2010 23:59:46 +0900
parents 7fafe412c28f
children
comparison
equal deleted inserted replaced
1038:153dd7b4b8a6 1039:b9cd0c88b69a
13 13
14 for (int i = 0; i < 4; i++) { 14 for (int i = 0; i < 4; i++) {
15 v[i] = t[0]*m[i] + t[1]*m[i+4] + t[2]*m[i+8] + t[3]*m[i+12]; 15 v[i] = t[0]*m[i] + t[1]*m[i+4] + t[2]*m[i+8] + t[3]*m[i+12];
16 } 16 }
17 } 17 }
18 18 #if 0
19 static void 19 static void
20 ApplyNormalMatrix(float *v, float *m) 20 ApplyNormalMatrix(float *v, float *m)
21 { 21 {
22 float t[4]; 22 float t[4];
23 23
27 27
28 for (int i = 0; i < 3; i++) { 28 for (int i = 0; i < 3; i++) {
29 v[i] = t[0]*m[i] + t[1]*m[i+4] + t[2]*m[i+8]; 29 v[i] = t[0]*m[i] + t[1]*m[i+4] + t[2]*m[i+8];
30 } 30 }
31 } 31 }
32 #endif
32 33
33 ViewerGL::ViewerGL(TaskManager *m, int b, int w, int h, int _num) 34 ViewerGL::ViewerGL(TaskManager *m, int b, int w, int h, int _num)
34 { 35 {
35 spe_num = _num; 36 spe_num = _num;
36 manager = m; 37 manager = m;