This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "hscript.h" | |
#include <ctype.h> | |
#include <string.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <inttypes.h> | |
#include <assert.h> | |
HSId HScript_new_id() | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Stream-like archive, that treats data as a flat blob | |
template<typename TArchive> | |
concept TStreamArchiveConcept = requires(TArchive& archive, | |
char& c8, | |
b8& b8, | |
u16& u16, | |
u32& u32, | |
u64& u64, | |
i16& i16, | |
i32& i32, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#pragma once | |
struct DirtyComponent | |
{ | |
}; | |
/* | |
struct VectorizeComponent | |
{ | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
static constexpr uint64_t g_fixed_frame_rate = 60; | |
static constexpr double g_fixed_delta_time = 1.0 / g_fixed_frame_rate; | |
// Time counters | |
uint64_t m_start_tick = 0; | |
uint64_t m_prev_tick = 0; | |
uint64_t m_delta_tick = 0; | |
// Last processed frame number | |
uint64_t m_fixed_last_frame = 0; |