Mercurial > hg > Game > Cerium
comparison Renderer/Engine/SceneGraphRoot.cc @ 1320:bbfcc1652518 draft
minor changes.
author | Taiki TAIRA <e095767@ie.u-ryukyu.ac.jp> |
---|---|
date | Sun, 18 Dec 2011 09:44:01 +0900 |
parents | 31455d34e502 |
children | a6b11345939c |
comparison
equal
deleted
inserted
replaced
1319:31455d34e502 | 1320:bbfcc1652518 |
---|---|
429 vcont = pickup_float(vcont, s->vcount+i); | 429 vcont = pickup_float(vcont, s->vcount+i); |
430 } | 430 } |
431 | 431 |
432 } else if (!xmlStrcmp(cur->name, (xmlChar*)"p")) { | 432 } else if (!xmlStrcmp(cur->name, (xmlChar*)"p")) { |
433 | 433 |
434 /* input の source="TEXCOORD" がない場合のみ */ | 434 /* only case is nothing input of source="TEXCOORD" */ |
435 | 435 |
436 s->pcont = (char*)xmlNodeGetContent(cur); | 436 s->pcont = (char*)xmlNodeGetContent(cur); |
437 | 437 |
438 for (int i=0; s->pcont != NULL; i++) { | 438 for (int i=0; s->pcont != NULL; i++) { |
439 s->pcont = pickup_float(s->pcont, s->pcount+i); | 439 s->pcont = pickup_float(s->pcont, s->pcount+i); |
442 int vertexp[s->vertex_count]; | 442 int vertexp[s->vertex_count]; |
443 | 443 |
444 float *vertex_table; | 444 float *vertex_table; |
445 float *normal_table; | 445 float *normal_table; |
446 | 446 |
447 /* まだ<p>のidをどう探してこようか検討中 */ | 447 /* まだ<p>のidをどう探してこようか検討中 |
448 * u.array の前を未記入 | |
449 */ | |
448 for (int i = 0; i < s->polylist_count; i++) { | 450 for (int i = 0; i < s->polylist_count; i++) { |
449 vertexp[i] = s->pcount[2*i]; | 451 vertexp[i] = s->pcount[2*i]; |
450 normal_table[i] = u.array[s->pcount[2*i+1]]; | 452 normal_table[i] = u.array[s->pcount[2*i+1]]; |
451 } | 453 } |
452 | 454 |