Mercurial > hg > Game > Cerium
comparison Renderer/Test/property_chain.cc @ 1115:e954ec5d9b96 draft
warning fix.
author | tkaito |
---|---|
date | Tue, 18 Jan 2011 20:09:17 +0900 |
parents | d2cb74984336 |
children | 80e96b616196 |
comparison
equal
deleted
inserted
replaced
1114:ee481853d5dd | 1115:e954ec5d9b96 |
---|---|
99 } | 99 } |
100 | 100 |
101 for (int j = 0; j < PROPERTY_LENGTH; j++) { | 101 for (int j = 0; j < PROPERTY_LENGTH; j++) { |
102 p = &update_property[j]; | 102 p = &update_property[j]; |
103 p_node = (SceneGraphPtr)p->node; | 103 p_node = (SceneGraphPtr)p->node; |
104 float scale[] = {1,1,1}; | 104 //float scale[] = {1,1,1}; |
105 if (p->have_parent) { | 105 if (p->have_parent) { |
106 SceneGraphPtr parent = (SceneGraphPtr)update_property[p->parent_index].node; | 106 SceneGraphPtr parent = (SceneGraphPtr)update_property[p->parent_index].node; |
107 parent->addChild(p_node); | 107 parent->addChild(p_node); |
108 get_matrix(p_node->matrix, p_node->angle, p_node->xyz, parent->matrix); | 108 get_matrix(p_node->matrix, p_node->angle, p_node->xyz, parent->matrix); |
109 get_matrix(p_node->real_matrix, p_node->angle, p_node->xyz, parent->real_matrix); | 109 get_matrix(p_node->real_matrix, p_node->angle, p_node->xyz, parent->real_matrix); |