Mercurial > hg > Game > Cerium
diff TaskManager/Test/simple_render/spe/SpuDraw.h @ 102:62679f4cae18
tag:first_render_with_spe fix
author | gongo |
---|---|
date | Mon, 03 Mar 2008 17:15:28 +0900 |
parents | 57bac9e07662 |
children | 3e331f7576a1 |
line wrap: on
line diff
--- a/TaskManager/Test/simple_render/spe/SpuDraw.h Mon Mar 03 14:06:33 2008 +0900 +++ b/TaskManager/Test/simple_render/spe/SpuDraw.h Mon Mar 03 17:15:28 2008 +0900 @@ -20,6 +20,7 @@ typedef uint32_t Uint32; typedef unsigned short GLushort; +#if 0 typedef struct{ Uint8 r; Uint8 g; @@ -42,7 +43,7 @@ Uint32 colorkey; Uint8 alpha; } SDL_PixelFormat; - +#endif class SpuDraw : public SchedTask { public: @@ -52,22 +53,22 @@ ~SpuDraw(void); - //int linebuf[8][IMG_MAX_X]; - //float zRow[8][IMG_MAX_X]; int *linebuf; - //int *linebuf; float *zRow; + unsigned int dma_tags; + int run(void *readbuf, void *writebuf); + //void write(void); private: void zRow_init(void); void linebuf_init(void); - void writebuffer(int i, unsigned int fbdev_addr, int y); + void writebuffer(unsigned int fbdev_addr, int y); char* get_pixel(int tx, int ty, void *texture_image); Uint32 get_rgb(int tx, int ty, void *texture); - Uint32 SDL_MapRGB(SDL_PixelFormat *fmt, Uint8 r, Uint8 g, Uint8 b); - Uint8 SDL_FindColor(SDL_Palette *pal, Uint8 r, Uint8 g, Uint8 b); + //Uint32 SDL_MapRGB(SDL_PixelFormat *fmt, Uint8 r, Uint8 g, Uint8 b); + //Uint8 SDL_FindColor(SDL_Palette *pal, Uint8 r, Uint8 g, Uint8 b); }; #endif