inital, almost working cross-compilation setup with Visual Studio and cmake
This commit is contained in:
20
engine/src/Engine.cpp
Normal file
20
engine/src/Engine.cpp
Normal file
@@ -0,0 +1,20 @@
|
||||
#include "Engine.h"
|
||||
#include <SDL3/SDL.h>
|
||||
|
||||
Engine::Engine() = default;
|
||||
Engine::~Engine() = default;
|
||||
|
||||
bool Engine::Init()
|
||||
{
|
||||
if (!SDL_Init(SDL_INIT_VIDEO | SDL_INIT_EVENTS))
|
||||
{
|
||||
SDL_Log("SDL_Init failed: %s", SDL_GetError());
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
void Engine::Shutdown()
|
||||
{
|
||||
SDL_Quit();
|
||||
}
|
||||
1
engine/src/Engine.hpp
Normal file
1
engine/src/Engine.hpp
Normal file
@@ -0,0 +1 @@
|
||||
#pragma once
|
||||
Reference in New Issue
Block a user