Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

class Geo::GeoRGBXTexture

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

A simple CPU 8 bit per channel texture.

Functions

NameDescription
Create()

Creates a new GeoRGBXTexture.

GetHeight()

Gets the height of this texture.

GetMaxM()

If this texture is RGBM encoded, gets the maximum M value.

GetTextureData()

Gets the raw texture data.

GetTextureData()

Gets the raw texture data.

GetWidth()

Gets the width of this texture.

IsRGBMEncoded()

Queries if this texture is RGBM encoded.

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

Load an instance of this class from an IGeoInputStream.

Load(IGeoInputStream &, Geo::u32)

Load an instance of this class from an IGeoInputStream.

Release()

Destroys this GeoRGBXTexture.

Release()

Free this object that was created within the Enlighten libraries.

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

Save an instance of this class to an IGeoStream.

Save(IGeoStream &, Geo::u32)

Save an instance of this class to an IGeoStream.

SetTextureData(Geo::s32, Geo::s32, const GeoRGBXTextureElement *, bool, float)

Copies data from the given buffer into this texture.

Write(Writer &, Geo::u32)

Write to any type compatible with IffWriter.


Anchor
a06846ef6c5db425af5444825323be471
a06846ef6c5db425af5444825323be471

static GeoRGBXTexture* Geo::GeoRGBXTexture::Create

...

public: GeoRGBXTexture * Create()

...

Creates a new GeoRGBXTexture.


Anchor
ac141eaf814c31668e307d403f6ddac09
ac141eaf814c31668e307d403f6ddac09

Geo::s32 Geo::GeoRGBXTexture::GetHeight

...

public: Geo::s32 GetHeight() const

...

Gets the height of this texture.


Anchor
a95f3d6eece8c03eae3f3c769bf6aecd7
a95f3d6eece8c03eae3f3c769bf6aecd7

float Geo::GeoRGBXTexture::GetMaxM

...

public: float GetMaxM() const

...

If this texture is RGBM encoded, gets the maximum M value.


Anchor
a53931dc45fe2b97ca6a4a2d4e01917fa
a53931dc45fe2b97ca6a4a2d4e01917fa

const GeoRGBXTextureElement* Geo::GeoRGBXTexture::GetTextureData

...

public: const GeoRGBXTextureElement * GetTextureData() const

...

Gets the raw texture data.


Anchor
a8009aedfc08df3278d5f55750603a3ea
a8009aedfc08df3278d5f55750603a3ea

GeoRGBXTextureElement* Geo::GeoRGBXTexture::GetTextureData

...

public: GeoRGBXTextureElement * GetTextureData()

...

Gets the raw texture data.


Anchor
ab7b64c01bc6c335598ef8622f99a53c6
ab7b64c01bc6c335598ef8622f99a53c6

Geo::s32 Geo::GeoRGBXTexture::GetWidth

...

public: Geo::s32 GetWidth() const

...

Gets the width of this texture.


Anchor
a6ba2dd86d48b879d14f9b5e2594f3d6e
a6ba2dd86d48b879d14f9b5e2594f3d6e

bool Geo::GeoRGBXTexture::IsRGBMEncoded

...

public: bool IsRGBMEncoded() const

...

Queries if this texture is RGBM encoded.


Anchor
a97e5f218f67244bc7702a7ae312031ff
a97e5f218f67244bc7702a7ae312031ff

virtual bool Geo::GeoRGBXTexture::Load

...

public: virtual bool Load
(
    Geo::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.


Anchor
ae5fb810c8f4470cb3c9fcb16c6f7f7fe
ae5fb810c8f4470cb3c9fcb16c6f7f7fe

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.


Anchor
a9f32b17fbe411389678252327e8a618d
a9f32b17fbe411389678252327e8a618d

virtual void Geo::GeoRGBXTexture::Release

...

public: virtual void Release()

...

Destroys this GeoRGBXTexture.


Anchor
af6bdf30b42adde386c428e9dc2821eb9
af6bdf30b42adde386c428e9dc2821eb9

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)'


Anchor
a3600a67599b33de99ca93c5a0a6fa1ac
a3600a67599b33de99ca93c5a0a6fa1ac

virtual bool Geo::GeoRGBXTexture::Save

...

public: virtual bool Save
(
    Geo::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.


Anchor
a5b03439626a3dac9b9c27feb1a3978d3
a5b03439626a3dac9b9c27feb1a3978d3

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.


Anchor
a80fd8416d41499011147c0872e12d0ec
a80fd8416d41499011147c0872e12d0ec

void Geo::GeoRGBXTexture::SetTextureData

...

public: void SetTextureData
(
    Geo::s32 width,
    Geo::s32 height,
    const GeoRGBXTextureElement * data,
    bool RGBM,
    float maxM
)

...

Copies data from the given buffer into this texture.


Anchor
a776ae4d37c796a732e1ed151702541f1
a776ae4d37c796a732e1ed151702541f1

bool Geo::GeoRGBXTexture::Write

...

public: bool Write
(
    Writer & writer,
    Geo::u32 section
) const

...

Write to any type compatible with IffWriter.