AliyunQueenSDK v1.9.0
glfw_window.h
浏览该文件的文档.
1//
2// glfw_window.h
3// queen
4//
5// Created by aliyun on 2021/3/14.
6// Copyright © 2021 alibaba-inc. All rights reserved.
7//
8
9#ifndef QUEEN_GLFW_window_h
10#define QUEEN_GLFW_window_h
11
12#include <functional>
14
15struct GLFWwindow;
16
17namespace queen {
18
20 public:
23 const char* GetGLVersion();
24 bool Init(int width, int height, bool withWindow);
25 bool InitWithMajor(int Major, int width, int height, bool withWindow);
27 void updateWindowSize(int width, int height);
28
29 void BeginRender(const std::function<void(int window_width, int window_height)>& func);
30 protected:
31 GLFWwindow* mWin{ nullptr };
32 };
33
34}
35
36#endif /* QUEEN_GLFW_window_h */
void BeginRender(const std::function< void(int window_width, int window_height)> &func)
void updateWindowSize(int width, int height)
bool Init(int width, int height, bool withWindow)
bool InitWithMajor(int Major, int width, int height, bool withWindow)
const char * GetGLVersion()
#define QUEEN_EXTERN