-
-
Notifications
You must be signed in to change notification settings - Fork 465
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Moved basic application functionality to CApplication
- Loading branch information
1 parent
bd0887c
commit c76dddd
Showing
13 changed files
with
176 additions
and
246 deletions.
There are no files selected for viewing
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,29 @@ | ||
#ifndef __X_RAY_H__ | ||
#define __X_RAY_H__ | ||
|
||
// refs | ||
class ENGINE_API CGameFont; | ||
class ILoadingScreen; | ||
|
||
// definition | ||
class ENGINE_API CApplication final | ||
{ | ||
SDL_Window* m_window{}; | ||
Event m_should_exit; | ||
bool m_thread_operational{}; | ||
|
||
size_t m_current_surface_idx{}; | ||
xr_vector<SDL_Surface*> m_surfaces; | ||
|
||
private: | ||
static void SplashProc(void* self_ptr); | ||
|
||
void ShowSplash(bool topmost); | ||
void HideSplash(); | ||
|
||
public: | ||
// Other | ||
CApplication(); | ||
CApplication(pcstr commandLine); | ||
~CApplication(); | ||
|
||
int Run(); | ||
}; | ||
|
||
extern ENGINE_API CApplication Application; | ||
|
||
#endif //__XR_BASE_H__ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.