codes layout.
This commit is contained in:
parent
e398a85e65
commit
ce727cbb1a
@ -31,9 +31,9 @@ private:
|
||||
Material * material =nullptr;
|
||||
MaterialInstance * material_instance =nullptr;
|
||||
|
||||
Renderable *ro_rectangle =nullptr,
|
||||
*ro_circle =nullptr,
|
||||
*ro_round_rectangle =nullptr;
|
||||
Renderable * ro_rectangle =nullptr;
|
||||
Renderable * ro_circle =nullptr;
|
||||
Renderable * ro_round_rectangle =nullptr;
|
||||
|
||||
GPUBuffer * ubo_world_matrix =nullptr;
|
||||
GPUBuffer * ubo_color_material =nullptr;
|
||||
|
@ -271,8 +271,11 @@ public:
|
||||
void BuildCommandBuffer(uint32_t index) override
|
||||
{
|
||||
render_root.RefreshMatrix();
|
||||
render_list.Clear();
|
||||
render_list.Begin();
|
||||
render_root.ExpendToList(&render_list);
|
||||
render_list.End();
|
||||
|
||||
|
||||
|
||||
VulkanApplicationFramework::BuildCommandBuffer(index,&render_list);
|
||||
}
|
||||
|
@ -57,7 +57,7 @@ namespace hgl
|
||||
public:
|
||||
|
||||
RenderList();
|
||||
~RenderList()=default;
|
||||
virtual ~RenderList()=default;
|
||||
|
||||
void Begin ();
|
||||
void Add (SceneNode *);
|
||||
|
@ -51,7 +51,6 @@ namespace hgl
|
||||
}
|
||||
|
||||
LocalBoundingBox=local;
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user