Mercurial > hg > old > magoroku_racing
view gSprite.h.orig @ 122:5219bf3d5e71
title_draw
author | e085768 |
---|---|
date | Mon, 27 Jun 2011 19:44:46 +0900 |
parents | 411ba68e9cf8 |
children |
line wrap: on
line source
#ifndef GSPRITE_H #define GSPRITE_H // enum_SpriteNameの略 enum eSpName { TITLE = 10, SELECT = 17, SP_METER = 23, R_ARROW = 24, L_ARROW = 25, KM = 26, // Km/h RAP = 27, PLAYER_1 = 28, PLAYER_2 = 29, SELECT_CAR_1 = 51, SELECT_CAR_2 = 52, SELECT_CAR_3 = 53, SELECT_CORSE_1 = 81, SELECT_CORSE_2 = 82 }; //スプライトの優先順位らしい ? #define SPRITE_PRIO_FOREGROUND 1 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 とってみたけど、なにか不都合ありますか?:miya void gSprite_Init(); void gSprite_Draw_Reset(); void gSprite_PutSprite(int number, int x, int y); //void gSprite_PutSpriteEx(int number, int x, int y, float w, float h); void gSprite_PutSpriteEx(int number, int x, int y, float scalex, float scaley, float angle); //void gSprite_DefSprite(int number, int tx, int ty, int tw, int th); void gSprite_DefSprite(int number, const char *name, float w, float h, int color);//, OBJECT *obj); #endif void flip();