60 lines
929 B
C
60 lines
929 B
C
#ifndef _GAMELIB_H_
|
|
#define _GAMELIB_H_
|
|
|
|
#include "Time.h"
|
|
#include "Util.h"
|
|
#include "Draw.h"
|
|
#include "Input.h"
|
|
#include "Audio.h"
|
|
#include "Anim.h"
|
|
#include "Entity.h"
|
|
|
|
|
|
/////////////////////////////
|
|
// GameLib_Init
|
|
//
|
|
// Initializes the game.
|
|
int GameLib_Init(int w,int h,char *title,int fps);
|
|
|
|
|
|
/////////////////////////////
|
|
// GameLib_AddEntity
|
|
//
|
|
// Adds an entity to the game.
|
|
void GameLib_AddEntity(Entity *e);
|
|
|
|
|
|
/////////////////////////////
|
|
// GameLib_UnrefEntity
|
|
//
|
|
// removes the reference to the entity.
|
|
int GameLib_UnrefEntity(Entity *e);
|
|
|
|
|
|
/////////////////////////////
|
|
// GameLib_DelEntity
|
|
//
|
|
// Adds an entity to the game.
|
|
int GameLib_DelEntity(Entity *e);
|
|
|
|
|
|
/////////////////////////////
|
|
// GameLib_Loop
|
|
//
|
|
// Loops the game.
|
|
void GameLib_Loop(
|
|
void (*gameproc)(),
|
|
void (*gamepostproc)());
|
|
|
|
|
|
/////////////////////////////
|
|
// GameLib_BreakLoop
|
|
//
|
|
// Breaks the game loop.
|
|
void GameLib_BreakLoop();
|
|
|
|
|
|
|
|
|
|
#endif
|