view TaskManager/Test/test_render/spe/Load_Texture.cc @ 435:cf2704424cc0

ChainCal task fix
author game@henri.cr.ie.u-ryukyu.ac.jp
date Thu, 24 Sep 2009 22:35:46 +0900
parents afb717c43a3c
children 44c0bce54dcf
line wrap: on
line source

// #define DEBUG
#include "error.h"

#include <stdlib.h>
#include <string.h>
#include "Load_Texture.h"
#include "texture.h"
#if !USE_MEMHASH
#include "TileHash.h"
#endif
#include "Func.h"
#include "global_alloc.h"

SchedDefineTask(LoadTexture);

/**
 * 「Load」といいながら、結局 DrawSpan で使う
 * Hash の準備だけなので、名前変えないとなー
 */
int
LoadTexture::run(SchedTask *smanager, void *rbuf , void *wbuf)
{
    __debug_spe("LoadTexture\n");

    MemList *ml = smanager->createMemList(sizeof(uint32) * TEXTURE_BLOCK_SIZE, MAX_TILE);
    smanager->global_set(GLOBAL_TILE_LIST, (void *)ml);

    return 0;
}