/
class Enlighten RgbmCpuTextureSampler

This is the documentation for Enlighten.

class Enlighten RgbmCpuTextureSampler

class Enlighten::RgbmCpuTextureSampler

    └>Enlighten::CpuTextureSamplerBase< 4 >

RGBM texture sampler.

Functions

Name Description
CpuTextureSamplerBase(const void *, Geo::s32, Geo::s32, Geo::s32)

Constructor.

GetHeight()

Gets the height of the texture.

GetIndex(Geo::s32, Geo::s32)

Gets the index into the raw pixel data of the given co-ordinates.

GetPixelData(Geo::s32, Geo::s32)

Gets the pixel value at the given co-ordinates.

GetWidth()

Gets the width of the texture.

RgbmCpuTextureSampler(const void *, Geo::s32, Geo::s32, Geo::s32, eOutputFormatByteOrder, float)

Constructor.

Variables

Name Description
Geo::s32 m_Height

Height of the texture.

Geo::s32 m_Pitch

Pitch (in bytes) of the texture.

const Geo::u8 * m_Pixels

Raw pixel data.

Geo::s32 m_Width

Width of the texture.

const int PixelByteSize = SizeOfPixel

Number of bytes per pixel.


Enlighten::CpuTextureSamplerBase< SizeOfPixel >::CpuTextureSamplerBase


protected: CpuTextureSamplerBase
(
    const void * data,
    Geo::s32 width,
    Geo::s32 height,
    Geo::s32 pitch
)


Constructor.


GEO_FORCE_INLINE Geo::s32 Enlighten::CpuTextureSamplerBase< SizeOfPixel >::GetHeight


public: GEO_FORCE_INLINEGeo::s32 GetHeight() const


Gets the height of the texture.


GEO_FORCE_INLINE Geo::s32 Enlighten::CpuTextureSamplerBase< SizeOfPixel >::GetIndex


public: GEO_FORCE_INLINEGeo::s32 GetIndex
(
    Geo::s32 x,
    Geo::s32 y
) const


Gets the index into the raw pixel data of the given co-ordinates.


GEO_CONTROLLED_INLINE Geo::v128 Enlighten::RgbmCpuTextureSampler::GetPixelData


public: GEO_CONTROLLED_INLINEGeo::v128 GetPixelData
(
    Geo::s32 x,
    Geo::s32 y
) const


Gets the pixel value at the given co-ordinates.


GEO_FORCE_INLINE Geo::s32 Enlighten::CpuTextureSamplerBase< SizeOfPixel >::GetWidth


public: GEO_FORCE_INLINEGeo::s32 GetWidth() const


Gets the width of the texture.


Enlighten::RgbmCpuTextureSampler::RgbmCpuTextureSampler


public: RgbmCpuTextureSampler
(
    const void * data,
    Geo::s32 width,
    Geo::s32 height,
    Geo::s32 pitch,
    eOutputFormatByteOrder byteOrder,
    float fpRescale
)


Constructor.

Related content

class Enlighten RgbmCpuTextureSampler
class Enlighten RgbmCpuTextureSampler
More like this
class Enlighten RgbmCpuTextureSampler
class Enlighten RgbmCpuTextureSampler
More like this
class Enlighten RgbaCpuTextureSampler
class Enlighten RgbaCpuTextureSampler
More like this
class Enlighten R9G9B9E5CpuTextureSampler
class Enlighten R9G9B9E5CpuTextureSampler
More like this
class Enlighten R9G9B9E5CpuTextureSampler
class Enlighten R9G9B9E5CpuTextureSampler
More like this
class Enlighten R11G11B10CpuTextureSampler
class Enlighten R11G11B10CpuTextureSampler
More like this