Pyrogenesis  13997
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Classes | Enumerations | Functions
tex_tga.cpp File Reference
#include "precompiled.h"
#include "lib/byte_order.h"
#include "tex_codec.h"
#include "lib/bits.h"

Go to the source code of this file.

Classes

struct  TgaHeader
 

Enumerations

enum  TgaImgType { TGA_TRUE_COLOUR = 2, TGA_GREY = 3 }
 
enum  TgaImgDesc { TGA_RIGHT_TO_LEFT = BIT(4), TGA_TOP_DOWN = BIT(5) }
 

Functions

static Status tga_transform (Tex *t, size_t transforms)
 
static bool tga_is_hdr (const u8 *file)
 
static bool tga_is_ext (const OsPath &extension)
 
static size_t tga_hdr_size (const u8 *file)
 
static Status tga_decode (rpU8 data, size_t size, Tex *RESTRICT t)
 
static Status tga_encode (Tex *RESTRICT t, DynArray *RESTRICT da)
 
 TEX_CODEC_REGISTER (tga)
 

Enumeration Type Documentation

enum TgaImgDesc
Enumerator
TGA_RIGHT_TO_LEFT 
TGA_TOP_DOWN 

Definition at line 41 of file tex_tga.cpp.

enum TgaImgType
Enumerator
TGA_TRUE_COLOUR 
TGA_GREY 

Definition at line 35 of file tex_tga.cpp.

Function Documentation

TEX_CODEC_REGISTER ( tga  )
static Status tga_decode ( rpU8  data,
size_t  size,
Tex *RESTRICT  t 
)
static

Definition at line 115 of file tex_tga.cpp.

static Status tga_encode ( Tex *RESTRICT  t,
DynArray *RESTRICT  da 
)
static

Definition at line 147 of file tex_tga.cpp.

static size_t tga_hdr_size ( const u8 file)
static

Definition at line 102 of file tex_tga.cpp.

static bool tga_is_ext ( const OsPath extension)
static

Definition at line 96 of file tex_tga.cpp.

static bool tga_is_hdr ( const u8 file)
static

Definition at line 76 of file tex_tga.cpp.

static Status tga_transform ( Tex t,
size_t  transforms 
)
static

Definition at line 70 of file tex_tga.cpp.