This is the documentation for Enlighten.
class Geo TextureWriter
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, 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,
  bool compress
)
Writes out as a 32 bit Tga file. Data is interpreted as PixelFormat.