Browse Source

Don't include GLFW/glfw3native.h in window.hpp.

tags/v1.1.6
Andrew Belt 2 years ago
parent
commit
8140897835
3 changed files with 9 additions and 9 deletions
  1. +3
    -1
      include/rack.hpp
  2. +0
    -8
      include/window.hpp
  3. +6
    -0
      src/main.cpp

+ 3
- 1
include/rack.hpp View File

@@ -1,6 +1,8 @@
#pragma once

// Include most Rack headers for convenience

// The following headers are the "public" API of Rack.

#include <common.hpp>
#include <math.hpp>
#include <string.hpp>


+ 0
- 8
include/window.hpp View File

@@ -8,14 +8,6 @@
#define GLEW_NO_GLU
#include <GL/glew.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>
#define NANOVG_GL2
#include <nanovg_gl.h>


+ 6
- 0
src/main.cpp View File

@@ -27,6 +27,12 @@
#include <windows.h> // for CreateMutex
#endif

#if defined ARCH_MAC
#define GLFW_EXPOSE_NATIVE_COCOA
#include <GLFW/glfw3native.h> // for glfwGetOpenedFilenames()
#endif


using namespace rack;




Loading…
Cancel
Save