@@ -1,6 +1,8 @@ | |||||
#pragma once | #pragma once | ||||
// Include most Rack headers for convenience | |||||
// The following headers are the "public" API of Rack. | |||||
#include <common.hpp> | #include <common.hpp> | ||||
#include <math.hpp> | #include <math.hpp> | ||||
#include <string.hpp> | #include <string.hpp> | ||||
@@ -8,14 +8,6 @@ | |||||
#define GLEW_NO_GLU | #define GLEW_NO_GLU | ||||
#include <GL/glew.h> | #include <GL/glew.h> | ||||
#include <GLFW/glfw3.h> | #include <GLFW/glfw3.h> | ||||
#if defined ARCH_WIN | |||||
#define GLFW_EXPOSE_NATIVE_WIN32 | |||||
#elif defined ARCH_MAC | |||||
#define GLFW_EXPOSE_NATIVE_COCOA | |||||
#elif defined ARCH_LIN | |||||
#define GLFW_EXPOSE_NATIVE_X11 | |||||
#endif | |||||
#include <GLFW/glfw3native.h> | |||||
#include <nanovg.h> | #include <nanovg.h> | ||||
#define NANOVG_GL2 | #define NANOVG_GL2 | ||||
#include <nanovg_gl.h> | #include <nanovg_gl.h> | ||||
@@ -27,6 +27,12 @@ | |||||
#include <windows.h> // for CreateMutex | #include <windows.h> // for CreateMutex | ||||
#endif | #endif | ||||
#if defined ARCH_MAC | |||||
#define GLFW_EXPOSE_NATIVE_COCOA | |||||
#include <GLFW/glfw3native.h> // for glfwGetOpenedFilenames() | |||||
#endif | |||||
using namespace rack; | using namespace rack; | ||||