初步定义渲染窗口的初始化

This commit is contained in:
2018-11-27 20:55:31 +08:00
parent 696b1f9e7d
commit f18ca4981c
2 changed files with 79 additions and 4 deletions

View File

@@ -65,6 +65,8 @@ namespace hgl
uint depth; ///<Depth缓冲区位深度,默认24
uint stencil; ///<Stencil缓冲区位深度,默认8,不使用请写0
bool no_use_stencil; ///<不使用stencil缓冲区
struct
{
uint red; ///<Accum缓冲区红色位深度,默认0
@@ -90,6 +92,17 @@ namespace hgl
}texture;
};
struct OpenGLRenderSetup:public RenderSetup
{
bool debug=true;
bool es=false;
bool egl=false;
uint major=3;
uint minor=3;
};
class RenderWindow;
/**