Welcome to mirror list, hosted at ThFree Co, Russian Federation.

background_window.h « glfw « opengl « igl « src - github.com/prusa3d/PrusaSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: a37515b8963ddde741752b8837d93a6d2c4fca70 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#ifndef IGL_OPENGL_GLFW_BACKGROUND_WINDOW_H
#define IGL_OPENGL_GLFW_BACKGROUND_WINDOW_H
#include "../../igl_inline.h"

#include "../gl.h"
#include <GLFW/glfw3.h>

namespace igl
{
  namespace opengl
  {
    namespace glfw
    {
      // Create a background window with a valid core profile opengl context
      // set to current.
      //
      // After you're finished with this window you may call
      // `glfwDestroyWindow(window)`
      //
      // After you're finished with glfw you should call `glfwTerminate()`
      //
      // Outputs:
      //    window  pointer to glfw window
      // Returns true iff success
      IGL_INLINE bool background_window(GLFWwindow* & window);
    }
  }
}

#ifndef IGL_STATIC_LIBRARY
#  include "background_window.cpp"
#endif

#endif