add ThemeEngine and DefaultThemeEngine

This commit is contained in:
2020-10-29 22:15:59 +08:00
parent e17c910b50
commit e5dd5720e6
6 changed files with 57 additions and 37 deletions

View File

@@ -15,11 +15,13 @@ namespace hgl
protected:
Form *form;
RenderTarget *render_target;
RenderCommand *cmd_buf;
public:
ThemeForm(Form *,RenderTarget *);
ThemeForm(Form *,RenderTarget *,RenderCommand *);
virtual ~ThemeForm();
RenderTarget * GetRenderTarget(){return render_target;}
@@ -27,7 +29,8 @@ namespace hgl
void Resize(uint w,uint h);
bool BeginRender();
bool EndRender();
};//class ThemeForm
}//namespace gui
}//namespace hgl