class Geo GeoV128Texture

This is the documentation for Enlighten.

class Geo GeoV128Texture

class Geo::GeoV128Texture

    └>Geo::GeoRefCount

A really simple texture where all elements are float vectors.

Functions

Name

Description

Name

Description

~GeoRefCount()

Virtual destructor required to make sure that the concrete class destructor gets called.

AddRef()

Increments the reference count and return new value.

ClearToValue(v128)

Clear all pixels in this texture to the given value.

CopyUnscaled(GeoV128Texture *, GeoV128Texture *, GeoRect, GeoRect)

Copy a block from one texture to a different texture.

CopyUnscaledFromBuffer(v128 *, u32, GeoV128Texture *, GeoRect, GeoRect)

Copies from a buffer of V128s with given pitch, rather than a texture.

CopyUnscaledWithDestinationMask(GeoV128Texture *, GeoV128Texture *, GeoRect, GeoRect, GeoV128Texture *)

Copy a block from one texture to a different texture, with a mask specified in the destination texture space.

CopyUnscaledWithSourceMask(GeoV128Texture *, GeoV128Texture *, GeoRect, GeoRect, GeoV128Texture *)

Copy a block from one texture to a different texture, with a mask specified in the source texture space.

Create(s32, s32)

Create gives you back an uninitialised (values undefined!) texture of the appropriate size with a ref count of 1.

DeserialiseFrom(FILE *)

Serialise in and out.

Downsample(GeoV128Texture *)

Dest is half the size of source. Takes the average of the four values.

DrawRect(s32, s32, s32, s32, v128)

For debugging purposes.

Exists(s32, s32)

Return true if [x,y] is contained with the image.

GeoRefCount()

Default constructor. The reference count is initially zero.

GetHeight()

Return the height of this image.

GetPixels()

Return a raw pointer to the start of the pixel array.

GetPixels()

Return a const raw pointer to the start of the pixel array.

GetWidth()

Return the width of this image.

IsValid()

Checks if this texture has valid data.

MaskedIn(s32, s32)

Return true if (x, y) is in bounds for this texture, and the value of the x component is positive.

MultiplyBy(v128)

Multiply all pixels in this texture by the given value.

OutputToPFM(const char *)

Output for debugging purposes.

Release()

Decrements the reference count, deleting the object if it reaches zero.

Sample(s32, s32)

Return the Sample at position [x,y].

SerialiseTo(FILE *)

Serialise in and out.

SetSample(s32, s32, v128)

For debugging purposes.

Variables

Name

Description

Name

Description

s32 m_RefCount

The reference count, once it reaches zero the object deletes itself.



virtual Geo::GeoRefCount::~GeoRefCount


public: virtual ~GeoRefCount()


Virtual destructor required to make sure that the concrete class destructor gets called.