Mercurial > hg > Game > Cerium
comparison Renderer/Engine/SceneGraphRoot.cc @ 1316:53f6855985f6 draft
collada file reader minor changes.
author | Taiki TAIRA <e095767@ie.u-ryukyu.ac.jp> |
---|---|
date | Fri, 16 Dec 2011 16:11:35 +0900 |
parents | c0a5a9abff9c |
children | afe66d75f48a |
comparison
equal
deleted
inserted
replaced
1315:c0a5a9abff9c | 1316:53f6855985f6 |
---|---|
409 char *pcont = (char*)xmlNodeGetContent(cur); | 409 char *pcont = (char*)xmlNodeGetContent(cur); |
410 for (int i=0; pcont != NULL; i++) { | 410 for (int i=0; pcont != NULL; i++) { |
411 pcont = pickup_float(pcont, pcount+i); | 411 pcont = pickup_float(pcont, pcount+i); |
412 } | 412 } |
413 } | 413 } |
414 | |
414 | 415 |
415 get_point(pid, , cur); | 416 get_point(pid, , cur); |
416 | 417 |
418 int vertexp[]; | |
419 int normalp[]; | |
420 | |
421 float *vertex_table; | |
422 float *normal_table; | |
423 | |
417 for (int i = 0; i<polylist_count; i++) { | 424 for (int i = 0; i<polylist_count; i++) { |
418 vertex[i] = pcount[i]; | 425 vertexp[i] = pcount[2*i]; |
419 normal[i] = pcount[i+1]; | 426 normalp[i] = pcount[2*i+1]; |
420 } | 427 } |
421 | 428 |
422 if (vcount == 4) { | 429 for (int i=0; ;i++) { |
423 | 430 for (int j=0 ; j > vcont[i] ;j++) { |
424 } else if (vcount == 3) { | 431 if (vcount[i] == 4) { |
425 | 432 |
433 | |
434 | |
435 } else if (vcount[i] == 3) { | |
436 vertex_table[i] = vertex; | |
437 | |
438 | |
439 } | |
440 } | |
426 } | 441 } |
427 | 442 |
428 | 443 |
429 } | 444 } |
430 | 445 |