This is the documentation for Enlighten.

class Geo GeoFp16Texture

class Geo::GeoFp16Texture

    └>Geo::IGeoSerialisable
        └>Geo::IGeoReleasable

A (16 bit) floating point texture for input and output.

Classes

Name Description
Geo::GeoFp16Texture::Pixel

A single pixel in a GeoFp16Texture.

Functions

Name Description
CopyRgbaWToRGB(const Pixel &)

Conversion function for std::transform and the like.

Create()

Create a new GeoFp16Texture.

ExtractFloatPixelData(float *)

Copies the data of this texture into the given buffer.

ExtractMonoFloatPixelData(float *, Geo::s32)

Copies the data from the given buffer into this texture.

GetData()

Gets the raw data of this texture.

GetData()

Gets the raw data of this texture.

GetHeight()

Gets the width/height of this texture.

GetWidth()

Gets the width/height of this texture.

Load(Geo::IGeoInputStream &, Geo::u32)

Geo::IGeoSerialisable implementation.

Load(IGeoInputStream &, Geo::u32)

Load an instance of this class from an IGeoInputStream.

Release()

Geo::IGeoSerialisable implementation.

Release()

Free this object that was created within the Enlighten libraries.

Save(Geo::IGeoStream &, Geo::u32)

Geo::IGeoSerialisable implementation.

Save(IGeoStream &, Geo::u32)

Save an instance of this class to an IGeoStream.

SetMonoPixelData(const float *)

Copies the data from the given buffer into this texture.

SetResolution(Geo::s32, Geo::s32)

Sets the resolution.

SetRgbaPixelData(const Geo::u32 *)

Copies the data from the given buffer into this texture.

SetRgbaPixelData(const float *)

Copies the data from the given buffer into this texture.

SetRgbaPixelDataFromRgbm(const Geo::GeoRGBXTextureElement *, float)

Copies the data from the given buffer into this texture.


static Pixel Geo::GeoFp16Texture::CopyRgbaWToRGB


public: Pixel CopyRgbaWToRGB
(
    const Pixel & rgba
)


Conversion function for std::transform and the like.


static GeoFp16Texture* Geo::GeoFp16Texture::Create


public: GeoFp16Texture * Create()


Create a new GeoFp16Texture.


bool Geo::GeoFp16Texture::ExtractFloatPixelData


public: bool ExtractFloatPixelData
(
    float * pDataOut
) const


Copies the data of this texture into the given buffer.


bool Geo::GeoFp16Texture::ExtractMonoFloatPixelData


public: bool ExtractMonoFloatPixelData
(
    float * pDataOut,
    Geo::s32 channelIdx
) const


Copies the data from the given buffer into this texture.


Pixel* Geo::GeoFp16Texture::GetData


public: Pixel * GetData()


Gets the raw data of this texture.


const Pixel* Geo::GeoFp16Texture::GetData


public: const Pixel * GetData() const


Gets the raw data of this texture.


Geo::s32 Geo::GeoFp16Texture::GetHeight


public: Geo::s32 GetHeight() const


Gets the width/height of this texture.


Geo::s32 Geo::GeoFp16Texture::GetWidth


public: Geo::s32 GetWidth() const


Gets the width/height of this texture.


virtual bool Geo::GeoFp16Texture::Load


public: virtual bool Load
(
    Geo::IGeoInputStream & stream,
    Geo::u32 section
)


Geo::IGeoSerialisable implementation.


virtual bool Geo::IGeoSerialisable::Load


public: bool Load
(
    IGeoInputStream & stream,
    Geo::u32 section
)


Load an instance of this class from an IGeoInputStream.

The stream must be ready to read from. You can load sections of an object by passing a bitmask representing the desired sections rather than Iff::AllSectionsMask, which will load all sections. It is also safe to call this method on an object multiple times with different section arguments to load multiple parts.


virtual void Geo::GeoFp16Texture::Release


public: virtual void Release()


Geo::IGeoSerialisable implementation.


virtual void Geo::IGeoReleasable::Release


public: void Release()


Free this object that was created within the Enlighten libraries.

Expect this to behave in a similar way to calling 'delete(this)'


virtual bool Geo::GeoFp16Texture::Save


public: virtual bool Save
(
    Geo::IGeoStream & stream,
    Geo::u32 section
) const


Geo::IGeoSerialisable implementation.


virtual bool Geo::IGeoSerialisable::Save


public: bool Save
(
    IGeoStream & stream,
    Geo::u32 section
) const


Save an instance of this class to an IGeoStream.

The stream must be ready to write to. You can save sections of an object by passing a bitmask representing the desired sections rather than Iff::AllSectionsMask, which will save all sections that are available.


bool Geo::GeoFp16Texture::SetMonoPixelData


public: bool SetMonoPixelData
(
    const float * pData
)


Copies the data from the given buffer into this texture.


bool Geo::GeoFp16Texture::SetResolution


public: bool SetResolution
(
    Geo::s32 x,
    Geo::s32 y
)


Sets the resolution.


bool Geo::GeoFp16Texture::SetRgbaPixelData


public: bool SetRgbaPixelData
(
    const Geo::u32 * pData
)


Copies the data from the given buffer into this texture.


bool Geo::GeoFp16Texture::SetRgbaPixelData


public: bool SetRgbaPixelData
(
    const float * pData
)


Copies the data from the given buffer into this texture.


bool Geo::GeoFp16Texture::SetRgbaPixelDataFromRgbm


public: bool SetRgbaPixelDataFromRgbm
(
    const Geo::GeoRGBXTextureElement * pData,
    float maxM
)


Copies the data from the given buffer into this texture.