Detailed Description

Used to store shading information about a particular element.

Public Member Functions

bool GetFlag (int flag)
 Is the given flag set? More...
 
void SetFlag (int flag, bool value)
 Set the given flag. More...
 
void UpdateShader ()
 Updates the shader to use. More...
 
void Optimise ()
 Checks if this shader data is no longer in use and removes it if it isn't. More...
 

Public Attributes

int Flags
 The raw flags for this shader data. Used to describe what shader features it requires. More...
 
Shader Shader
 The cached shader to actually use. More...
 
Element Element
 The element that this is some shading data for. More...
 
ShaderSet Shaders
 The shader family in use. If null, the StandardUI shaders are used. More...
 
ShadowData TextShadow
 The shadow for the text, if there is one. More...
 
StrokeData TextStroke
 The stroke for the text, if there is one. More...
 

Properties

bool Lit [get, set]
 Is this element lit or not? More...
 
bool TangentsRequired [get]
 Is the tangent block required? More...
 
Shader IsolatedShader [get]
 The isolation shader to use. More...
 

Private Member Functions

void Remove ()
 Removes this shader data from the parent element. Use Optimise to check if it requires removing. More...
 

Member Function Documentation

bool PowerUI.Css.ShaderData.GetFlag ( int  flag)
inline

Is the given flag set?

void PowerUI.Css.ShaderData.Optimise ( )
inline

Checks if this shader data is no longer in use and removes it if it isn't.

void PowerUI.Css.ShaderData.Remove ( )
inlineprivate

Removes this shader data from the parent element. Use Optimise to check if it requires removing.

void PowerUI.Css.ShaderData.SetFlag ( int  flag,
bool  value 
)
inline

Set the given flag.

void PowerUI.Css.ShaderData.UpdateShader ( )
inline

Updates the shader to use.

Member Data Documentation

Element PowerUI.Css.ShaderData.Element

The element that this is some shading data for.

int PowerUI.Css.ShaderData.Flags

The raw flags for this shader data. Used to describe what shader features it requires.

Shader PowerUI.Css.ShaderData.Shader

The cached shader to actually use.

ShaderSet PowerUI.Css.ShaderData.Shaders

The shader family in use. If null, the StandardUI shaders are used.

ShadowData PowerUI.Css.ShaderData.TextShadow

The shadow for the text, if there is one.

StrokeData PowerUI.Css.ShaderData.TextStroke

The stroke for the text, if there is one.

Property Documentation

Shader PowerUI.Css.ShaderData.IsolatedShader
get

The isolation shader to use.

bool PowerUI.Css.ShaderData.Lit
getset

Is this element lit or not?

bool PowerUI.Css.ShaderData.TangentsRequired
get

Is the tangent block required?