view old/simple_render/SpuSpan.cpp @ 998:ad5232ad4952

add fb_test, minor fix
author yutaka@localhost.localdomain
date Fri, 15 Oct 2010 02:13:55 +0900
parents 735f76483bb2
children
line wrap: on
line source

//#include <stdio.h>
#include "SpuSpan.h"

void
SpuSpan::init(void)
{
    SpanPackList *spackList;
    SpanPack *spack;
    //SpanPack *q = NULL, *q1 = NULL
    SpanPack *q = 0;
    SpanPack *q1 = 0;

    for (int i = 0; i < SPE_NUM_MAX; i++) {
	spackList = &this->list[i];

	spackList->length = 0;
	for (int j = 0; j < MAX_SIZE_SPAN_PACK; j++) {
	    spack = &spackList->packs[j];
	    q = spack->next;
	    while (q) {
		q1 = q->next;
		delete(q);
		q = q1;
	    }
	    spack->init();
	}
    }
}