moved to inline_geometry namespace they are CreateRenderable....functions.

This commit is contained in:
2022-06-24 21:36:24 +08:00
parent e381c3efeb
commit f70be8e42c
14 changed files with 1229 additions and 1207 deletions

View File

@@ -36,7 +36,7 @@ private:
GPUBuffer * ubo_color =nullptr;
GPUBuffer * ubo_sun =nullptr;
Primitive * renderable_object =nullptr;
Primitive * primitive =nullptr;
Pipeline * pipeline =nullptr;
@@ -67,7 +67,7 @@ private:
void CreateRenderObject()
{
renderable_object=CreateRenderableSphere(db,material_instance->GetVAB(),40);
primitive=inline_geometry::CreateSphere(db,material_instance->GetVAB(),40);
}
bool InitUBO()
@@ -112,7 +112,7 @@ private:
uint count;
float size;
Renderable *ri=db->CreateRenderable(renderable_object,material_instance,pipeline);
Renderable *ri=db->CreateRenderable(primitive,material_instance,pipeline);
for(uint i=0;i<360;i++)
{