Mercurial > hg > Members > koba > t_dandy
view ppe/Sprite.cc @ 37:6989f8cb0259
fix.
author | koba <koba@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Sun, 09 Jan 2011 23:14:26 +0900 |
parents | 4516141d844a |
children |
line wrap: on
line source
#include <string.h> #include "task_object.h" #include "../ObjectType.h" void DefSprite(int number, float w, float h, int color, ObjDataPtr obj) { obj->type = Def; obj->number = number; obj->w = w; obj->h = h; obj->color = color; } void DefSpriteEx(int number, short middlex, short middley, ObjDataPtr obj) { obj->type = DefEx; obj->number = number; obj->middlex = middlex; obj->middley = middley; } void PutSprite(int zorder, short x, short y, int number, ObjDataPtr obj) { obj->type = Put; obj->zorder = zorder; obj->x = x; obj->y = y; obj->number = number; } void PutSpriteEx(int number, int x, int y, float scalex, float scaley, float angle, ObjDataPtr obj) { obj->type = PutEx; obj->number = number; obj->x = x; obj->y = y; obj->scalex = scalex; obj->scaley = scaley; obj->angle = angle; }