mirror of
https://github.com/Kiritow/MiniEngine.git
synced 2024-03-22 13:11:22 +08:00
Fix Bug on C4droid
This commit is contained in:
parent
df5c80e99e
commit
df0695a9d8
|
@ -111,3 +111,7 @@ InitManager_Mix::~InitManager_Mix()
|
|||
Mix_Quit();
|
||||
}
|
||||
|
||||
InitManager_SDL* syssdl=NULL;
|
||||
InitManager_IMG* sysimg=NULL;
|
||||
InitManager_TTF* systtf=NULL;
|
||||
InitManager_Mix* sysmix=NULL;
|
||||
|
|
|
@ -37,7 +37,7 @@ public:
|
|||
~InitManager_Mix();
|
||||
};
|
||||
|
||||
extern InitManager_SDL syssdl;
|
||||
extern InitManager_IMG sysimg;
|
||||
extern InitManager_TTF systtf;
|
||||
extern InitManager_Mix sysmix;
|
||||
extern InitManager_SDL* syssdl;
|
||||
extern InitManager_IMG* sysimg;
|
||||
extern InitManager_TTF* systtf;
|
||||
extern InitManager_Mix* sysmix;
|
||||
|
|
|
@ -1,5 +1,9 @@
|
|||
#pragma once
|
||||
|
||||
#ifdef __C4DROID__
|
||||
#define _WINDOW_PROGRAM
|
||||
#endif // __C4DROID__
|
||||
|
||||
#include <cstdio>
|
||||
#include <cstdlib>
|
||||
#include <cstring>
|
||||
|
|
8
main.cpp
8
main.cpp
|
@ -1,17 +1,13 @@
|
|||
#include "config.h"
|
||||
#include "App.h"
|
||||
|
||||
InitManager_SDL syssdl;
|
||||
InitManager_IMG sysimg;
|
||||
InitManager_TTF systtf;
|
||||
InitManager_Mix sysmix;
|
||||
|
||||
int main()
|
||||
{
|
||||
mlog_init();
|
||||
AllInit();
|
||||
/// Create The Default Window Instance
|
||||
WindowManager::getDefaultInstance();
|
||||
App::Main();
|
||||
WindowManager::releaseDefaultInstance();
|
||||
AllQuit();
|
||||
return 0;
|
||||
}
|
||||
|
|
|
@ -1 +1,20 @@
|
|||
#include "mini_engine.h"
|
||||
|
||||
void AllInit()
|
||||
{
|
||||
mlog_init();
|
||||
|
||||
syssdl=new InitManager_SDL;
|
||||
sysimg=new InitManager_IMG;
|
||||
systtf=new InitManager_TTF;
|
||||
sysmix=new InitManager_Mix;
|
||||
|
||||
}
|
||||
|
||||
void AllQuit()
|
||||
{
|
||||
delete sysmix;
|
||||
delete systtf;
|
||||
delete sysimg;
|
||||
delete syssdl;
|
||||
}
|
||||
|
|
|
@ -12,3 +12,6 @@
|
|||
/******************************************************************************/
|
||||
/// Application
|
||||
#include "App.h"
|
||||
|
||||
void AllInit();
|
||||
void AllQuit();
|
||||
|
|
Loading…
Reference in New Issue
Block a user