MCPcopy Create free account
hub / github.com/DentonW/DevIL / float_to_ushort

Function float_to_ushort

DevIL/src-IL/src/il_psd.cpp:36–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34 return (ILubyte)(val * 255.0f);
35}
36static ILushort float_to_ushort(float val)
37{
38 return (ILushort)(val * 65535.0f);
39}
40
41
42//! Checks if the file specified in FileName is a valid Psd file.

Callers 1

PsdGetDataFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected