ezEngine  Milestone 7
ezFloat16 Class Reference

A 16 bit IEEE float class. Often called "half". More...

#include <Float16.h>

Public Member Functions

 EZ_DECLARE_POD_TYPE ()
 
 ezFloat16 (float f=0.0f)
 Create float16 from float.
 
void operator= (float f)
 Create float16 from float.
 
void SetRawData (ezUInt16 data)
 Create float16 from raw data.
 
ezUInt16 GetRawData () const
 Returns the raw 16 Bit data.
 
 operator float () const
 Convert float16 to float.
 
bool operator== (const ezFloat16 &c2)
 Returns true, if both values are identical.
 
bool operator!= (const ezFloat16 &c2)
 Returns true, if both values are not identical.
 

Private Attributes

ezUInt16 m_uiData
 Raw 16 float data.
 

Detailed Description

A 16 bit IEEE float class. Often called "half".

This class only contains functions to convert between float and float16. It does not support any mathematical operations. It is only intended for conversion, always to all mathematical operations on regular floats (or let the GPU do them on halfs).


The documentation for this class was generated from the following files: