Added basic Window interface

This commit is contained in:
Robert 2020-06-15 20:03:08 +02:00
parent a027bdf802
commit db99718802
99 changed files with 38994 additions and 0 deletions

13
src/sdlf/CMakeLists.txt Normal file
View file

@ -0,0 +1,13 @@
add_library(sdlf STATIC
"SDLF.hpp"
"Window.hpp" "Window.cpp"
)
target_include_directories(sdlf PRIVATE
"${CMAKE_SOURCE_DIR}/3rdparty/include/SDL"
)
target_link_libraries(sdlf PRIVATE
"${CMAKE_SOURCE_DIR}/3rdparty/lib/SDL2.lib"
"${CMAKE_SOURCE_DIR}/3rdparty/lib/SDL2main.lib"
)

3
src/sdlf/SDLF.hpp Normal file
View file

@ -0,0 +1,3 @@
#pragma once
#include "Window.hpp"

12
src/sdlf/Window.cpp Normal file
View file

@ -0,0 +1,12 @@
#include "Window.hpp"
#include <iostream>
namespace sf
{
IWindow::IWindow() :
m_pWindow(nullptr), m_pRenderer(nullptr)
{
}
}

16
src/sdlf/Window.hpp Normal file
View file

@ -0,0 +1,16 @@
#pragma once
#include "SDL.h"
namespace sf
{
class IWindow
{
public:
IWindow();
private:
SDL_Window* m_pWindow;
SDL_Renderer* m_pRenderer;
};
}