Added basic Window interface
This commit is contained in:
parent
a027bdf802
commit
db99718802
99 changed files with 38994 additions and 0 deletions
13
src/sdlf/CMakeLists.txt
Normal file
13
src/sdlf/CMakeLists.txt
Normal 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
3
src/sdlf/SDLF.hpp
Normal file
|
@ -0,0 +1,3 @@
|
|||
#pragma once
|
||||
|
||||
#include "Window.hpp"
|
12
src/sdlf/Window.cpp
Normal file
12
src/sdlf/Window.cpp
Normal 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
16
src/sdlf/Window.hpp
Normal 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;
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue