annotate old/simple_render/SpuSpan.cpp @ 542:109a33b72b10 draft

continue...
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Mon, 12 Oct 2009 15:48:40 +0900
parents 3bc98f6d31ff
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
109
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
1 //#include <stdio.h>
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
2 #include "SpuSpan.h"
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
3
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
4 void
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
5 SpuSpan::init(void)
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
6 {
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
7 SpanPackList *spackList;
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
8 SpanPack *spack;
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
9 //SpanPack *q = NULL, *q1 = NULL
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
10 SpanPack *q = 0;
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
11 SpanPack *q1 = 0;
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
12
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
13 for (int i = 0; i < SPE_NUM_MAX; i++) {
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
14 spackList = &this->list[i];
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
15
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
16 spackList->length = 0;
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
17 for (int j = 0; j < MAX_SIZE_SPAN_PACK; j++) {
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
18 spack = &spackList->packs[j];
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
19 q = spack->next;
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
20 while (q) {
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
21 q1 = q->next;
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
22 delete(q);
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
23 q = q1;
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
24 }
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
25 spack->init();
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
26 }
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
27 }
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
28 }