Files
libsm64/test/context.h
T
NepuShiro d6bafb4403
Build libsm64 / Build libsm64 for linux (push) Failing after 29s
Build libsm64 / Build libsm64 for web (push) Successful in 33s
Build libsm64 / Build libsm64 for windows (push) Successful in 24s
Implement play/stop cap and shell music
2026-05-27 19:00:04 -05:00

31 lines
731 B
C

#pragma once
#include <stdbool.h>
#ifdef __APPLE__
# include <OpenGL/gl3.h>
# include <SDL2/SDL.h>
#elif _WIN32
# define HAVE_M_PI
# include <GL/glew.h>
# include <SDL2/SDL.h>
#else
# include <GL/glew.h>
# include <SDL2/SDL.h>
#endif
extern int WINDOW_WIDTH;
extern int WINDOW_HEIGHT;
#ifdef __cplusplus
extern "C" {
#endif
extern void context_init(const char *title, int width, int height, int major, int minor);
extern bool context_flip_frame_poll_events(void);
extern SDL_GameController *context_get_controller(void);
extern SDL_Window *context_get_window(void);
extern SDL_GLContext context_get_gl_context(void);
extern void context_terminate(void);
#ifdef __cplusplus
}
#endif