comparison Renderer/Engine/SceneGraphRoot.cc @ 1318:a788b093ef79 draft

minor changes.
author Taiki TAIRA <e095767@ie.u-ryukyu.ac.jp>
date Fri, 16 Dec 2011 18:16:48 +0900
parents afe66d75f48a
children 31455d34e502
comparison
equal deleted inserted replaced
1317:afe66d75f48a 1318:a788b093ef79
366 if (!xmlStrcmp(cur->name, (xmlChar*)"polylist")) { 366 if (!xmlStrcmp(cur->name, (xmlChar*)"polylist")) {
367 int polylist_count = atoi((char*)xmlGetProp(cur, (xmlChar*)"source")); 367 int polylist_count = atoi((char*)xmlGetProp(cur, (xmlChar*)"source"));
368 368
369 s->polylist=1; 369 s->polylist=1;
370 in_polylist=1; 370 in_polylist=1;
371 } else if (!xmlStrcmp(cur->name, (xmlChar*)"vertices") { 371 } else if (!xmlStrcmp(cur->name, (xmlChar*)"vertices")) {
372 char *vertices_src = (char*)xmlGetProp(cur, (xmlChar*)"source"); 372 char *vertices_src = (char*)xmlGetProp(cur, (xmlChar*)"source");
373 373
374 s->pid = xmlGetProp(cur, (xmlChar*)"id"); 374 s->pid = xmlGetProp(cur, (xmlChar*)"id");
375 s->vcount = malloc(sizeof(int)*count); 375 s->vcount = malloc(sizeof(int)*count);
376 s->pcount = malloc(sizeof(float)*sum); 376 s->pcount = malloc(sizeof(float)*sum);
377 377
378 378
379 } else if (s->polylist && !xmlStrcmp(cur->name, (xmlChar*)"input") { 379 } else if (s->polylist && !xmlStrcmp(cur->name, (xmlChar*)"input")) {
380 char *semantic = (char*)xmlGetProp(cur, (xmlChar*)"semantic"); 380 char *semantic = (char*)xmlGetProp(cur, (xmlChar*)"semantic");
381 if (!xmlStrcmp(semantic, "VERTEX")) { 381 if (!xmlStrcmp(semantic, "VERTEX")) {
382 char *vertex_src = (char*)xmlGetProp(cur, (xmlChar*)"source"); 382 char *vertex_src = (char*)xmlGetProp(cur, (xmlChar*)"source");
383 int vertex_offset = atoi((char*)xmlGetProp(cur, (xmlChar*)"offset")); 383 int vertex_offset = atoi((char*)xmlGetProp(cur, (xmlChar*)"offset"));
384 384