Mercurial > hg > Members > kono > Cerium
comparison TaskManager/Test/test_render/sys.cpp @ 215:7ca6a2ef5be9
fix SceneGraph Constructor, Destructor
author | gongo@gendarme.local |
---|---|
date | Sun, 01 Feb 2009 22:14:44 +0900 |
parents | fe2cc32cd94d |
children | 0f1ff7b06157 |
comparison
equal
deleted
inserted
replaced
214:5bd1425fb561 | 215:7ca6a2ef5be9 |
---|---|
104 matrix[11] = 0; | 104 matrix[11] = 0; |
105 matrix[12] = txyz[0]; | 105 matrix[12] = txyz[0]; |
106 matrix[13] = txyz[1]; | 106 matrix[13] = txyz[1]; |
107 matrix[14] = txyz[2]; | 107 matrix[14] = txyz[2]; |
108 matrix[15] = 1; | 108 matrix[15] = 1; |
109 | |
110 /* Perspective Transform */ | |
111 #if 0 | |
112 float n = 0.0f; | |
113 float f = 1000.0f; | |
114 float a = 0.995f / (n-f); | |
115 float b = 1-((0.995*n)/(n-f)); | |
116 | |
117 matrix[0] *= a*txyz[2]+b; | |
118 matrix[5] *= a*txyz[2]+b; | |
119 #endif | |
120 | 109 |
121 float m[16]; | 110 float m[16]; |
122 | 111 |
123 for(int i=0; i<16; i++) | 112 for(int i=0; i<16; i++) |
124 { | 113 { |