Renderer_MATL_tag Struct Reference
[Renderer]


Detailed Description

Material structure as used in Renderer.

This structure defines a surface material. The surface material can be quite complex because it allows for external shaders to be loaded and used to render each pixel. (The external shaders should be "thread safe".

Definition at line 302 of file RENDER.H.


Data Fields

axis ax
 The material's base axis.
unsigned char color [3]
unsigned char texco [3]
 basic/diffuse & texture color
unsigned char acolour [3]
unsigned char scolour [3]
 ambient and specular values
unsigned char xc [3]
unsigned char yc [3]
unsigned char zc [3]
unsigned char gloss
 Glossy setting.
unsigned char refl
 Reflectivity setting.
unsigned char transp
 Transparency setting.
long refractive_index
BOOL bInternalShader
 Identifies an Internal shader is in use.
int internalShaderID
 What internal shader is in use.
long shaderID [4]
 Which shader (up to 4 per material).
BOOL bSmooth
BOOL bShiny
BOOL bClear
BOOL bGlassEdge
BOOL bUseSurfaceMapping
 Flags to define material effects in use.
unsigned char params [16]
 Reserved for expansion.
unsigned char other_properties [512]
 Reserved for special versions of the Renderer.
double mmw_params [12]
 Reserved for special purposes in other versions of the renderer.

Field Documentation

The material's base axis.

Definition at line 303 of file RENDER.H.

Referenced by DrawExternalMaterialPolys().

unsigned char color[3]

Definition at line 304 of file RENDER.H.

Referenced by DrawExternalMaterialPolys(), and GetPixelValue().

unsigned char texco[3]

basic/diffuse & texture color

Definition at line 304 of file RENDER.H.

Referenced by GetInternalTexture(), and GetPixelValue().

unsigned char acolour[3]

Definition at line 305 of file RENDER.H.

unsigned char scolour[3]

ambient and specular values

Definition at line 305 of file RENDER.H.

unsigned char xc[3]

Definition at line 306 of file RENDER.H.

unsigned char yc[3]

Definition at line 306 of file RENDER.H.

unsigned char zc[3]

Definition at line 306 of file RENDER.H.

unsigned char gloss

Glossy setting.

Definition at line 307 of file RENDER.H.

Referenced by GetPixelLighting().

unsigned char refl

Reflectivity setting.

Definition at line 308 of file RENDER.H.

Referenced by GetPixelValue().

unsigned char transp

Transparency setting.

Definition at line 309 of file RENDER.H.

Referenced by GetPixelValue(), and GetRowPixelValue().

Definition at line 310 of file RENDER.H.

Referenced by GetPixelValue().

Identifies an Internal shader is in use.

Definition at line 311 of file RENDER.H.

Referenced by GetPixelValue().

What internal shader is in use.

Definition at line 312 of file RENDER.H.

Referenced by GetPixelValue().

long shaderID[4]

Which shader (up to 4 per material).

Definition at line 313 of file RENDER.H.

Referenced by GetPixelValue().

BOOL bSmooth

Definition at line 314 of file RENDER.H.

Referenced by FastAntiAliasShadedScanline(), GetSurfaceValue(), and ShadedScanline().

BOOL bShiny

Definition at line 314 of file RENDER.H.

Referenced by GetPixelLighting().

BOOL bClear

Definition at line 314 of file RENDER.H.

BOOL bGlassEdge

Definition at line 314 of file RENDER.H.

Referenced by GetPixelValue().

Flags to define material effects in use.

Definition at line 314 of file RENDER.H.

unsigned char params[16]

Reserved for expansion.

Definition at line 319 of file RENDER.H.

Referenced by GetInternalTexture(), and GetPixelValue().

unsigned char other_properties[512]

Reserved for special versions of the Renderer.

Definition at line 321 of file RENDER.H.

double mmw_params[12]

Reserved for special purposes in other versions of the renderer.

Definition at line 322 of file RENDER.H.


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

Generated on Sun Apr 27 14:20:19 2014 for OpenFX by  doxygen 1.5.6