src/scene.c

changeset 51
a656496594f9
parent 49
77493525eac2
child 55
6b61b4899587
equal deleted inserted replaced
50:d8d2e4817db1 51:a656496594f9
169 } 169 }
170 170
171 AscSceneNode *asc_scene_node_empty(void) { 171 AscSceneNode *asc_scene_node_empty(void) {
172 AscSceneNode *node = calloc(1, sizeof(AscSceneNode)); 172 AscSceneNode *node = calloc(1, sizeof(AscSceneNode));
173 node->free_func = (asc_scene_free_func) free; 173 node->free_func = (asc_scene_free_func) free;
174 node->scale.x = node->scale.y = node->scale.z = 1;
174 asc_transform_identity(node->transform); 175 asc_transform_identity(node->transform);
175 asc_transform_identity(node->world_transform); 176 asc_transform_identity(node->world_transform);
176 return node; 177 return node;
177 } 178 }
178 179

mercurial