Initial commit

This commit is contained in:
Patrick 2025-10-03 20:16:11 +02:00
commit 56f7cd1875
105 changed files with 22109 additions and 0 deletions

24
src/window/internal.h Normal file
View file

@ -0,0 +1,24 @@
#ifndef PGPL_WINDOW_INTERNAL_H
#define PGPL_WINDOW_INTERNAL_H
#include <pgpl.h>
/* This is needed if there are multiple windows open. Created by pgpl_init,
* destroyed by pgpl_deinit. */
extern PGPL_Mutex *render_lock;
typedef struct PGPL_WindowShared {
double scale;
PGPL_Vector *event_types;
PGPL_Vector *event_data;
} PGPL_WindowShared;
PGPL_WindowEventType
pgpl_window_internal_fetch_window_event(PGPL_Window *window,
PGPL_WindowEventData *event_data);
void pgpl_window_internal_start_render(PGPL_Window *window);
void pgpl_window_internal_finish_render(PGPL_Window *window);
#endif