Pyrogenesis  13997
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Attributes | List of all members
Tex Struct Reference

stores all data describing an image. More...

#include <tex.h>

Inheritance diagram for Tex:
ScopedTex

Public Attributes

shared_ptr< u8data
 file buffer or image data. More...
 
size_t dataSize
 
size_t ofs
 offset to image data in file. More...
 
size_t w
 
size_t h
 
size_t bpp
 
size_t flags
 see TexFlags and "Format Conversion" in docs. More...
 

Detailed Description

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).

Definition at line 210 of file tex.h.

Member Data Documentation

size_t Tex::bpp

Definition at line 231 of file tex.h.

shared_ptr<u8> Tex::data

file buffer or image data.

note: during the course of transforms (which may occur when being loaded), this may be replaced with a new buffer (e.g. if decompressing file contents).

Definition at line 217 of file tex.h.

size_t Tex::dataSize

Definition at line 219 of file tex.h.

size_t Tex::flags

see TexFlags and "Format Conversion" in docs.

Definition at line 234 of file tex.h.

size_t Tex::h

Definition at line 230 of file tex.h.

size_t Tex::ofs

offset to image data in file.

this is required since tex_get_data needs to return the pixels, but data returns the actual file buffer. zero-copy load and write-back to file is also made possible.

Definition at line 227 of file tex.h.

size_t Tex::w

Definition at line 229 of file tex.h.


The documentation for this struct was generated from the following file: