C#Code
C#Code
Public Member Functions | Static Public Attributes | Protected Attributes | Properties
Libraries.Shaders.TextureProperty Class Reference
Inheritance diagram for Libraries.Shaders.TextureProperty:
Libraries.Shaders.BaseShaderProperty Libraries.Shaders.BaseShaderProperty

List of all members.

Public Member Functions

 TextureProperty ()
 TextureProperty (string texNameInShader)
 TextureProperty (Textures.BaseTexture2D texture)
 TextureProperty (Libraries.Textures.BaseTexture2D texture, string texNameInShader)
void StoreTexture (Textures.BaseTexture2D texture)
override void Update (int timePassed, Effect effect)
 TextureProperty ()
 TextureProperty (string texNameInShader)
 TextureProperty (Textures.BaseTexture2D texture)
 TextureProperty (Libraries.Textures.BaseTexture2D texture, string texNameInShader)
void StoreTexture (Textures.BaseTexture2D texture)
override void Update (int timePassed, Effect effect)

Static Public Attributes

static readonly
Libraries.StringType 
s_propertyName = new Libraries.StringType("texture_prop1")

Protected Attributes

Textures.BaseTexture2D m_texture
 Texture to use.
string m_texNameInShader
 Stores the name of the texture variable in the shader.

Properties

Libraries.Textures.BaseTexture2D Texture [get]

Detailed Description

Handles texture highlight properties for a shader.


Constructor & Destructor Documentation

Libraries.Shaders.TextureProperty.TextureProperty ( )

Default constructor. Texture property in the shader is assumed to be s_propertyName.

Libraries.Shaders.TextureProperty.TextureProperty ( string  texNameInShader)

Constructor. Sets the shader texture variable name to set when setting the shader with the texture.

texNameInShader - Name of the property to set with the texture in the shader.
Libraries.Shaders.TextureProperty.TextureProperty ( Textures.BaseTexture2D  texture)

Constructor.

texture - Texture to use.
Libraries.Shaders.TextureProperty.TextureProperty ( Libraries.Textures.BaseTexture2D  texture,
string  texNameInShader 
)

Constructor.

texture - Texture to use.
texNameInShader - Name of the property to set with the texture in the shader.
Libraries.Shaders.TextureProperty.TextureProperty ( )

Default constructor. Texture property in the shader is assumed to be s_propertyName.

Libraries.Shaders.TextureProperty.TextureProperty ( string  texNameInShader)

Constructor. Sets the shader texture variable name to set when setting the shader with the texture.

texNameInShader - Name of the property to set with the texture in the shader.
Libraries.Shaders.TextureProperty.TextureProperty ( Textures.BaseTexture2D  texture)

Constructor.

texture - Texture to use.
Libraries.Shaders.TextureProperty.TextureProperty ( Libraries.Textures.BaseTexture2D  texture,
string  texNameInShader 
)

Constructor.

texture - Texture to use.
texNameInShader - Name of the property to set with the texture in the shader.

Member Function Documentation

void Libraries.Shaders.TextureProperty.StoreTexture ( Textures.BaseTexture2D  texture)

Store the given texture as the property texture.

texture - Texture to store. effect - Effect to update.
void Libraries.Shaders.TextureProperty.StoreTexture ( Textures.BaseTexture2D  texture)

Store the given texture as the property texture.

texture - Texture to store. effect - Effect to update.
override void Libraries.Shaders.TextureProperty.Update ( int  timePassed,
Effect  effect 
) [virtual]

Update the effect.

timePassed - How long has passed since the previous update.
effect - Effect to update.

Reimplemented from Libraries.Shaders.BaseShaderProperty.

override void Libraries.Shaders.TextureProperty.Update ( int  timePassed,
Effect  effect 
) [virtual]

Update the effect.

timePassed - How long has passed since the previous update.
effect - Effect to update.

Reimplemented from Libraries.Shaders.BaseShaderProperty.


Member Data Documentation

Stores the name of the texture variable in the shader.

Textures BaseTexture2D Libraries::Shaders.TextureProperty::m_texture [protected]

Texture to use.

static readonly Libraries StringType Libraries::Shaders.TextureProperty::s_propertyName = new Libraries.StringType("texture_prop1") [static]

Property Documentation

Libraries Textures BaseTexture2D Libraries::Shaders.TextureProperty::Texture [get]

Getter, get the texture stored in the property.

texture - Texture to use.

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Enumerations Properties