Versions Compared

Key

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

class Enlighten::RgbaCpuTextureSampler

    └>Enlighten::CpuTextureSamplerBase< 4 >

RGBA texture sampler.

Functions

NameDescription
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.

RgbaCpuTextureSampler(const void *, Geo::s32, Geo::s32, Geo::s32, eOutputFormatByteOrder)

Constructor.

Variables

NameDescription
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.


Anchor
ac5b0da9a1c27f06f8d8771e27820a1d6
ac5b0da9a1c27f06f8d8771e27820a1d6

Enlighten::CpuTextureSamplerBase< SizeOfPixel >::CpuTextureSamplerBase

...

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

...

Constructor.


Anchor
a881478fe346783eb5b83b02fb78d3fc5
a881478fe346783eb5b83b02fb78d3fc5

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

...

public: GEO_FORCE_INLINEGeo::s32 GetHeight() const

...

Gets the height of the texture.


Anchor
a985f25c893e63d1ab9efd08876b3cdc1
a985f25c893e63d1ab9efd08876b3cdc1

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.


Anchor
aef90472671ed51c1eb6d2e33f441bdea
aef90472671ed51c1eb6d2e33f441bdea

GEO_CONTROLLED_INLINE Geo::v128 Enlighten::RgbaCpuTextureSampler::GetPixelData

...

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

...

Gets the pixel value at the given co-ordinates.


Anchor
a878e1d8115ae43e5ee88abf2f0983460
a878e1d8115ae43e5ee88abf2f0983460

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

...

public: GEO_FORCE_INLINEGeo::s32 GetWidth() const

...

Gets the width of the texture.


Anchor
a18b86c44ec2c71d8caf9ab80eaf443fb
a18b86c44ec2c71d8caf9ab80eaf443fb

Enlighten::RgbaCpuTextureSampler::RgbaCpuTextureSampler

...

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

...

Constructor.