MCPcopy Create free account
hub / github.com/NazaraEngine/NazaraEngine / CpDebugColorToColor

Function CpDebugColorToColor

src/Nazara/Physics2D/PhysWorld2D.cpp:14–17  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12 namespace
13 {
14 Color CpDebugColorToColor(cpSpaceDebugColor c)
15 {
16 return Color{ static_cast<Nz::UInt8>(c.r * 255.f), static_cast<Nz::UInt8>(c.g * 255.f), static_cast<Nz::UInt8>(c.b * 255.f), static_cast<Nz::UInt8>(c.a * 255.f) };
17 }
18
19 cpSpaceDebugColor ColorToCpDebugColor(Color c)
20 {

Callers 5

DrawCircleFunction · 0.85
DrawDotFunction · 0.85
DrawPolygonFunction · 0.85
DrawSegmentFunction · 0.85
DrawThickSegmentFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected