Versions Compared

Key

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

class Geo::TextureWriter

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

Enums

NameDescription
PixelFormat

Pixel format to use when writing data.

Functions

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

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


Anchor
aaee66b7ab52a672f581c4f3099e2140e
aaee66b7ab52a672f581c4f3099e2140e

PixelFormat

...

public: enum PixelFormat
{
    ARGB,
    ABGR
}

...

Pixel format to use when writing data.

enumerators
ARGB
ABGR


Anchor
a8d1e4accdeab59633a1e7debf77e750a
a8d1e4accdeab59633a1e7debf77e750a

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.