context_init args for GL ver and init SDL audio

This commit is contained in:
headshot2017
2022-12-27 21:35:28 -04:00
parent 6e8aa3dd91
commit c305f282de
2 changed files with 12 additions and 10 deletions
+5 -2
View File
@@ -8,13 +8,16 @@
#elif _WIN32
# define HAVE_M_PI
# include <GL/glew.h>
# include <SDL.h>
# include <SDL2/SDL.h>
#else
# include <GL/glew.h>
# include <SDL2/SDL.h>
#endif
extern void context_init( const char *title, int width, int height );
extern int WINDOW_WIDTH;
extern int WINDOW_HEIGHT;
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 void context_terminate( void );