view old/simple_pack/task/task_init.cpp @ 656:66810c71442b draft

branch merge
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Fri, 27 Nov 2009 18:27:32 +0900
parents 3bc98f6d31ff
children
line wrap: on
line source

#include "polygon.h"
#include "scene_graph_pack.h"
#include "polygon_pack.h"
#include "span_pack.h"
#include "TaskManager.h"
#include "spu_span.h"

extern TaskManager *manager;
extern int create_sgp(Polygon *sg, SceneGraphPack *sgp);
extern int update_sgp(SceneGraphPack *sgp, SceneGraphPack *_sgp);
extern int create_pp(SceneGraphPack *sgp, PolygonPack *pp);
extern int create_span(void *wbuf, void *rbuf);
//extern int spu_span(SPANPACKLIST *spl, SPUSPANLIST *ssl);
//extern int spu_span(SPLSSL *splssl, SPUSPANLIST *a);

void
task_initialize()
{
    manager->set_symbol("CreateSGP", (void*)create_sgp);
    manager->set_symbol("UpdateSGP", (void*)update_sgp);
    manager->set_symbol("CreatePP", (void*)create_pp);
    manager->set_symbol("CreateSP", (void*)create_span);
    //manager->set_symbol("SpuSP", (void*)spu_span);
}