start to lay down scheduler
This commit is contained in:
@@ -5,5 +5,10 @@ set(CMAKE_CXX_STANDARD 17)
|
||||
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
||||
|
||||
add_subdirectory(gb)
|
||||
add_library(cores BaseCore.cpp BaseCore.hpp common.hpp)
|
||||
add_library(cores
|
||||
BaseCore.cpp
|
||||
BaseCore.hpp
|
||||
Scheduler.cpp
|
||||
Scheduler.hpp
|
||||
common.hpp)
|
||||
target_include_directories(cores PUBLIC .)
|
||||
|
||||
6
src/core/Scheduler.cpp
Normal file
6
src/core/Scheduler.cpp
Normal file
@@ -0,0 +1,6 @@
|
||||
#include <Scheduler.hpp>
|
||||
|
||||
namespace natsukashii::core {
|
||||
Scheduler::Scheduler() {
|
||||
}
|
||||
}
|
||||
10
src/core/Scheduler.hpp
Normal file
10
src/core/Scheduler.hpp
Normal file
@@ -0,0 +1,10 @@
|
||||
#pragma once
|
||||
#include <common.hpp>
|
||||
|
||||
namespace natsukashii::core {
|
||||
struct Scheduler {
|
||||
Scheduler();
|
||||
private:
|
||||
u128 currentTime = 0;
|
||||
};
|
||||
}
|
||||
@@ -1,6 +1,7 @@
|
||||
#pragma once
|
||||
#include <cstdint>
|
||||
#include <bitset>
|
||||
#include <emmintrin.h>
|
||||
|
||||
using u8 = uint8_t;
|
||||
using u16 = uint16_t;
|
||||
@@ -10,4 +11,6 @@ using s8 = int8_t;
|
||||
using s16 = int16_t;
|
||||
using s32 = int32_t;
|
||||
using s64 = int64_t;
|
||||
using i128 = std::bitset<128>; // there isn't really a sign to a bitset
|
||||
using u128 = __uint128_t;
|
||||
using s128 = __int128_t;
|
||||
using m128 = __m128i;
|
||||
@@ -1,6 +1,4 @@
|
||||
#include <Frontend.hpp>
|
||||
#include <SDL2/SDL_events.h>
|
||||
#include <SDL2/SDL_video.h>
|
||||
|
||||
namespace natsukashii::frontend {
|
||||
App::~App() {
|
||||
|
||||
Reference in New Issue
Block a user