Overview   Project   Class   Tree   Deprecated   Index 
0 A.D.
FRAMES    NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD

lib.res.graphics
Struct Tex

   in tex.h

struct Tex

stores all data describing an image. we try to minimize size, since this is stored in OglTex resources (which are big and pushing the h_mgr limit).


Field Summary
 uint bpp : 16
          see TexFlags and "Format Conversion" in docs.
 uint flags : 16
          
 uint h : 16
          
 Handle hm
          H_Mem handle to image data.
 size_t ofs
          offset to image data in file.
 uint w : 16
          
 

Field Detail

bpp

public uint bpp : 16;
see TexFlags and "Format Conversion" in docs.

flags

public uint flags : 16;

h

public uint h : 16;

hm

public Handle hm;
H_Mem handle to image data. note: during the course of transforms (which may occur when being loaded), this may be replaced with a Handle to a new buffer (e.g. if decompressing file contents).

ofs

public size_t ofs;
offset to image data in file. this is required since tex_get_data needs to return the pixels, but mem_get_ptr(hm) returns the actual file buffer. zero-copy load and write-back to file is also made possible.

w

public uint w : 16;

 Overview   Project   Class   Tree   Deprecated   Index 
0 A.D.
Generated on September 04, 2007 at 18:14
CppDoc v2.4.0
FRAMES    NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD