Initial port to macOS

Doesn't work yet as SDL1 is broken on modern macOS.

FossilOrigin-Name: f5b62f82030659a511f4add8212857fca598c6cef86a3238705eb60e35011631
This commit is contained in:
Jonathan Schleifer 2025-03-04 23:03:58 +00:00
parent 9782fa9b54
commit c3cd8d4fac
6 changed files with 26 additions and 13 deletions

View file

@ -460,9 +460,17 @@ enum // function signatures for script functions, see command.cpp
#include <time.h>
#include <GL/gl.h>
#include <GL/glext.h>
#include <GL/glu.h>
#ifdef OF_MACOS
# define GL_SILENCE_DEPRECATION
# define GL_EXT_texture_env_combine 1
# include <OpenGL/gl.h>
# include <OpenGL/glext.h>
# include <OpenGL/glu.h>
#else
# include <GL/gl.h>
# include <GL/glext.h>
# include <GL/glu.h>
#endif
#include <SDL.h>
#include <SDL_image.h>