Mercurial > hg > Members > kono > Cerium
comparison old/simple_render/SpuSpan.cpp @ 507:735f76483bb2
Reorganization..
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 12 Oct 2009 09:39:35 +0900 |
parents | TaskManager/Test/simple_render/SpuSpan.cpp@5c194c71eca8 |
children |
comparison
equal
deleted
inserted
replaced
506:1d4a8a86f26b | 507:735f76483bb2 |
---|---|
1 //#include <stdio.h> | |
2 #include "SpuSpan.h" | |
3 | |
4 void | |
5 SpuSpan::init(void) | |
6 { | |
7 SpanPackList *spackList; | |
8 SpanPack *spack; | |
9 //SpanPack *q = NULL, *q1 = NULL | |
10 SpanPack *q = 0; | |
11 SpanPack *q1 = 0; | |
12 | |
13 for (int i = 0; i < SPE_NUM_MAX; i++) { | |
14 spackList = &this->list[i]; | |
15 | |
16 spackList->length = 0; | |
17 for (int j = 0; j < MAX_SIZE_SPAN_PACK; j++) { | |
18 spack = &spackList->packs[j]; | |
19 q = spack->next; | |
20 while (q) { | |
21 q1 = q->next; | |
22 delete(q); | |
23 q = q1; | |
24 } | |
25 spack->init(); | |
26 } | |
27 } | |
28 } |