Mercurial > hg > old > magoroku_racing
view sgoex.h @ 122:5219bf3d5e71
title_draw
author | e085768 |
---|---|
date | Mon, 27 Jun 2011 19:44:46 +0900 |
parents | 31dd5c07f7c1 |
children |
line wrap: on
line source
#ifndef SGOEX_H #define SGOEX_H #include <SDL.h> #define DEFOBJ 320 // sprite definition max num #define MAXOBJ 320 // sprite drawing max num #define BOOL char // define bool #define TRUE 1 // TRUE value #define FALSE 0 // FALSE value /*PS2_PAD*/ #define PS2_CROSS 0 #define PS2_CIRCLE 1 #define PS2_SQUARE 2 #define PS2_TRIANGLE 3 #define PS2_L1 4 #define PS2_R1 5 #define PS2_L2 6 #define PS2_R2 7 #define PS2_START 8 #define PS2_SELECT 9 #define PS2_L3 10 #define PS2_R3 11 /*PS3_PAD*/ /* #define PS2_CROSS 14 #define PS2_CIRCLE 13 #define PS2_SQUARE 15 #define PS2_TRIANGLE 12 #define PS2_L1 10 #define PS2_R1 11 #define PS2_L2 8 #define PS2_R2 9 #define PS2_START 3 #define PS2_SELECT 0 #define PS2_L3 1 #define PS2_R3 2 */ typedef struct SGO_PAD { short up; short down; short right; short left; short k0; short k1; short k3; short k4; short r1; short r2; short r3; short l1; short l2; short l3; short se; short st; // 勝手に付けた short quit; } SGO_PAD; typedef struct SpriteView { int x; int y; BOOL extend; short scalex; short scaley; long rotate; int no; } SpriteView; typedef struct SpriteTable { short dx; short dy; short w; short h; short mx; short my; int color; int page; int tex_w; int tex_h; int *texture; int tex_id; // for open gl } SpriteTable; //extern GsSPRITE sprite[MAXOBJ]; extern SpriteTable sptable[DEFOBJ]; void PutSprite(int zorder, short x, short y, int number); void DefSprite(int number, const char *name, float w, float h, int color, OBJECT *obj); void DefSpriteEx(int number, short middlex, short middley); void PutSpriteEx(int number, int x, int y, float scalex, float scaley, float angle); /* Joypad - Below member are implemented in sgoex_ps2.c */ extern SGO_PAD pad[2]; void Pad(SDL_Joystick *joy); void keybord(); #endif // SGOEX_H