Main Page   Compound List   File List   Compound Members  

tr4_face3_t Struct Reference

Definition for a triangle. More...

#include <tr_types.h>

List of all members.

Public Attributes

bitu16 vertices [3]
 index into the appropriate list of vertices.

bitu16 texture
 object-texture index or colour index

bitu16 lighting
 transparency flag & strength of the hilight (TR4-TR5)

Detailed Description

Definition for a triangle.

Member Data Documentation

bitu16 tr4_face3_t::lighting

transparency flag & strength of the hilight (TR4-TR5)

bit0 if set, then alpha channel = intensity (see attribute in tr2_object_texture).
bit1-7 is the strength of the hilight.

bitu16 tr4_face3_t::texture

object-texture index or colour index

If the triangle is textured, then this is an index into the object-texture list. If it's not textured, then the low 8 bit contain the index into the 256 colour palette and from TR2 on the high 8 bit contain the index into the 16 bit palette.

The documentation for this struct was generated from the following file:
Generated on Sun Sep 8 17:37:29 2002 for vt by doxygen1.2.17