OgreShaderParameter.h
Go to the documentation of this file.
/*
-----------------------------------------------------------------------------
This source file is part of OGRE
(Object-oriented Graphics Rendering Engine)
For the latest info, see http://www.ogre3d.org
Copyright (c) 2000-2013 Torus Knot Software Ltd
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
-----------------------------------------------------------------------------
*/
#ifndef _ShaderParameter_
#define _ShaderParameter_
#include "OgreShaderPrerequisites.h"
#include "OgreGpuProgram.h"
#include "OgreVector2.h"
#include "OgreVector3.h"
#include "OgreVector4.h"
#include "OgreMatrix4.h"
namespace Ogre {
namespace RTShader {
class _OgreRTSSExport Parameter : public RTShaderSystemAlloc
{
public:
// Shader parameter semantic.
enum Semantic
{
SPS_UNKNOWN = 0,
SPS_POSITION = 1,
SPS_BLEND_WEIGHTS = 2,
SPS_BLEND_INDICES = 3,
SPS_NORMAL = 4,
SPS_COLOR = 5,
SPS_TEXTURE_COORDINATES = 7,
SPS_BINORMAL = 8,
SPS_TANGENT = 9
};
// Shader parameter content.
enum Content
{
SPC_UNKNOWN,
SPC_POSITION_OBJECT_SPACE,
SPC_POSITION_WORLD_SPACE,
SPC_POSITION_VIEW_SPACE,
SPC_POSITION_PROJECTIVE_SPACE,
SPC_POSITION_LIGHT_SPACE0,
SPC_POSITION_LIGHT_SPACE1,
SPC_POSITION_LIGHT_SPACE2,
SPC_POSITION_LIGHT_SPACE3,
SPC_POSITION_LIGHT_SPACE4,
SPC_POSITION_LIGHT_SPACE5,
SPC_POSITION_LIGHT_SPACE6,
SPC_POSITION_LIGHT_SPACE7,
SPC_NORMAL_OBJECT_SPACE,
SPC_NORMAL_WORLD_SPACE,
SPC_NORMAL_VIEW_SPACE,
SPC_NORMAL_TANGENT_SPACE,
SPC_POSTOCAMERA_OBJECT_SPACE,
SPC_POSTOCAMERA_WORLD_SPACE,
SPC_POSTOCAMERA_VIEW_SPACE,
SPC_POSTOCAMERA_TANGENT_SPACE,
SPC_POSTOLIGHT_OBJECT_SPACE0,
SPC_POSTOLIGHT_OBJECT_SPACE1,
SPC_POSTOLIGHT_OBJECT_SPACE2,
SPC_POSTOLIGHT_OBJECT_SPACE3,
SPC_POSTOLIGHT_OBJECT_SPACE4,
SPC_POSTOLIGHT_OBJECT_SPACE5,
SPC_POSTOLIGHT_OBJECT_SPACE6,
SPC_POSTOLIGHT_OBJECT_SPACE7,
SPC_POSTOLIGHT_WORLD_SPACE0,
SPC_POSTOLIGHT_WORLD_SPACE1,
SPC_POSTOLIGHT_WORLD_SPACE2,
SPC_POSTOLIGHT_WORLD_SPACE3,
SPC_POSTOLIGHT_WORLD_SPACE4,
SPC_POSTOLIGHT_WORLD_SPACE5,
SPC_POSTOLIGHT_WORLD_SPACE6,
SPC_POSTOLIGHT_WORLD_SPACE7,
SPC_POSTOLIGHT_VIEW_SPACE0,
SPC_POSTOLIGHT_VIEW_SPACE1,
SPC_POSTOLIGHT_VIEW_SPACE2,
SPC_POSTOLIGHT_VIEW_SPACE3,
SPC_POSTOLIGHT_VIEW_SPACE4,
SPC_POSTOLIGHT_VIEW_SPACE5,
SPC_POSTOLIGHT_VIEW_SPACE6,
SPC_POSTOLIGHT_VIEW_SPACE7,
SPC_POSTOLIGHT_TANGENT_SPACE0,
SPC_POSTOLIGHT_TANGENT_SPACE1,
SPC_POSTOLIGHT_TANGENT_SPACE2,
SPC_POSTOLIGHT_TANGENT_SPACE3,
SPC_POSTOLIGHT_TANGENT_SPACE4,
SPC_POSTOLIGHT_TANGENT_SPACE5,
SPC_POSTOLIGHT_TANGENT_SPACE6,
SPC_POSTOLIGHT_TANGENT_SPACE7,
SPC_LIGHTDIRECTION_OBJECT_SPACE0,
SPC_LIGHTDIRECTION_OBJECT_SPACE1,
SPC_LIGHTDIRECTION_OBJECT_SPACE2,
SPC_LIGHTDIRECTION_OBJECT_SPACE3,
SPC_LIGHTDIRECTION_OBJECT_SPACE4,
SPC_LIGHTDIRECTION_OBJECT_SPACE5,
SPC_LIGHTDIRECTION_OBJECT_SPACE6,
SPC_LIGHTDIRECTION_OBJECT_SPACE7,
SPC_LIGHTDIRECTION_WORLD_SPACE0,
SPC_LIGHTDIRECTION_WORLD_SPACE1,
SPC_LIGHTDIRECTION_WORLD_SPACE2,
SPC_LIGHTDIRECTION_WORLD_SPACE3,
SPC_LIGHTDIRECTION_WORLD_SPACE4,
SPC_LIGHTDIRECTION_WORLD_SPACE5,
SPC_LIGHTDIRECTION_WORLD_SPACE6,
SPC_LIGHTDIRECTION_WORLD_SPACE7,
SPC_LIGHTDIRECTION_VIEW_SPACE0,
SPC_LIGHTDIRECTION_VIEW_SPACE1,
SPC_LIGHTDIRECTION_VIEW_SPACE2,
SPC_LIGHTDIRECTION_VIEW_SPACE3,
SPC_LIGHTDIRECTION_VIEW_SPACE4,
SPC_LIGHTDIRECTION_VIEW_SPACE5,
SPC_LIGHTDIRECTION_VIEW_SPACE6,
SPC_LIGHTDIRECTION_VIEW_SPACE7,
SPC_LIGHTDIRECTION_TANGENT_SPACE0,
SPC_LIGHTDIRECTION_TANGENT_SPACE1,
SPC_LIGHTDIRECTION_TANGENT_SPACE2,
SPC_LIGHTDIRECTION_TANGENT_SPACE3,
SPC_LIGHTDIRECTION_TANGENT_SPACE4,
SPC_LIGHTDIRECTION_TANGENT_SPACE5,
SPC_LIGHTDIRECTION_TANGENT_SPACE6,
SPC_LIGHTDIRECTION_TANGENT_SPACE7,
SPC_LIGHTPOSITION_OBJECT_SPACE0,
SPC_LIGHTPOSITION_OBJECT_SPACE1,
SPC_LIGHTPOSITION_OBJECT_SPACE2,
SPC_LIGHTPOSITION_OBJECT_SPACE3,
SPC_LIGHTPOSITION_OBJECT_SPACE4,
SPC_LIGHTPOSITION_OBJECT_SPACE5,
SPC_LIGHTPOSITION_OBJECT_SPACE6,
SPC_LIGHTPOSITION_OBJECT_SPACE7,
SPC_LIGHTPOSITION_WORLD_SPACE0,
SPC_LIGHTPOSITION_WORLD_SPACE1,
SPC_LIGHTPOSITION_WORLD_SPACE2,
SPC_LIGHTPOSITION_WORLD_SPACE3,
SPC_LIGHTPOSITION_WORLD_SPACE4,
SPC_LIGHTPOSITION_WORLD_SPACE5,
SPC_LIGHTPOSITION_WORLD_SPACE6,
SPC_LIGHTPOSITION_WORLD_SPACE7,
SPC_LIGHTPOSITIONVIEW_SPACE0,
SPC_LIGHTPOSITIONVIEW_SPACE1,
SPC_LIGHTPOSITIONVIEW_SPACE2,
SPC_LIGHTPOSITIONVIEW_SPACE3,
SPC_LIGHTPOSITIONVIEW_SPACE4,
SPC_LIGHTPOSITIONVIEW_SPACE5,
SPC_LIGHTPOSITIONVIEW_SPACE6,
SPC_LIGHTPOSITIONVIEW_SPACE7,
SPC_LIGHTPOSITION_TANGENT_SPACE,
SPC_BLEND_WEIGHTS,
SPC_BLEND_INDICES,
SPC_TANGENT_OBJECT_SPACE,
SPC_TANGENT_WORLD_SPACE,
SPC_TANGENT_VIEW_SPACE,
SPC_TANGENT_TANGENT_SPACE,
SPC_BINORMAL_OBJECT_SPACE,
SPC_BINORMAL_WORLD_SPACE,
SPC_BINORMAL_VIEW_SPACE,
SPC_BINORMAL_TANGENT_SPACE,
SPC_COLOR_DIFFUSE,
SPC_COLOR_SPECULAR,
SPC_DEPTH_OBJECT_SPACE,
SPC_DEPTH_WORLD_SPACE,
SPC_DEPTH_VIEW_SPACE,
SPC_DEPTH_PROJECTIVE_SPACE,
SPC_TEXTURE_COORDINATE0,
SPC_TEXTURE_COORDINATE1,
SPC_TEXTURE_COORDINATE2,
SPC_TEXTURE_COORDINATE3,
SPC_TEXTURE_COORDINATE4,
SPC_TEXTURE_COORDINATE5,
SPC_TEXTURE_COORDINATE6,
SPC_TEXTURE_COORDINATE7,
SPC_CUSTOM_CONTENT_BEGIN = 1000,
SPC_CUSTOM_CONTENT_END = 2000
};
// Interface.
public:
Parameter();
Parameter(GpuConstantType type, const String& name,
const Semantic& semantic, int index,
const Content& content, size_t size = 0);
virtual ~Parameter() {};
const String& getName() const { return mName; }
GpuConstantType getType() const { return mType; }
const Semantic& getSemantic() const { return mSemantic; }
int getIndex() const { return mIndex; }
Content getContent() const { return mContent; }
virtual bool isConstParameter() const { return false; }
virtual String toString() const { return mName; }
bool isArray() const { return mSize > 0; }
size_t getSize() const { return mSize; }
void setSize(size_t size) { mSize = size; }
// Attributes.
protected:
// Name of this parameter.
String mName;
// Type of this parameter.
GpuConstantType mType;
// Semantic of this parameter.
Semantic mSemantic;
// Index of this parameter.
int mIndex;
// The content of this parameter.
Content mContent;
// Number of elements in the parameter (for arrays)
size_t mSize;
};
typedef SharedPtr<Parameter> ParameterPtr;
typedef vector<ParameterPtr>::type ShaderParameterList;
typedef ShaderParameterList::iterator ShaderParameterIterator;
typedef ShaderParameterList::const_iterator ShaderParameterConstIterator;
class _OgreRTSSExport UniformParameter : public Parameter
{
public:
UniformParameter(GpuConstantType type, const String& name,
const Semantic& semantic, int index,
const Content& content,
uint16 variability, size_t size);
UniformParameter(GpuProgramParameters::AutoConstantType autoType, Real fAutoConstantData, size_t size);
UniformParameter(GpuProgramParameters::AutoConstantType autoType, Real fAutoConstantData, size_t size, GpuConstantType type);
UniformParameter(GpuProgramParameters::AutoConstantType autoType, size_t nAutoConstantData, size_t size);
UniformParameter(GpuProgramParameters::AutoConstantType autoType, size_t nAutoConstantData, size_t size, GpuConstantType type);
size_t getAutoConstantIntData() const { return mAutoConstantIntData; }
Real getAutoConstantRealData() const { return mAutoConstantRealData; }
bool isFloat() const;
bool isSampler() const;
bool isAutoConstantParameter() const { return mIsAutoConstantReal || mIsAutoConstantInt; }
bool isAutoConstantIntParameter() const { return mIsAutoConstantInt; }
bool isAutoConstantRealParameter() const { return mIsAutoConstantReal; }
GpuProgramParameters::AutoConstantType getAutoConstantType () const { return mAutoConstantType; }
uint16 getVariability() const { return mVariability; }
void bind(GpuProgramParametersSharedPtr paramsPtr);
public:
void setGpuParameter(int val)
{
if (mParamsPtr != NULL)
{
mParamsPtr->_writeRawConstant(mPhysicalIndex, val);
}
}
void setGpuParameter(Real val)
{
if (mParamsPtr != NULL)
{
mParamsPtr->_writeRawConstant(mPhysicalIndex, val);
}
}
void setGpuParameter(const ColourValue& val)
{
if (mParamsPtr != NULL)
{
mParamsPtr->_writeRawConstant(mPhysicalIndex, val);
}
}
void setGpuParameter(const Vector2& val)
{
if (mParamsPtr != NULL)
{
mParamsPtr->_writeRawConstants(mPhysicalIndex, val.ptr(), 2);
}
}
void setGpuParameter(const Vector3& val)
{
if (mParamsPtr != NULL)
{
mParamsPtr->_writeRawConstant(mPhysicalIndex, val);
}
}
void setGpuParameter(const Vector4& val)
{
if (mParamsPtr != NULL)
{
mParamsPtr->_writeRawConstant(mPhysicalIndex, val);
}
}
void setGpuParameter(const Matrix4& val)
{
if (mParamsPtr != NULL)
{
mParamsPtr->_writeRawConstant(mPhysicalIndex, val, 16);
}
}
void setGpuParameter(const float *val, size_t count, size_t multiple = 4)
{
if (mParamsPtr != NULL)
{
mParamsPtr->_writeRawConstants(mPhysicalIndex, val, count * multiple);
}
}
void setGpuParameter(const double *val, size_t count, size_t multiple = 4)
{
if (mParamsPtr != NULL)
{
mParamsPtr->_writeRawConstants(mPhysicalIndex, val, count * multiple);
}
}
void setGpuParameter(const int *val, size_t count, size_t multiple = 4)
{
if (mParamsPtr != NULL)
{
mParamsPtr->_writeRawConstants(mPhysicalIndex, val, count * multiple);
}
}
protected:
// Is it auto constant real based parameter.
bool mIsAutoConstantReal;
// Is it auto constant int based parameter.
bool mIsAutoConstantInt;
GpuProgramParameters::AutoConstantType mAutoConstantType; // The auto constant type of this parameter.
union
{
// Auto constant int data.
size_t mAutoConstantIntData;
// Auto constant real data.
Real mAutoConstantRealData;
};
// How this parameter varies (bitwise combination of GpuProgramVariability).
uint16 mVariability;
// The actual GPU parameters pointer.
GpuProgramParameters* mParamsPtr;
// The physical index of this parameter in the GPU program.
size_t mPhysicalIndex;
};
typedef SharedPtr<UniformParameter> UniformParameterPtr;
typedef vector<UniformParameterPtr>::type UniformParameterList;
typedef UniformParameterList::iterator UniformParameterIterator;
typedef UniformParameterList::const_iterator UniformParameterConstIterator;
template <class valueType>
class ConstParameter : public Parameter
{
public:
ConstParameter( valueType val,
GpuConstantType type,
const Semantic& semantic,
const Content& content)
: Parameter(type, "Constant", semantic, 0, content)
{
mValue = val;
}
virtual ~ConstParameter () {}
const valueType& getValue() const { return mValue; }
virtual bool isConstParameter() const { return true; }
virtual String toString() const = 0;
protected:
valueType mValue;
};
class _OgreRTSSExport ParameterFactory
{
// Interface.
public:
static ParameterPtr createInPosition(int index);
static ParameterPtr createOutPosition(int index);
static ParameterPtr createInNormal(int index);
static ParameterPtr createInWeights(int index);
static ParameterPtr createInIndices(int index);
static ParameterPtr createOutNormal(int index);
static ParameterPtr createInBiNormal(int index);
static ParameterPtr createOutBiNormal(int index);
static ParameterPtr createInTangent(int index);
static ParameterPtr createOutTangent(int index);
static ParameterPtr createInColor(int index);
static ParameterPtr createOutColor(int index);
static ParameterPtr createInTexcoord(GpuConstantType type, int index, Parameter::Content content);
static ParameterPtr createOutTexcoord(GpuConstantType type, int index, Parameter::Content content);
static ParameterPtr createInTexcoord1(int index, Parameter::Content content);
static ParameterPtr createOutTexcoord1(int index, Parameter::Content content);
static ParameterPtr createInTexcoord2(int index, Parameter::Content content);
static ParameterPtr createOutTexcoord2(int index, Parameter::Content content);
static ParameterPtr createInTexcoord3(int index, Parameter::Content content);
static ParameterPtr createOutTexcoord3(int index, Parameter::Content content);
static ParameterPtr createInTexcoord4(int index, Parameter::Content content);
static ParameterPtr createOutTexcoord4(int index, Parameter::Content content);
static ParameterPtr createConstParamVector2(Vector2 val);
static ParameterPtr createConstParamVector3(Vector3 val);
static ParameterPtr createConstParamVector4(Vector4 val);
static ParameterPtr createConstParamFloat(float val);
static UniformParameterPtr createSampler(GpuConstantType type, int index);
static UniformParameterPtr createSampler1D(int index);
static UniformParameterPtr createSampler2D(int index);
static UniformParameterPtr createSampler2DArray(int index);
static UniformParameterPtr createSampler3D(int index);
static UniformParameterPtr createSamplerCUBE(int index);
static UniformParameterPtr createUniform(GpuConstantType type, int index, uint16 variability, const String& suggestedName, size_t size);
};
}
}
#endif
Ogre::RTShader::UniformParameter::mParamsPtr
GpuProgramParameters * mParamsPtr
Definition: OgreShaderParameter.h:563
OgreVector4.h
Ogre::RTShader::Parameter::SPC_LIGHTDIRECTION_OBJECT_SPACE1
Definition: OgreShaderParameter.h:169
Ogre::RTShader::Parameter::SPC_LIGHTDIRECTION_TANGENT_SPACE7
Definition: OgreShaderParameter.h:205
Ogre::RTShader::UniformParameterPtr
SharedPtr< UniformParameter > UniformParameterPtr
Definition: OgreShaderParameter.h:568
Ogre::RTShader::Parameter::SPC_LIGHTPOSITIONVIEW_SPACE1
Definition: OgreShaderParameter.h:229
Ogre::RTShader::Parameter::SPC_NORMAL_WORLD_SPACE
Normal in world space.
Definition: OgreShaderParameter.h:107
Ogre::RTShader::Parameter::getSize
size_t getSize() const
Returns the number of elements in the parameter (for arrays).
Definition: OgreShaderParameter.h:347
Ogre::RTShader::Parameter::Semantic
Semantic
Definition: OgreShaderParameter.h:53
Ogre::RTShader::UniformParameter::getVariability
uint16 getVariability() const
Return the variability of this parameter.
Definition: OgreShaderParameter.h:450
Ogre::GpuProgramParameters::AutoConstantType
AutoConstantType
Defines the types of automatically updated values that may be bound to GpuProgram parameters...
Definition: OgreGpuProgramParams.h:708
OgreVector3.h
Ogre::RTShader::Parameter::SPC_NORMAL_OBJECT_SPACE
Normal in object space.
Definition: OgreShaderParameter.h:104
Ogre::RTShader::ConstParameter::mValue
valueType mValue
Definition: OgreShaderParameter.h:605
Ogre::RTShader::Parameter::SPC_LIGHTDIRECTION_TANGENT_SPACE0
Light direction in tangent space index 0-7.
Definition: OgreShaderParameter.h:198
Ogre::RTShader::Parameter::SPC_POSITION_LIGHT_SPACE2
Definition: OgreShaderParameter.h:96
Ogre::RTShader::UniformParameterConstIterator
UniformParameterList::const_iterator UniformParameterConstIterator
Definition: OgreShaderParameter.h:571
Ogre::RTShader::UniformParameter::getAutoConstantIntData
size_t getAutoConstantIntData() const
Get auto constant int data of this parameter, in case it is auto constant parameter.
Definition: OgreShaderParameter.h:426
Ogre::RTShader::Parameter::SPC_LIGHTPOSITIONVIEW_SPACE5
Definition: OgreShaderParameter.h:233
Ogre::RTShader::Parameter::SPC_POSTOLIGHT_VIEW_SPACE0
Light vector in view space index 0-7.
Definition: OgreShaderParameter.h:148
Ogre::RTShader::Parameter::SPC_LIGHTDIRECTION_WORLD_SPACE5
Definition: OgreShaderParameter.h:183
Ogre::RTShader::UniformParameter::mVariability
uint16 mVariability
Definition: OgreShaderParameter.h:561
Ogre::RTShader::Parameter::SPC_POSTOLIGHT_TANGENT_SPACE1
Definition: OgreShaderParameter.h:159
Ogre::RTShader::Parameter::SPC_POSTOLIGHT_VIEW_SPACE5
Definition: OgreShaderParameter.h:153
Ogre::RTShader::Parameter::SPC_LIGHTDIRECTION_OBJECT_SPACE7
Definition: OgreShaderParameter.h:175
Ogre::RTShader::Parameter::isArray
bool isArray() const
Returns Whether this parameter is an array.
Definition: OgreShaderParameter.h:344
Ogre::RTShader::Parameter::SPC_POSTOLIGHT_TANGENT_SPACE6
Definition: OgreShaderParameter.h:164
Ogre::RTShader::Parameter::SPC_LIGHTDIRECTION_TANGENT_SPACE3
Definition: OgreShaderParameter.h:201
Ogre::RTShader::Parameter::SPC_POSTOLIGHT_WORLD_SPACE3
Definition: OgreShaderParameter.h:141
Ogre::RTShader::Parameter::SPC_TEXTURE_COORDINATE7
Definition: OgreShaderParameter.h:296
Ogre::RTShader::ConstParameter
Helper template which is the base for our ConstParameters.
Definition: OgreShaderParameter.h:576
Ogre::RTShader::Parameter::mSemantic
Semantic mSemantic
Definition: OgreShaderParameter.h:359
Ogre::RTShader::Parameter::SPC_LIGHTPOSITION_TANGENT_SPACE
Light position in tangent space index 0-7.
Definition: OgreShaderParameter.h:238
Ogre::RTShader::UniformParameter::mAutoConstantType
GpuProgramParameters::AutoConstantType mAutoConstantType
Definition: OgreShaderParameter.h:552
Ogre::RTShader::Parameter::SPC_POSTOLIGHT_WORLD_SPACE0
Light vector in world space index 0-7.
Definition: OgreShaderParameter.h:138
Ogre::RTShader::Parameter::SPC_LIGHTPOSITIONVIEW_SPACE0
Light position in view space index 0-7.
Definition: OgreShaderParameter.h:228
Ogre::RTShader::Parameter::getContent
Content getContent() const
Return the content of this parameter.
Definition: OgreShaderParameter.h:335
Ogre::RTShader::Parameter::SPC_LIGHTPOSITION_OBJECT_SPACE1
Definition: OgreShaderParameter.h:209
Ogre::RTShader::Parameter
A class that represents a shader based program parameter.
Definition: OgreShaderParameter.h:49
Ogre::RTShader::Parameter::SPC_LIGHTDIRECTION_VIEW_SPACE0
Light direction in view space index 0-7.
Definition: OgreShaderParameter.h:188
Ogre::RTShader::Parameter::SPC_UNKNOWN
Unknown content.
Definition: OgreShaderParameter.h:79
Ogre::RTShader::Parameter::SPC_POSITION_LIGHT_SPACE0
Position in light space index 0-7.
Definition: OgreShaderParameter.h:94
Ogre::RTShader::Parameter::SPC_LIGHTPOSITION_WORLD_SPACE6
Definition: OgreShaderParameter.h:224
Ogre::Vector4
4-dimensional homogeneous vector.
Definition: OgreVector4.h:45
Ogre::RTShader::Parameter::SPC_LIGHTPOSITIONVIEW_SPACE2
Definition: OgreShaderParameter.h:230
Ogre::RTShader::Parameter::SPC_LIGHTPOSITION_OBJECT_SPACE2
Definition: OgreShaderParameter.h:210
Ogre::RTShader::Parameter::SPC_POSTOLIGHT_WORLD_SPACE7
Definition: OgreShaderParameter.h:145
Ogre::RTShader::Parameter::SPC_POSTOLIGHT_VIEW_SPACE6
Definition: OgreShaderParameter.h:154
Ogre::RTShader::Parameter::SPC_LIGHTDIRECTION_WORLD_SPACE6
Definition: OgreShaderParameter.h:184
Ogre::Vector2
Standard 2-dimensional vector.
Definition: OgreVector2.h:51
Ogre::ColourValue
Class representing colour.
Definition: OgreColourValue.h:57
Ogre::Real
float Real
Software floating point type.
Definition: OgrePrerequisites.h:70
Ogre::RTShader::Parameter::getType
GpuConstantType getType() const
Get the type of this parameter.
Definition: OgreShaderParameter.h:326
Ogre::RTShader::Parameter::getName
const String & getName() const
Get the name of this parameter.
Definition: OgreShaderParameter.h:323
Ogre::RTShader::UniformParameter::mAutoConstantRealData
Real mAutoConstantRealData
Definition: OgreShaderParameter.h:558
Ogre::RTShader::Parameter::SPC_LIGHTDIRECTION_TANGENT_SPACE2
Definition: OgreShaderParameter.h:200
Ogre::RTShader::Parameter::toString
virtual String toString() const
Returns the string representation of this parameter.
Definition: OgreShaderParameter.h:341
Ogre::RTShader::Parameter::SPC_LIGHTDIRECTION_OBJECT_SPACE6
Definition: OgreShaderParameter.h:174
Ogre::RTShader::UniformParameterList
vector< UniformParameterPtr >::type UniformParameterList
Definition: OgreShaderParameter.h:569
Ogre::RTShader::Parameter::SPC_POSTOLIGHT_TANGENT_SPACE3
Definition: OgreShaderParameter.h:161
Ogre::RTShader::Parameter::SPC_NORMAL_TANGENT_SPACE
Normal in tangent space.
Definition: OgreShaderParameter.h:113
Ogre::RTShader::ConstParameter::ConstParameter
ConstParameter(valueType val, GpuConstantType type, const Semantic &semantic, const Content &content)
Definition: OgreShaderParameter.h:580
Ogre::RTShader::Parameter::SPC_LIGHTDIRECTION_VIEW_SPACE5
Definition: OgreShaderParameter.h:193
Ogre::RTShader::ShaderParameterConstIterator
ShaderParameterList::const_iterator ShaderParameterConstIterator
Definition: OgreShaderParameter.h:372
Ogre::RTShader::UniformParameter::setGpuParameter
void setGpuParameter(const Vector3 &val)
Update the GPU parameter with the given value.
Definition: OgreShaderParameter.h:494
Ogre::RTShader::Parameter::SPC_POSITION_VIEW_SPACE
Position in view space.
Definition: OgreShaderParameter.h:88
Ogre::RTShader::Parameter::SPC_TEXTURE_COORDINATE2
Definition: OgreShaderParameter.h:291
Ogre::RTShader::Parameter::SPC_POSTOCAMERA_WORLD_SPACE
View vector in world space.
Definition: OgreShaderParameter.h:119
Ogre::RTShader::Parameter::SPC_TEXTURE_COORDINATE3
Definition: OgreShaderParameter.h:292
Ogre::RTShader::Parameter::SPC_LIGHTDIRECTION_VIEW_SPACE7
Definition: OgreShaderParameter.h:195
Ogre::RTShader::Parameter::SPC_LIGHTPOSITION_OBJECT_SPACE3
Definition: OgreShaderParameter.h:211
Ogre::RTShader::Parameter::SPC_POSTOLIGHT_TANGENT_SPACE7
Definition: OgreShaderParameter.h:165
Ogre::RTShader::Parameter::SPC_LIGHTDIRECTION_TANGENT_SPACE6
Definition: OgreShaderParameter.h:204
Ogre::RTShader::Parameter::SPC_COLOR_SPECULAR
Specular color.
Definition: OgreShaderParameter.h:274
OgreShaderPrerequisites.h
Ogre::RTShader::Parameter::SPC_LIGHTDIRECTION_OBJECT_SPACE2
Definition: OgreShaderParameter.h:170
Ogre::RTShader::Parameter::SPC_POSTOLIGHT_VIEW_SPACE3
Definition: OgreShaderParameter.h:151
Ogre::RTShader::Parameter::isConstParameter
virtual bool isConstParameter() const
Returns true if this instance is a ConstParameter otherwise false.
Definition: OgreShaderParameter.h:338
Ogre::RTShader::ParameterPtr
SharedPtr< Parameter > ParameterPtr
Definition: OgreShaderParameter.h:369
Ogre::RTShader::Parameter::SPC_LIGHTPOSITIONVIEW_SPACE7
Definition: OgreShaderParameter.h:235
Ogre::RTShader::Parameter::SPC_POSITION_WORLD_SPACE
Position in world space.
Definition: OgreShaderParameter.h:85
Ogre::RTShader::Parameter::SPC_POSTOLIGHT_VIEW_SPACE2
Definition: OgreShaderParameter.h:150
Ogre::RTShader::ShaderParameterList
vector< ParameterPtr >::type ShaderParameterList
Definition: OgreShaderParameter.h:370
Ogre::RTShader::Parameter::SPC_POSTOLIGHT_OBJECT_SPACE4
Definition: OgreShaderParameter.h:132
Ogre::RTShader::UniformParameter::isAutoConstantRealParameter
bool isAutoConstantRealParameter() const
Return true if this parameter an auto constant with real data type, false otherwise.
Definition: OgreShaderParameter.h:444
Ogre::RTShader::Parameter::SPC_POSTOLIGHT_TANGENT_SPACE4
Definition: OgreShaderParameter.h:162
Ogre::Matrix4
Class encapsulating a standard 4x4 homogeneous matrix.
Definition: OgreMatrix4.h:78
Ogre::Vector3
Standard 3-dimensional vector.
Definition: OgreVector3.h:51
Ogre::RTShader::Parameter::SPC_POSITION_LIGHT_SPACE5
Definition: OgreShaderParameter.h:99
Ogre::RTShader::Parameter::SPC_LIGHTDIRECTION_WORLD_SPACE3
Definition: OgreShaderParameter.h:181
Ogre::RTShader::UniformParameter::setGpuParameter
void setGpuParameter(const ColourValue &val)
Update the GPU parameter with the given value.
Definition: OgreShaderParameter.h:476
Ogre::RTShader::Parameter::SPC_POSTOLIGHT_OBJECT_SPACE2
Definition: OgreShaderParameter.h:130
Ogre::RTShader::Parameter::SPC_LIGHTPOSITIONVIEW_SPACE3
Definition: OgreShaderParameter.h:231
Ogre::RTShader::Parameter::SPC_BINORMAL_OBJECT_SPACE
Binormal in object space.
Definition: OgreShaderParameter.h:259
Ogre::RTShader::Parameter::SPC_DEPTH_PROJECTIVE_SPACE
Depth in projective space.
Definition: OgreShaderParameter.h:286
Ogre::RTShader::Parameter::SPC_LIGHTDIRECTION_WORLD_SPACE2
Definition: OgreShaderParameter.h:180
Ogre::RTShader::Parameter::SPC_POSITION_LIGHT_SPACE3
Definition: OgreShaderParameter.h:97
Ogre::RTShader::ConstParameter::~ConstParameter
virtual ~ConstParameter()
Definition: OgreShaderParameter.h:589
Ogre::RTShader::Parameter::Content
Content
Definition: OgreShaderParameter.h:76
Ogre::RTShader::Parameter::SPC_POSITION_LIGHT_SPACE4
Definition: OgreShaderParameter.h:98
Ogre::RTShader::Parameter::SPC_TEXTURE_COORDINATE1
Definition: OgreShaderParameter.h:290
Ogre::RTShader::Parameter::SPC_POSTOLIGHT_OBJECT_SPACE5
Definition: OgreShaderParameter.h:133
Ogre::RTShader::Parameter::SPC_COLOR_DIFFUSE
Diffuse color.
Definition: OgreShaderParameter.h:271
Ogre::RTShader::Parameter::SPC_LIGHTPOSITION_OBJECT_SPACE6
Definition: OgreShaderParameter.h:214
Ogre::RTShader::Parameter::getSemantic
const Semantic & getSemantic() const
Get the semantic of this parameter.
Definition: OgreShaderParameter.h:329
Ogre::RTShader::Parameter::SPC_LIGHTDIRECTION_TANGENT_SPACE4
Definition: OgreShaderParameter.h:202
Ogre::RTShader::Parameter::SPC_BLEND_WEIGHTS
Blending weights.
Definition: OgreShaderParameter.h:241
Ogre::RTShader::UniformParameter::setGpuParameter
void setGpuParameter(int val)
Update the GPU parameter with the given value.
Definition: OgreShaderParameter.h:458
Ogre::RTShader::UniformParameter::setGpuParameter
void setGpuParameter(const Vector2 &val)
Update the GPU parameter with the given value.
Definition: OgreShaderParameter.h:485
Ogre::RTShader::Parameter::SPC_TEXTURE_COORDINATE0
Texture coordinate set index 0-7.
Definition: OgreShaderParameter.h:289
Ogre::RTShader::Parameter::SPC_LIGHTPOSITION_WORLD_SPACE7
Definition: OgreShaderParameter.h:225
Ogre::RTShader::UniformParameterIterator
UniformParameterList::iterator UniformParameterIterator
Definition: OgreShaderParameter.h:570
Ogre::RTShader::Parameter::SPC_POSTOLIGHT_VIEW_SPACE4
Definition: OgreShaderParameter.h:152
Ogre::RTShader::Parameter::SPC_LIGHTDIRECTION_VIEW_SPACE2
Definition: OgreShaderParameter.h:190
Ogre::RTShader::Parameter::SPC_POSTOCAMERA_TANGENT_SPACE
View vector in tangent space.
Definition: OgreShaderParameter.h:125
Ogre::RTShader::Parameter::SPC_LIGHTDIRECTION_TANGENT_SPACE1
Definition: OgreShaderParameter.h:199
Ogre::RTShader::Parameter::SPC_DEPTH_OBJECT_SPACE
Depth in object space.
Definition: OgreShaderParameter.h:277
Ogre::RTShader::ConstParameter::isConstParameter
virtual bool isConstParameter() const
Definition: OgreShaderParameter.h:597
Ogre::Vector2::ptr
Real * ptr()
Pointer accessor for direct copying.
Definition: OgreVector2.h:115
Ogre::RTShader::Parameter::SPC_POSITION_LIGHT_SPACE7
Definition: OgreShaderParameter.h:101
Ogre::RTShader::Parameter::SPC_POSTOLIGHT_TANGENT_SPACE5
Definition: OgreShaderParameter.h:163
Ogre::RTShader::Parameter::SPC_POSTOLIGHT_WORLD_SPACE2
Definition: OgreShaderParameter.h:140
Ogre::RTShader::Parameter::SPC_LIGHTPOSITION_OBJECT_SPACE5
Definition: OgreShaderParameter.h:213
OgreMatrix4.h
Ogre::String
_StringBase String
Definition: OgrePrerequisites.h:439
Ogre::RTShader::Parameter::SPC_LIGHTDIRECTION_OBJECT_SPACE5
Definition: OgreShaderParameter.h:173
Ogre::RTShader::Parameter::SPC_LIGHTDIRECTION_VIEW_SPACE4
Definition: OgreShaderParameter.h:192
Ogre::RTShader::UniformParameter
Uniform parameter class.
Definition: OgreShaderParameter.h:376
Ogre::RTShader::Parameter::SPC_POSITION_LIGHT_SPACE1
Definition: OgreShaderParameter.h:95
Ogre::RTShader::UniformParameter::getAutoConstantType
GpuProgramParameters::AutoConstantType getAutoConstantType() const
Return the auto constant type of this parameter.
Definition: OgreShaderParameter.h:447
Ogre::RTShader::Parameter::SPC_LIGHTDIRECTION_OBJECT_SPACE3
Definition: OgreShaderParameter.h:171
Ogre::RTShader::Parameter::SPC_TANGENT_WORLD_SPACE
Tangent in world space.
Definition: OgreShaderParameter.h:250
Ogre::RTShader::UniformParameter::setGpuParameter
void setGpuParameter(const int *val, size_t count, size_t multiple=4)
Update the GPU parameter with the given value.
Definition: OgreShaderParameter.h:539
Ogre::RTShader::Parameter::SPC_POSTOLIGHT_OBJECT_SPACE0
Light vector in object space index 0-7.
Definition: OgreShaderParameter.h:128
Ogre::RTShader::Parameter::SPC_TANGENT_OBJECT_SPACE
Tangent in object space.
Definition: OgreShaderParameter.h:247
Ogre::RTShader::Parameter::SPC_POSTOLIGHT_WORLD_SPACE6
Definition: OgreShaderParameter.h:144
Ogre::RTShader::UniformParameter::setGpuParameter
void setGpuParameter(const float *val, size_t count, size_t multiple=4)
Update the GPU parameter with the given value.
Definition: OgreShaderParameter.h:521
Ogre::RTShader::UniformParameter::setGpuParameter
void setGpuParameter(const double *val, size_t count, size_t multiple=4)
Update the GPU parameter with the given value.
Definition: OgreShaderParameter.h:530
Ogre::RTShader::Parameter::SPC_POSTOLIGHT_VIEW_SPACE1
Definition: OgreShaderParameter.h:149
Ogre::RTShader::Parameter::SPC_DEPTH_WORLD_SPACE
Depth in world space.
Definition: OgreShaderParameter.h:280
Ogre::RTShader::UniformParameter::setGpuParameter
void setGpuParameter(const Vector4 &val)
Update the GPU parameter with the given value.
Definition: OgreShaderParameter.h:503
Ogre::RTShader::Parameter::SPC_BLEND_INDICES
Blending indices.
Definition: OgreShaderParameter.h:244
Ogre::RTShader::Parameter::SPC_POSITION_OBJECT_SPACE
Position in object space.
Definition: OgreShaderParameter.h:82
Ogre::RTShader::UniformParameter::mPhysicalIndex
size_t mPhysicalIndex
Definition: OgreShaderParameter.h:565
Ogre::RTShader::ConstParameter::getValue
const valueType & getValue() const
Returns the native value of this parameter.
Definition: OgreShaderParameter.h:592
Ogre::RTShader::Parameter::mContent
Content mContent
Definition: OgreShaderParameter.h:363
Ogre::RTShader::Parameter::SPC_POSTOLIGHT_OBJECT_SPACE6
Definition: OgreShaderParameter.h:134
_OgreRTSSExport
#define _OgreRTSSExport
Definition: OgreShaderPrerequisites.h:108
Ogre::RTShader::Parameter::SPC_POSITION_PROJECTIVE_SPACE
Position in projective space.
Definition: OgreShaderParameter.h:91
Ogre::RTShader::Parameter::SPC_LIGHTPOSITION_WORLD_SPACE3
Definition: OgreShaderParameter.h:221
Ogre::RTShader::Parameter::SPC_POSTOLIGHT_WORLD_SPACE1
Definition: OgreShaderParameter.h:139
Ogre::RTShader::Parameter::SPC_LIGHTPOSITIONVIEW_SPACE4
Definition: OgreShaderParameter.h:232
Ogre::RTShader::Parameter::SPC_POSTOLIGHT_OBJECT_SPACE3
Definition: OgreShaderParameter.h:131
Ogre::RTShader::ParameterFactory
Helper utility class that creates common parameters.
Definition: OgreShaderParameter.h:610
Ogre::RTShader::Parameter::SPC_BINORMAL_TANGENT_SPACE
Binormal in tangent space.
Definition: OgreShaderParameter.h:268
Ogre::RTShader::UniformParameter::setGpuParameter
void setGpuParameter(const Matrix4 &val)
Update the GPU parameter with the given value.
Definition: OgreShaderParameter.h:512
Ogre::RTShader::Parameter::SPC_TEXTURE_COORDINATE6
Definition: OgreShaderParameter.h:295
Ogre::RTShader::Parameter::mName
String mName
Definition: OgreShaderParameter.h:355
Ogre::RTShader::Parameter::SPC_LIGHTPOSITION_OBJECT_SPACE0
Light position in object space index 0-7.
Definition: OgreShaderParameter.h:208
Ogre
Definition: OgreAndroidLogListener.h:34
Ogre::RTShader::Parameter::SPC_TANGENT_TANGENT_SPACE
Tangent in tangent space.
Definition: OgreShaderParameter.h:256
Ogre::RTShader::UniformParameter::mAutoConstantIntData
size_t mAutoConstantIntData
Definition: OgreShaderParameter.h:556
Ogre::RTShader::Parameter::SPC_POSTOCAMERA_OBJECT_SPACE
View vector in object space.
Definition: OgreShaderParameter.h:116
Ogre::RTShader::Parameter::SPC_LIGHTDIRECTION_WORLD_SPACE7
Definition: OgreShaderParameter.h:185
Ogre::RTShader::Parameter::SPC_POSTOCAMERA_VIEW_SPACE
View vector in view space.
Definition: OgreShaderParameter.h:122
Ogre::RTShader::Parameter::SPC_LIGHTPOSITION_OBJECT_SPACE4
Definition: OgreShaderParameter.h:212
Ogre::RTShader::Parameter::SPC_TANGENT_VIEW_SPACE
Tangent in view space.
Definition: OgreShaderParameter.h:253
Ogre::SharedPtr< Parameter >
Ogre::GpuConstantType
GpuConstantType
Enumeration of the types of constant we may encounter in programs.
Definition: OgreGpuProgramParams.h:54
Ogre::RTShader::Parameter::getIndex
int getIndex() const
Get the index of this parameter.
Definition: OgreShaderParameter.h:332
Ogre::vector
Definition: OgrePrerequisites.h:491
Ogre::RTShader::Parameter::SPC_LIGHTPOSITION_WORLD_SPACE4
Definition: OgreShaderParameter.h:222
Ogre::RTShader::UniformParameter::setGpuParameter
void setGpuParameter(Real val)
Update the GPU parameter with the given value.
Definition: OgreShaderParameter.h:467
Ogre::RTShader::ShaderParameterIterator
ShaderParameterList::iterator ShaderParameterIterator
Definition: OgreShaderParameter.h:371
Ogre::RTShader::Parameter::SPC_LIGHTDIRECTION_VIEW_SPACE6
Definition: OgreShaderParameter.h:194
Ogre::RTShader::Parameter::SPC_TEXTURE_COORDINATE4
Definition: OgreShaderParameter.h:293
Ogre::RTShader::Parameter::SPC_LIGHTDIRECTION_VIEW_SPACE1
Definition: OgreShaderParameter.h:189
Ogre::RTShader::Parameter::SPC_LIGHTDIRECTION_OBJECT_SPACE4
Definition: OgreShaderParameter.h:172
Ogre::RTShader::Parameter::SPC_BINORMAL_VIEW_SPACE
Binormal in view space.
Definition: OgreShaderParameter.h:265
Ogre::RTShader::Parameter::SPC_POSTOLIGHT_WORLD_SPACE4
Definition: OgreShaderParameter.h:142
Ogre::RTShader::Parameter::SPC_NORMAL_VIEW_SPACE
Normal in view space.
Definition: OgreShaderParameter.h:110
Ogre::RTShader::Parameter::SPC_POSTOLIGHT_WORLD_SPACE5
Definition: OgreShaderParameter.h:143
Ogre::RTShader::UniformParameter::mIsAutoConstantReal
bool mIsAutoConstantReal
Definition: OgreShaderParameter.h:549
OgreVector2.h
Ogre::RTShader::Parameter::SPC_POSTOLIGHT_OBJECT_SPACE1
Definition: OgreShaderParameter.h:129
Ogre::RTShader::Parameter::SPC_LIGHTPOSITIONVIEW_SPACE6
Definition: OgreShaderParameter.h:234
Ogre::RTShader::Parameter::SPC_TEXTURE_COORDINATE5
Definition: OgreShaderParameter.h:294
Ogre::RTShader::Parameter::SPC_POSTOLIGHT_TANGENT_SPACE0
Light vector in tangent space index 0-7.
Definition: OgreShaderParameter.h:158
Ogre::RTShader::UniformParameter::isAutoConstantIntParameter
bool isAutoConstantIntParameter() const
Return true if this parameter an auto constant with int data type, false otherwise.
Definition: OgreShaderParameter.h:441
Ogre::RTShader::Parameter::SPC_LIGHTDIRECTION_WORLD_SPACE0
Light direction in world space index 0-7.
Definition: OgreShaderParameter.h:178
Ogre::RTShader::Parameter::SPC_LIGHTDIRECTION_OBJECT_SPACE0
Light direction in object space index 0-7.
Definition: OgreShaderParameter.h:168
Ogre::RTShader::Parameter::SPC_LIGHTPOSITION_WORLD_SPACE1
Definition: OgreShaderParameter.h:219
Ogre::RTShader::Parameter::SPC_POSITION_LIGHT_SPACE6
Definition: OgreShaderParameter.h:100
Ogre::RTShader::Parameter::SPC_DEPTH_VIEW_SPACE
Depth in view space.
Definition: OgreShaderParameter.h:283
Ogre::RTShader::Parameter::~Parameter
virtual ~Parameter()
Class destructor.
Definition: OgreShaderParameter.h:320
Ogre::RTShader::Parameter::SPC_LIGHTPOSITION_WORLD_SPACE2
Definition: OgreShaderParameter.h:220
Ogre::RTShader::Parameter::SPC_POSTOLIGHT_VIEW_SPACE7
Definition: OgreShaderParameter.h:155
Ogre::RTShader::Parameter::SPC_LIGHTPOSITION_OBJECT_SPACE7
Definition: OgreShaderParameter.h:215
Ogre::RTShader::Parameter::mType
GpuConstantType mType
Definition: OgreShaderParameter.h:357
Ogre::RTShader::Parameter::SPC_POSTOLIGHT_OBJECT_SPACE7
Definition: OgreShaderParameter.h:135
Ogre::RTShader::Parameter::SPC_POSTOLIGHT_TANGENT_SPACE2
Definition: OgreShaderParameter.h:160
OgreGpuProgram.h
Ogre::RTShader::Parameter::SPC_LIGHTDIRECTION_WORLD_SPACE1
Definition: OgreShaderParameter.h:179
Ogre::RTShader::Parameter::SPC_LIGHTDIRECTION_WORLD_SPACE4
Definition: OgreShaderParameter.h:182
Ogre::uint16
unsigned short uint16
Definition: OgrePlatform.h:360
Ogre::RTShader::UniformParameter::mIsAutoConstantInt
bool mIsAutoConstantInt
Definition: OgreShaderParameter.h:551
Ogre::RTShader::Parameter::SPC_LIGHTPOSITION_WORLD_SPACE0
Light position in world space index 0-7.
Definition: OgreShaderParameter.h:218
Ogre::RTShader::Parameter::mIndex
int mIndex
Definition: OgreShaderParameter.h:361
Ogre::RTShader::Parameter::SPC_LIGHTDIRECTION_VIEW_SPACE3
Definition: OgreShaderParameter.h:191
Ogre::RTShader::Parameter::mSize
size_t mSize
Definition: OgreShaderParameter.h:365
Ogre::RTShader::UniformParameter::getAutoConstantRealData
Real getAutoConstantRealData() const
Get auto constant real data of this parameter, in case it is auto constant parameter.
Definition: OgreShaderParameter.h:429
Ogre::AllocatedObject
Superclass for all objects that wish to use custom memory allocators when their new / delete operator...
Definition: OgreMemoryAllocatedObject.h:58
Ogre::GpuProgramParameters
Collects together the program parameters used for a GpuProgram.
Definition: OgreGpuProgramParams.h:702
Ogre::RTShader::Parameter::SPC_LIGHTDIRECTION_TANGENT_SPACE5
Definition: OgreShaderParameter.h:203
Ogre::RTShader::Parameter::SPC_BINORMAL_WORLD_SPACE
Binormal in world space.
Definition: OgreShaderParameter.h:262
Ogre::RTShader::Parameter::setSize
void setSize(size_t size)
Sets the number of elements in the parameter (for arrays).
Definition: OgreShaderParameter.h:350
Ogre::RTShader::UniformParameter::isAutoConstantParameter
bool isAutoConstantParameter() const
Return true if this parameter is an auto constant parameter, false otherwise.
Definition: OgreShaderParameter.h:438
Ogre::RTShader::Parameter::SPC_LIGHTPOSITION_WORLD_SPACE5
Definition: OgreShaderParameter.h:223

Copyright © 2012 Torus Knot Software Ltd
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.