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

@@ -147,12 +147,14 @@ private:
void CreateRenderObject()
{
using namespace inline_geometry;
{
struct AxisCreateInfo aci;
aci.size=200;
ro_axis=CreateRenderableAxis(db,axis_mi->GetVAB(),&aci);
ro_axis=CreateAxis(db,axis_mi->GetVAB(),&aci);
}
const VAB *vab=material_instance->GetVAB();
@@ -164,11 +166,11 @@ private:
cci.tex_coord=true;
cci.color_type=CubeCreateInfo::ColorType::SameColor;
cci.color[0]=Vector4f(1,1,1,1);
ro_cube=CreateRenderableCube(db,vab,&cci);
ro_cube=CreateCube(db,vab,&cci);
}
{
ro_sphere=CreateRenderableSphere(db,vab,64);
ro_sphere=CreateSphere(db,vab,64);
}
{
@@ -183,7 +185,7 @@ private:
tci.uv_scale.x=4;
tci.uv_scale.y=1;
ro_torus=CreateRenderableTorus(db,vab,&tci);
ro_torus=CreateTorus(db,vab,&tci);
}
{
@@ -193,7 +195,7 @@ private:
cci.radius=10;
cci.numberSlices=32;
ro_cylinder=CreateRenderableCylinder(db,vab,&cci);
ro_cylinder=CreateCylinder(db,vab,&cci);
}
{
@@ -204,7 +206,7 @@ private:
cci.numberSlices=128;
cci.numberStacks=32;
ro_cone=CreateRenderableCone(db,vab,&cci);
ro_cone=CreateCone(db,vab,&cci);
}
}