From 4be19cc8bfa9ea63c3d90aa0900f28ca9c373b90 Mon Sep 17 00:00:00 2001 From: Aki Date: Mon, 28 Feb 2022 21:43:04 +0100 Subject: Added stub to export WinApi and DX9 parts to --- Stars45/ApplicationDX9.cpp | 17 +++++++++++++++++ Stars45/ApplicationDX9.h | 19 +++++++++++++++++++ Stars45/CMakeLists.txt | 1 + Stars45/Game.h | 3 ++- 4 files changed, 39 insertions(+), 1 deletion(-) create mode 100644 Stars45/ApplicationDX9.cpp create mode 100644 Stars45/ApplicationDX9.h diff --git a/Stars45/ApplicationDX9.cpp b/Stars45/ApplicationDX9.cpp new file mode 100644 index 0000000..0a9adc6 --- /dev/null +++ b/Stars45/ApplicationDX9.cpp @@ -0,0 +1,17 @@ +/* Starshatter: The Open Source Project + Copyright (c) 2021-2022, Starshatter: The Open Source Project Contributors + Copyright (c) 2011-2012, Starshatter OpenSource Distribution Contributors + Copyright (c) 1997-2006, Destroyer Studios LLC. +*/ + +#include "ApplicationDX9.h" + + +ApplicationDX9::ApplicationDX9() +{ +} + + +ApplicationDX9::~ApplicationDX9() +{ +} diff --git a/Stars45/ApplicationDX9.h b/Stars45/ApplicationDX9.h new file mode 100644 index 0000000..e6003e7 --- /dev/null +++ b/Stars45/ApplicationDX9.h @@ -0,0 +1,19 @@ +/* Starshatter: The Open Source Project + Copyright (c) 2021-2022, Starshatter: The Open Source Project Contributors + Copyright (c) 2011-2012, Starshatter OpenSource Distribution Contributors + Copyright (c) 1997-2006, Destroyer Studios LLC. +*/ + +#ifndef ApplicationDX9_h +#define ApplicationDX9_h + + +class ApplicationDX9 +{ +public: + ApplicationDX9(); + virtual ~ApplicationDX9(); +}; + + +#endif // ApplicationDX9_h diff --git a/Stars45/CMakeLists.txt b/Stars45/CMakeLists.txt index 7f5216d..19bfbdd 100644 --- a/Stars45/CMakeLists.txt +++ b/Stars45/CMakeLists.txt @@ -4,6 +4,7 @@ include(GitToResource) add_executable( Stars45 WIN32 ActiveWindow.cpp + ApplicationDX9.cpp Archive.cpp Asteroid.cpp AudDlg.cpp diff --git a/Stars45/Game.h b/Stars45/Game.h index b86e0fc..1be7170 100644 --- a/Stars45/Game.h +++ b/Stars45/Game.h @@ -10,6 +10,7 @@ #ifndef Game_h #define Game_h +#include "ApplicationDX9.h" #include "Types.h" #include "Screen.h" #include "Video.h" @@ -36,7 +37,7 @@ class Text; // +--------------------------------------------------------------------+ -class Game +class Game : public ApplicationDX9 { public: static const char* TYPENAME() { return "Game"; } -- cgit v1.1