diff --git a/README.md b/README.md index 80d1353..9531c3c 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ # RFont -Simple single header modular font rendering librayr +Simple single header modular font rendering lubrary NOTE: this project is very WIP and is not useable yet\ diff --git a/RFont.h b/RFont.h index 46f0b36..254b7b5 100644 --- a/RFont.h +++ b/RFont.h @@ -308,7 +308,16 @@ void RFont_draw_text_len(RFont_font* font, const char* text, size_t len, i32 x, } #if !defined(RFONT_NO_OPENGL) && !defined(RFONT_NO_GRAPHICS) + +#ifndef __APPLE__ #include +#else +#include +#endif + +#ifndef GL_TEXTURE_SWIZZLE_RGBA +#define GL_TEXTURE_SWIZZLE_RGBA 0x8E46 +#endif u32 RFont_create_atlas(u32 atlasWidth, u32 atlasHeight) { u32 id = 0; diff --git a/example/Makefile b/example/Makefile index 017f48f..99d41a1 100644 --- a/example/Makefile +++ b/example/Makefile @@ -14,7 +14,7 @@ ifeq ($(detected_OS),Darwin) # Mac OS X LIBS := ./ext/Silicon/*.o -lm -framework Foundation -framework AppKit -framework OpenGL -framework CoreVideo endif ifeq ($(detected_OS),Linux) - LIBS := -I./include -lX11 -lGLX -lm + LIBS := -I./include -lX11 -lGLX -lm -lGL endif all: