diff --git a/example/Vulkan/first_triangle.cpp b/example/Vulkan/first_triangle.cpp index 18f4f9d7..04ef5541 100644 --- a/example/Vulkan/first_triangle.cpp +++ b/example/Vulkan/first_triangle.cpp @@ -4,6 +4,7 @@ #include"VulkanAppFramework.h" #include #include +#include using namespace hgl; using namespace hgl::graph; @@ -55,6 +56,8 @@ private: bool InitUBO() { + MVPMatrix *mvp=new MVPMatrix; + const VkExtent2D extent=sc_render_target->GetExtent(); cam.width=extent.width; diff --git a/inc/hgl/graph/RenderList.h b/inc/hgl/graph/RenderList.h index bc34fa64..6cb259a6 100644 --- a/inc/hgl/graph/RenderList.h +++ b/inc/hgl/graph/RenderList.h @@ -5,7 +5,7 @@ #include #include #include -#include +#include #include #include namespace hgl diff --git a/inc/hgl/graph/MVPMatrix.h b/inc/hgl/graph/SceneInfo.h similarity index 87% rename from inc/hgl/graph/MVPMatrix.h rename to inc/hgl/graph/SceneInfo.h index b1024e16..982ed563 100644 --- a/inc/hgl/graph/MVPMatrix.h +++ b/inc/hgl/graph/SceneInfo.h @@ -1,5 +1,5 @@ -#ifndef HGL_GRAPH_MVP_MATRIX_INCLUDE -#define HGL_GRAPH_MVP_MATRIX_INCLUDE +#ifndef HGL_GRAPH_SCENE_INFO_INCLUDE +#define HGL_GRAPH_SCENE_INFO_INCLUDE #include #include @@ -33,4 +33,4 @@ namespace hgl };//struct MVPMatrix }//namespace graph }//namespace hgl -#endif//HGL_GRAPH_MVP_MATRIX_INCLUDE +#endif//HGL_GRAPH_SCENE_INFO_INCLUDE