mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-09-26 11:23:15 +08:00

* 1. Remove all global include_directories. * 2. Move 3d party dependencies from src to budled deps if possible. * Unify and enforce one way of including headers: e.g. #include "libslic3r/GCode.hpp" vs #include "GCode.hpp" (always use the "libslic3r/GCode.hpp" option). * Make all dependencies (also header only) a cmake target.
35 lines
777 B
C++
35 lines
777 B
C++
#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
|