cleaned up main internal data structure design, changed to reference counting for sources to ensure safe destruction of source objects from all parts of the system, added some service-related stuff for testing

This commit is contained in:
jp9000
2013-11-20 15:00:16 -07:00
parent 5e33707f6a
commit 409b011a8e
18 changed files with 3155 additions and 327 deletions

View File

@@ -405,18 +405,23 @@ EXPORT texture_t texrender_gettexture(texrender_t texrender);
/* ---------------- */
/* global functions */
#define GS_SUCCESS 0
#define GS_SUCCESS 0
#define GS_ERROR_MODULENOTFOUND -1
#define GS_ERROR_FAIL -2
struct gs_init_data {
struct gs_window {
#if defined(_WIN32)
void *hwnd;
#elif defined(__APPLE__)
__unsafe_unretained id view;
#elif defined(__posix__)
int bla;
/* TODO */
#endif
};
struct gs_init_data {
struct gs_window window;
uint32_t cx, cy;
uint32_t num_backbuffers;
enum gs_color_format format;