#include <SimplygonSDK.h>
ITextureNode describes a texture source node in a shading network.
Definition at line 16127 of file SimplygonSDK.h.
◆ GetClass()
virtual const char* SimplygonSDK::IShadingTextureNode::GetClass |
( |
| ) |
|
|
virtual |
GetClass returns the name of the class of the object.
- Returns
- the name of the actual class of the object, as a const char string
Reimplemented from SimplygonSDK::IShadingNode.
◆ GetOffsetU()
virtual real SimplygonSDK::IShadingTextureNode::GetOffsetU |
( |
| ) |
|
|
pure virtual |
Gets the OffsetU value, which is will be added to the U-coordinate when sampling
- Returns
- the current value
◆ GetOffsetV()
virtual real SimplygonSDK::IShadingTextureNode::GetOffsetV |
( |
| ) |
|
|
pure virtual |
Gets the OffsetV value, which is will be added to the U-coordinate when sampling
- Returns
- the current value
◆ GetTextureLevel()
virtual int SimplygonSDK::IShadingTextureNode::GetTextureLevel |
( |
| ) |
|
|
pure virtual |
Set the texture texture coordinate level. The texture level is used during casting if the TextureLevelName has not been set. Setting the TextureLevelName is still required for generating shader code.
- Returns
- the current texture level
◆ GetTextureLevelName()
virtual rstring SimplygonSDK::IShadingTextureNode::GetTextureLevelName |
( |
| ) |
|
|
pure virtual |
Get the name of the texture coordinate level. If not set, the material uses the texture level (index) instead. The TextureLevelName is required when generating shader data.
- Returns
- the current texture level name
◆ GetTextureName()
virtual rstring SimplygonSDK::IShadingTextureNode::GetTextureName |
( |
| ) |
|
|
pure virtual |
Gets the path of the texture file for casting. If both this and texture image is set, the casting uses the texture image.
- Returns
- the path the texture will be read from.
◆ GetTextureWrapMode()
virtual int SimplygonSDK::IShadingTextureNode::GetTextureWrapMode |
( |
| ) |
|
|
pure virtual |
Gets the Texture Wrap Mode, which determines what happens to texture samples outside the 0-1 range
- Returns
- the current SG_TEXTUREWRAPMODE_[...] value
◆ GetTileU()
virtual real SimplygonSDK::IShadingTextureNode::GetTileU |
( |
| ) |
|
|
pure virtual |
Gets the TileU value, which is multiplied into the U-coordinate when sampling
- Returns
- the current value
◆ GetTileV()
virtual real SimplygonSDK::IShadingTextureNode::GetTileV |
( |
| ) |
|
|
pure virtual |
Gets the TileV value, which is multiplied into the U-coordinate when sampling
- Returns
- the current value
◆ GetUseSRGB()
virtual bool SimplygonSDK::IShadingTextureNode::GetUseSRGB |
( |
| ) |
|
|
pure virtual |
Gets the use of sRGB when decoding the texture into an RGBA value
◆ IsA()
virtual bool SimplygonSDK::IShadingTextureNode::IsA |
( |
const char * |
type | ) |
const |
|
virtual |
The IsA function returns true if the object is a or is a descendant of the class named as the type parameter
- Parameters
-
type | is the name of the class to check if the object is, or is a descendant of |
- Returns
- true if the object is of the specified class, false if not
Reimplemented from SimplygonSDK::IShadingNode.
◆ IsClassA()
static bool SimplygonSDK::IShadingTextureNode::IsClassA |
( |
const char * |
type | ) |
|
|
inlinestatic |
The IsClassA function returns true if IShadingTextureNode is a or is a descendant of the class named as the type parameter
- Parameters
-
type | is the name of the class to check if the class is, or is a descendant of |
- Returns
- true if the class is of the specified class, false if not
Definition at line 16148 of file SimplygonSDK.h.
◆ SafeCast()
SafeCast makes sure the pointer is of a class that can be cast into a IShadingTextureNode pointer, and if this is possible, returns the cast pointer.
- Parameters
-
- Returns
- a pointer to the IShadingTextureNode object, if the cast can be made, and a NULL pointer otherwise
Definition at line 16161 of file SimplygonSDK.h.
◆ SetOffsetU()
virtual void SimplygonSDK::IShadingTextureNode::SetOffsetU |
( |
real |
value | ) |
|
|
pure virtual |
Sets the OffsetU value, which is will be added to the U-coordinate when sampling
- Parameters
-
◆ SetOffsetV()
virtual void SimplygonSDK::IShadingTextureNode::SetOffsetV |
( |
real |
value | ) |
|
|
pure virtual |
Sets the OffsetV value, which is will be added to the V-coordinate when sampling
- Parameters
-
◆ SetTextureLevel()
virtual void SimplygonSDK::IShadingTextureNode::SetTextureLevel |
( |
int |
value | ) |
|
|
pure virtual |
Set the texture texture coordinate level. The texture level is used during casting if the TextureLevelName has not been set. Setting the TextureLevelName is still required for generating shader code.
- Parameters
-
value | the desired texture level |
◆ SetTextureLevelName()
virtual void SimplygonSDK::IShadingTextureNode::SetTextureLevelName |
( |
const char * |
value | ) |
|
|
pure virtual |
Set the name of the texture coordinate level. If not set, the material uses the texture level (index) instead. The TextureLevelName is required when generating shader data.
- Parameters
-
value | the desired texture level name. |
◆ SetTextureName()
virtual void SimplygonSDK::IShadingTextureNode::SetTextureName |
( |
const char * |
value | ) |
|
|
pure virtual |
Sets the path of the texture file for casting. If both this and texture image is set, the casting uses the texture image.
- Parameters
-
value | is the path the texture will be read from. |
◆ SetTextureWrapMode()
virtual void SimplygonSDK::IShadingTextureNode::SetTextureWrapMode |
( |
int |
value | ) |
|
|
pure virtual |
Sets the Texture Wrap Mode, which determines what happens to texture samples outside the 0-1 range
- Parameters
-
value | is the new SG_TEXTUREWRAPMODE_[...] value |
◆ SetTileU()
virtual void SimplygonSDK::IShadingTextureNode::SetTileU |
( |
real |
value | ) |
|
|
pure virtual |
Sets the TileU value, which is multiplied into the U-coordinate when sampling
- Parameters
-
◆ SetTileV()
virtual void SimplygonSDK::IShadingTextureNode::SetTileV |
( |
real |
value | ) |
|
|
pure virtual |
Sets the TileV value, which is multiplied into the U-coordinate when sampling
- Parameters
-
◆ SetUseSRGB()
virtual void SimplygonSDK::IShadingTextureNode::SetUseSRGB |
( |
bool |
value | ) |
|
|
pure virtual |
Sets the use of sRGB when decoding the texture into an RGBA value
- Parameters
-
value | is the flag to use sRGB. |
The documentation for this class was generated from the following file: