to improve create program, that are RenderPass and Framebuffer
This commit is contained in:
31
inc/hgl/gui/Form.h
Normal file
31
inc/hgl/gui/Form.h
Normal file
@@ -0,0 +1,31 @@
|
||||
#ifndef HGL_GUI_FORM_INCLUDE
|
||||
#define HGL_GUI_FORM_INCLUDE
|
||||
|
||||
#include<hgl/graph/vulkan/VKPipeline.h>
|
||||
namespace hgl
|
||||
{
|
||||
namespace gui
|
||||
{
|
||||
using namespace hgl::graph;
|
||||
|
||||
/**
|
||||
* 窗体组件,窗体是承载所有GUI控件的基本装置
|
||||
*/
|
||||
class Form
|
||||
{
|
||||
protected: //每个窗体独立一个FBO存在,所以每个窗体会有自己的RenderTarget与pipeline
|
||||
|
||||
vulkan::Buffer *ui_matrix;
|
||||
|
||||
struct
|
||||
{
|
||||
vulkan::Pipeline *solid;
|
||||
vulkan::Pipeline *mask;
|
||||
vulkan::Pipeline *alpha;
|
||||
}pipeline;
|
||||
|
||||
public:
|
||||
};//class Form
|
||||
}//namespace gui
|
||||
}//namespace hgl
|
||||
#endif//HGL_GUI_FORM_INCLUDE
|
Reference in New Issue
Block a user