MCPcopy Create free account
hub / github.com/TombEngine/TombEngine / ByteComponentToFloat

Function ByteComponentToFloat

TombEngine/Specific/RGBAColor8Byte.cpp:11–16  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9}
10
11static float ByteComponentToFloat(byte b)
12{
13 // TODO: Look into what these actually do and test them to see if they are actually not undefined.
14 float value = (b / 255.0f) * 2;
15 return value;
16}
17
18RGBAColor8Byte::RGBAColor8Byte(D3DCOLOR color)
19{

Callers 1

RGBAColor8Byte.cppFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected