This is the documentation for Enlighten.

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

class Geo::TextureWriter

Class that writes a 2D block of memory to disk as a texture file.

Enums

Name Description
PixelFormat

Pixel format to use when writing data.

Functions

Name Description
WriteTga(IGeoStream &, s32, s32, const u32 *, PixelFormat, s32, bool)

Writes out as a 32 bit Tga file. Data is interpreted as PixelFormat.


PixelFormat


public: enum PixelFormat
{
    ARGB,
    ABGR
}


Pixel format to use when writing data.

enumerators
ARGB
ABGR


static bool Geo::TextureWriter::WriteTga


public: bool WriteTga
(
    IGeoStream & stream,
    s32 width,
    s32 height,
    const u32 * data,
    PixelFormat format,
    s32 pitch,
    bool flipVertical
)


Writes out as a 32 bit Tga file. Data is interpreted as PixelFormat.

  • No labels