MCPcopy Create free account
hub / github.com/WolfireGames/overgrowth / drawLayer

Method drawLayer

Source/Graphics/terrain.cpp:221–226  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

219bool TriangleSquareIntersection2D(vec3 &min, vec3 &max, vec3 *tri_point[3]);
220bool PointInTriangle(vec3 &point, vec3 *tri_point[3]);
221void Terrain::drawLayer(int which) {
222 if (which == 0) {
223 Model &terrain_simplified_model = Models::Instance()->GetModel(model_id);
224 terrain_simplified_model.Draw();
225 }
226}
227
228int Terrain::lineCheck(const vec3 &start, const vec3 &end, vec3 *point, vec3 *normal) {
229 Model &terrain_simplified_model = Models::Instance()->GetModel(model_id);

Callers

nothing calls this directly

Calls 2

GetModelMethod · 0.45
DrawMethod · 0.45

Tested by

no test coverage detected