view gSprite.h @ 116:ed702e49cc6c

conpile
author e085768
date Thu, 16 Jun 2011 04:05:33 +0900
parents 31dd5c07f7c1
children f2e2460b4011
line wrap: on
line source

#ifndef GSPRITE_H
#define GSPRITE_H

//スプライトの優先順位らしい ?
#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