1. glfw与窗口有关的库
glfwSetWindowPos(Window*, int, int )-----设置window窗口的位置
GLFWwindow* glfwCreateWindow(int width, int height, const char * title, GLFWmonitor * monitor, GLFWwindow * share);
//示例,GLFW库全屏窗口
bool isFullScreen = true;
GLFWmonitor* pMonitor = isFullScreen ? glfwGetPrimaryMonitor() : NULL;
GLFWwindow* window = glfwCreateWindow(WIDTH, HEIGHT, “Holographic projection”, pMonitor, NULL);
OpenGL常用的函数记录
最新推荐文章于 2023-02-25 22:11:38 发布