MCPcopy Create free account
hub / github.com/davideberly/GeometricTools / MeshFactory

Method MeshFactory

GTE/Graphics/MeshFactory.cpp:12–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10using namespace gte;
11
12MeshFactory::MeshFactory()
13 :
14 mVFormat{},
15 mIndexSize(sizeof(uint32_t)),
16 mVBUsage(Resource::Usage::IMMUTABLE),
17 mIBUsage(Resource::Usage::IMMUTABLE),
18 mOutside(true),
19 mAssignTCoords{},
20 mPositions(nullptr),
21 mNormals(nullptr),
22 mTangents(nullptr),
23 mBitangents(nullptr),
24 mTCoords{}
25{
26 mVFormat.Bind(VASemantic::POSITION, DF_R32G32B32_FLOAT, 0);
27 for (int32_t i = 0; i < VAConstant::MAX_TCOORD_UNITS; ++i)
28 {
29 mAssignTCoords[i] = false;
30 mTCoords[i] = nullptr;
31 }
32}
33
34MeshFactory::MeshFactory(VertexFormat const& vbFormat)
35 :

Callers

nothing calls this directly

Calls 1

BindMethod · 0.45

Tested by

no test coverage detected