forked from mhernando/Apolo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
apolo.cpp
34 lines (25 loc) · 795 Bytes
/
apolo.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#include "mrcore.h"
#include "mainWindow.h"
#include <wx/wx.h>
#include <wx/splash.h>
#include <wx/menu.h>
class Apolo : public wxApp
{
public:
virtual bool OnInit();
MainWindow* apoloMainWin;
};
IMPLEMENT_APP(Apolo);
bool Apolo::OnInit()
{
wxBitmap bitmap;
if (bitmap.LoadFile(wxT("ApoloImage.bmp"), wxBITMAP_TYPE_BMP))
wxSplashScreen* splash = new wxSplashScreen(bitmap,wxSPLASH_CENTRE_ON_SCREEN|wxSPLASH_TIMEOUT,4000, NULL, -1,
wxDefaultPosition, wxDefaultSize, wxSIMPLE_BORDER|wxSTAY_ON_TOP);
wxYield();
mrcoreInit();
apoloMainWin = new MainWindow((wxFrame *) NULL, wxID_ANY, wxT("APOLO"), wxDefaultPosition, wxSize(800,600), wxDEFAULT_FRAME_STYLE | wxHSCROLL | wxVSCROLL);
apoloMainWin->Show(true);
SetTopWindow(apoloMainWin);
return true;
}