Skip to content

Commit

Permalink
Making time and window headers usable from c++.
Browse files Browse the repository at this point in the history
  • Loading branch information
Chukobyte committed Nov 2, 2024
1 parent 42ed7a3 commit 4942fed
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 1 deletion.
8 changes: 8 additions & 0 deletions seika/rendering/window.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

#if SKA_RENDERING

#ifdef __cplusplus
extern "C" {
#endif

#include "seika/defines.h"

struct SkaColor;
Expand All @@ -20,5 +24,9 @@ void ska_window_finalize();
void ska_window_render(const struct SkaColor* backgroundColor);
bool ska_window_set_vsync(bool enabled);

#ifdef __cplusplus
}
#endif

#endif // #if SKA_RENDERING

8 changes: 8 additions & 0 deletions seika/time.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,17 @@

#if SKA_INPUT || SKA_RENDERING

#ifdef __cplusplus
extern "C" {
#endif

#include "seika/defines.h"

uint32 ska_get_ticks();
void ska_delay(uint32 milliseconds);

#ifdef __cplusplus
}
#endif

#endif // #if SKA_INPUT || SKA_RENDERING
2 changes: 1 addition & 1 deletion seika/version_info.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@

#define SKA_VERSION_MAJOR 0
#define SKA_VERSION_MINOR 2
#define SKA_VERSION_PATCH 2
#define SKA_VERSION_PATCH 3

#define SKA_VERSION (SKA_MACRO_TO_STRING(SKA_VERSION_MAJOR) "." SKA_MACRO_TO_STRING(SKA_VERSION_MINOR) "." SKA_MACRO_TO_STRING(SKA_VERSION_PATCH))

0 comments on commit 4942fed

Please sign in to comment.