MCPcopy Create free account
hub / github.com/crownengine/crown / reset

Function reset

src/resource/mesh.cpp:71–91  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

69 };
70
71 static void reset(Geometry &g)
72 {
73 array::clear(g._positions);
74 array::clear(g._normals);
75 array::clear(g._tangents);
76 array::clear(g._bitangents);
77 array::clear(g._bones);
78 array::clear(g._weights);
79 array::clear(g._uvs);
80
81 array::clear(g._position_indices);
82 array::clear(g._normal_indices);
83 array::clear(g._tangent_indices);
84 array::clear(g._bitangent_indices);
85 array::clear(g._bone_indices);
86 array::clear(g._weight_indices);
87 array::clear(g._uv_indices);
88
89 array::clear(g._vertex_buffer);
90 array::clear(g._index_buffer);
91 }
92
93 bool has_normals(Geometry &g)
94 {

Callers 7

obbFunction · 0.70
sphereFunction · 0.70
GeometryMethod · 0.70
SamplerStateMethod · 0.70
set_positionMethod · 0.50
frameMethod · 0.50
createMethod · 0.50

Calls 1

clearFunction · 0.50

Tested by

no test coverage detected