-
-
Notifications
You must be signed in to change notification settings - Fork 121
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0fa9e47
commit fa3419c
Showing
19 changed files
with
198 additions
and
189 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,31 @@ | ||
#pragma once | ||
|
||
#define KINC_ATOMIC_COMPARE_EXCHANGE(pointer, oldValue, newValue) | ||
#include <kore3/global.h> | ||
|
||
#define KINC_ATOMIC_COMPARE_EXCHANGE_POINTER(pointer, oldValue, newValue) | ||
static inline bool kore_atomic_compare_exchange(volatile int32_t *pointer, int32_t old_value, int32_t new_value) { | ||
return false; | ||
} | ||
|
||
#define KINC_ATOMIC_INCREMENT(pointer) | ||
static inline bool kore_atomic_compare_exchange_pointer(void *volatile *pointer, void *old_value, void *new_value) { | ||
return false; | ||
} | ||
|
||
#define KINC_ATOMIC_DECREMENT(pointer) | ||
static inline int32_t kore_atomic_increment(volatile int32_t *pointer) { | ||
return 0; | ||
} | ||
|
||
#define KINC_ATOMIC_EXCHANGE_32(pointer, value) | ||
static inline int32_t kore_atomic_decrement(volatile int32_t *pointer) { | ||
return 0; | ||
} | ||
|
||
#define KINC_ATOMIC_EXCHANGE_FLOAT(pointer, value) | ||
static inline void kore_atomic_exchange(volatile int32_t *pointer, int32_t value) { | ||
|
||
} | ||
|
||
static inline void kore_atomic_exchange_float(volatile float *pointer, float value) { | ||
|
||
} | ||
|
||
static inline void kore_atomic_exchange_double(volatile double *pointer, double value) { | ||
|
||
} |
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
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
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,19 @@ | ||
#include <kinc/audio2/audio.h> | ||
#include <kore3/audio/audio.h> | ||
|
||
#include <stdlib.h> | ||
|
||
static kinc_a2_buffer_t a2_buffer; | ||
static kore_audio_buffer audio_buffer; | ||
|
||
void kinc_a2_init() { | ||
kinc_a2_internal_init(); | ||
void kore_audio_init() { | ||
kore_audio_internal_init(); | ||
} | ||
|
||
void kinc_a2_update() {} | ||
void kore_audio_update() {} | ||
|
||
void kinc_a2_shutdown() {} | ||
void kore_audio_shutdown() {} | ||
|
||
static uint32_t samples_per_second = 44100; | ||
|
||
uint32_t kinc_a2_samples_per_second(void) { | ||
uint32_t kore_audio_samples_per_second(void) { | ||
return samples_per_second; | ||
} |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
#include <kinc/threads/event.h> | ||
#include <kore3/threads/event.h> | ||
|
||
void kinc_event_init(kinc_event_t *event, bool auto_reset) {} | ||
void kore_event_init(kore_event *event, bool auto_reset) {} | ||
|
||
void kinc_event_destroy(kinc_event_t *event) {} | ||
void kore_event_destroy(kore_event *event) {} | ||
|
||
void kinc_event_signal(kinc_event_t *event) {} | ||
void kore_event_signal(kore_event *event) {} | ||
|
||
void kinc_event_wait(kinc_event_t *event) {} | ||
void kore_event_wait(kore_event *event) {} | ||
|
||
bool kinc_event_try_to_wait(kinc_event_t *event, double seconds) { | ||
bool kore_event_try_to_wait(kore_event *event, double seconds) { | ||
return false; | ||
} | ||
|
||
void kinc_event_reset(kinc_event_t *event) {} | ||
void kore_event_reset(kore_event *event) {} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,17 @@ | ||
#include <kinc/input/mouse.h> | ||
#include <kore3/input/mouse.h> | ||
|
||
void kinc_internal_mouse_lock(int window) {} | ||
void kore_internal_mouse_lock(int window) {} | ||
|
||
void kinc_internal_mouse_unlock(void) {} | ||
void kore_internal_mouse_unlock(void) {} | ||
|
||
bool kinc_mouse_can_lock(void) { | ||
bool kore_mouse_can_lock(void) { | ||
return false; | ||
} | ||
|
||
void kinc_mouse_show() {} | ||
void kore_mouse_show() {} | ||
|
||
void kinc_mouse_hide() {} | ||
void kore_mouse_hide() {} | ||
|
||
void kinc_mouse_set_position(int window, int x, int y) {} | ||
void kore_mouse_set_position(int window, int x, int y) {} | ||
|
||
void kinc_mouse_get_position(int window, int *x, int *y) {} | ||
void kore_mouse_get_position(int window, int *x, int *y) {} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,23 @@ | ||
#include <kinc/threads/mutex.h> | ||
#include <kore3/threads/mutex.h> | ||
|
||
void kinc_mutex_init(kinc_mutex_t *mutex) {} | ||
void kore_mutex_init(kore_mutex *mutex) {} | ||
|
||
void kinc_mutex_destroy(kinc_mutex_t *mutex) {} | ||
void kore_mutex_destroy(kore_mutex *mutex) {} | ||
|
||
bool kinc_mutex_try_to_lock(kinc_mutex_t *mutex) { | ||
bool kore_mutex_try_to_lock(kore_mutex *mutex) { | ||
return false; | ||
} | ||
|
||
void kinc_mutex_lock(kinc_mutex_t *mutex) {} | ||
void kore_mutex_lock(kore_mutex *mutex) {} | ||
|
||
void kinc_mutex_unlock(kinc_mutex_t *mutex) {} | ||
void kore_mutex_unlock(kore_mutex *mutex) {} | ||
|
||
bool kinc_uber_mutex_init(kinc_uber_mutex_t *mutex, const char *name) { | ||
bool kore_uber_mutex_init(kore_uber_mutex *mutex, const char *name) { | ||
return false; | ||
} | ||
|
||
void kinc_uber_mutex_destroy(kinc_uber_mutex_t *mutex) {} | ||
void kore_uber_mutex_destroy(kore_uber_mutex *mutex) {} | ||
|
||
void kinc_uber_mutex_lock(kinc_uber_mutex_t *mutex) {} | ||
void kore_uber_mutex_lock(kore_uber_mutex *mutex) {} | ||
|
||
void kinc_uber_mutex_unlock(kinc_uber_mutex_t *mutex) {} | ||
void kore_uber_mutex_unlock(kore_uber_mutex *mutex) {} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
#include <kinc/threads/semaphore.h> | ||
#include <kore3/threads/semaphore.h> | ||
|
||
void kinc_semaphore_init(kinc_semaphore_t *semaphore, int current, int max) {} | ||
void kore_semaphore_init(kore_semaphore *semaphore, int current, int max) {} | ||
|
||
void kinc_semaphore_destroy(kinc_semaphore_t *semaphore) {} | ||
void kore_semaphore_destroy(kore_semaphore *semaphore) {} | ||
|
||
void kinc_semaphore_release(kinc_semaphore_t *semaphore, int count) {} | ||
void kore_semaphore_release(kore_semaphore *semaphore, int count) {} | ||
|
||
void kinc_semaphore_acquire(kinc_semaphore_t *semaphore) {} | ||
void kore_semaphore_acquire(kore_semaphore *semaphore) {} | ||
|
||
bool kinc_semaphore_try_to_acquire(kinc_semaphore_t *semaphore, double seconds) { | ||
bool kore_semaphore_try_to_acquire(kore_semaphore *semaphore, double seconds) { | ||
return false; | ||
} |
Oops, something went wrong.