UFO: Alien Invasion
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
image_s Struct Reference

#include <r_image.h>

Data Fields

char name [MAX_QPATH]
 
imagetype_t type
 
int width
 
int height
 
int upload_width
 
int upload_height
 
GLuint texnum
 
bool has_alpha
 
material_t material
 
struct image_snormalmap
 
struct image_sglowmap
 
struct image_sspecularmap
 
struct image_sroughnessmap
 
struct image_shash_next
 

Detailed Description

Definition at line 61 of file r_image.h.

Field Documentation

struct image_s* image_s::glowmap
bool image_s::has_alpha

Definition at line 67 of file r_image.h.

Referenced by R_GetEntityLists(), R_LoadImageData(), and R_UploadTexture().

struct image_s* image_s::hash_next

hash map next pointer in case of collision

Definition at line 73 of file r_image.h.

Referenced by R_DeleteImage(), and R_GetImage().

struct image_s* image_s::normalmap
struct image_s* image_s::roughnessmap

roughness texture (for Cook-Torrance shading)

Definition at line 72 of file r_image.h.

Referenced by R_DrawAliasModel(), R_FindImage(), R_FreeImage(), and R_ReloadImages().

struct image_s* image_s::specularmap

specularity texture (for reflection color)

Definition at line 71 of file r_image.h.

Referenced by R_DrawAliasModel(), R_FindImage(), R_FreeImage(), R_ReloadImages(), R_SetSurfaceState(), and R_StageLighting().

int image_s::upload_height

dimensions after power of two and picmip

Definition at line 65 of file r_image.h.

Referenced by R_ImageList_f(), R_UploadData(), and R_UploadTexture().

int image_s::upload_width

Definition at line 65 of file r_image.h.

Referenced by R_ImageList_f(), R_UploadData(), and R_UploadTexture().


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