sculpto
window.cpp
Go to the documentation of this file.
1/*!****************************************************************//*!*
2 * \file window.cpp
3 * \brief Abstract, platform independent class implementation module.
4 *
5 * \author Sabitov Kirill
6 * \date 25 June 2022
7 *********************************************************************/
8
9#include "sclpch.h"
10
11#ifdef SCL_PLATFORM_WINDOWS
13#endif
14
15scl::window::window(int Width, int Height, const std::string &Title) :
16 Data(Width, Height, Title)
17{
18}
19
20scl::unique<scl::window> scl::window::Create(int Width, int Height, const std::string &Title)
21{
22#ifdef SCL_PLATFORM_WINDOWS
23 return CreateUnique<windows_window>(Width, Height, Title);
24#else
25 SCL_CORE_ASSERT(false, "Unknown platform!");
26 return nullptr;
27#endif
28}
#define SCL_CORE_ASSERT(expr,...)
Definition: assert.h:69
window(const window &)=delete
static unique< window > Create(int Width, int Height, const std::string &Title)
Definition: window.cpp:20
std::unique_ptr< T > unique
Definition: smart_ptr.h:25
Sculpto library prehompiled header. Defines common definitions, includes commonly used modules.