Tilt Five NDK
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Modules Pages
T5_TextureInfo Struct Reference
Collaboration diagram for T5_TextureInfo:

Data Fields

struct {
   void *   texture
 Texture handle. More...
 
   T5_Extent   dimensions
 The dimensions of the texture. More...
 
   uint16_t   arraySize
 The array size of array based textures. More...
 
texture
 
struct {
   T5_Rect   rect
 A rectangle defining which part of the texture is used. More...
 
   uint16_t   arrayIndex
 For array textures, the index of the array to use. More...
 
subImage
 
int64_t format
 The graphics API specific format used to create this texture. More...
 
T5_Rectf vci
 The image rectangle in the normalized (z=1) image space of the virtual cameras. More...
 

Detailed Description

Definition at line 424 of file types.h.

Field Documentation

◆ arrayIndex

uint16_t T5_TextureInfo::arrayIndex

For array textures, the index of the array to use.

Ignored for non-array textures

Definition at line 452 of file types.h.

◆ arraySize

uint16_t T5_TextureInfo::arraySize

The array size of array based textures.

Definition at line 440 of file types.h.

◆ dimensions

T5_Extent T5_TextureInfo::dimensions

The dimensions of the texture.

This may not be the same as the actual displayed image as the subImage struct defines which part of the image is used.

Definition at line 437 of file types.h.

◆ format

int64_t T5_TextureInfo::format

The graphics API specific format used to create this texture.

E.g. VK_FORMAT_R8G8B8A8_SRGB, GL_SRGB8_ALPHA8, DXGI_FORMAT_R8G8B8A8_UNORM_SRGB This is always a concrete format (IE Not DXGI_FORMAT_R8G8B8A8_TYPELESS)

Definition at line 459 of file types.h.

◆ rect

T5_Rect T5_TextureInfo::rect

A rectangle defining which part of the texture is used.

This must be specified even if the full image is used.

Definition at line 447 of file types.h.

◆ texture

void* T5_TextureInfo::texture

Texture handle.

The meaning of the handle will depend on the current graphics API.

See also
aboutGraphicsApi for further details.

Definition at line 431 of file types.h.

◆ vci

T5_Rectf T5_TextureInfo::vci

The image rectangle in the normalized (z=1) image space of the virtual cameras.

Definition at line 462 of file types.h.


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