first tested ok that AutoMaterial in first_triangle example.

This commit is contained in:
2023-03-21 14:17:33 +08:00
parent 251bbd2705
commit 694add27ae
4 changed files with 102 additions and 21 deletions

View File

@@ -33,6 +33,12 @@ using namespace hgl;
using namespace hgl::io;
using namespace hgl::graph;
namespace glsl_compiler
{
bool Init();
void Close();
}//namespace glsl_compiler
class VulkanApplicationFramework:WindowEvent
{
protected:
@@ -66,6 +72,8 @@ public:
virtual ~VulkanApplicationFramework()
{
glsl_compiler::Close();
win->Unjoin(this);
SAFE_CLEAR(db);
@@ -78,6 +86,9 @@ public:
virtual bool Init(int w,int h)
{
if(!glsl_compiler::Init())
return(false);
clear_color.Set(0,0,0,1);
#ifdef _DEBUG