MCPcopy Create free account
hub / github.com/RobLoach/raylib-cpp / RaylibAssertMeshValid

Function RaylibAssertMeshValid

tests/raylib-assert.h:115–118  ·  view source on GitHub ↗

Internal helper: true when a mesh contains basic CPU-side geometry data.

Source from the content-addressed store, hash-verified

113
114// Internal helper: true when a mesh contains basic CPU-side geometry data.
115static inline bool RaylibAssertMeshValid(Mesh mesh)
116{
117 return mesh.vertexCount > 0 && mesh.triangleCount > 0 && mesh.vertices != NULL;
118}
119
120#define RAYLIB_ASSERT_FLOAT_EQ(a, b) RaylibAssertFloatEq((float)(a), (float)(b))
121#define RAYLIB_ASSERT_CHANNEL_WITHIN(a, b, tolerance) RaylibAssertChannelWithin((int)(a), (int)(b), (int)(tolerance))

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected