mirror of
https://github.com/Kiritow/MiniEngine.git
synced 2024-03-22 13:11:22 +08:00
kiritow
9c1feddb49
Music SoundEffect added. MusicPlayer added. Sample Application Source Code Changed.
43 lines
755 B
C++
43 lines
755 B
C++
#pragma once
|
|
#include "config.h"
|
|
|
|
class InitManager_SDL
|
|
{
|
|
public:
|
|
InitManager_SDL();
|
|
~InitManager_SDL();
|
|
};
|
|
|
|
class InitManager_TTF
|
|
{
|
|
public:
|
|
InitManager_TTF();
|
|
~InitManager_TTF();
|
|
int openFont(const char* FileName,int Size);
|
|
int closeFont();
|
|
TTF_Font* font();
|
|
private:
|
|
TTF_Font* _font;
|
|
static int ctm;
|
|
};
|
|
|
|
class InitManager_IMG
|
|
{
|
|
public:
|
|
InitManager_IMG();
|
|
~InitManager_IMG();
|
|
SDL_Surface* loadimage(const char* FileName);
|
|
SDL_Texture* loadtexture(SDL_Renderer* rnd,const char* Filename);
|
|
};
|
|
class InitManager_Mix
|
|
{
|
|
public:
|
|
InitManager_Mix();
|
|
~InitManager_Mix();
|
|
};
|
|
|
|
extern InitManager_SDL* syssdl;
|
|
extern InitManager_IMG* sysimg;
|
|
extern InitManager_TTF* systtf;
|
|
extern InitManager_Mix* sysmix;
|