SDLGameEngine

include/sgespritegroup.h File Reference

Sprite groups. More...

Go to the source code of this file.

Data Structures

struct  SGESPRITEGROUP
 holds a SGEARRAY with all sprites of the group More...

Functions

SGESPRITEGROUPsgeSpriteGroupNew (void)
 creates a new empty spritegroup
void sgeSpriteGroupDestroy (SGESPRITEGROUP *g)
 destroy a spritegroup and free resources
void sgeSpriteGroupAddSprite (SGESPRITEGROUP *g, SGESPRITE *s)
 adds a sprite to the group
int sgeSpriteGroupCollide (SGESPRITEGROUP *g, SGESPRITEGROUP *cg)
 checks if two sprite groups collide anywhere
int sgeSpriteGroupCollideSprite (SGESPRITEGROUP *g, SGESPRITE *s)
 checks if a sprite collides a sprite group
SGESPRITEsgeSpriteGroupGetCollider (SGESPRITEGROUP *g, SGESPRITEGROUP *cg)
 get the first sprite of group g which collides with group cg
SGESPRITEsgeSpriteGroupGetColliderSprite (SGESPRITEGROUP *g, SGESPRITE *s)
 get the first sprite of group g which collides with sprite s
void sgeSpriteGroupDraw (SGESPRITEGROUP *g)
 draw a complete sprite group to the screen
void sgeSpriteGroupDrawRelative (SGESPRITEGROUP *g, int camx, int camy)
 draw a complete sprite group to the screen, relative to a 'camera' position

Detailed Description

Sprite groups.

Definition in file sgespritegroup.h.

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines