#include <SimplygonSDK.h>
ITextureTable keeps information on textures used while rendering.
Definition at line 15550 of file SimplygonSDK.h.
◆ AddTexture()
virtual rid SimplygonSDK::ITextureTable::AddTexture |
( |
ITexture * |
texture | ) |
|
|
pure virtual |
Adds a texture to the table. The returned value is the id of the texture within the table.
- Parameters
-
texture | the texture to add into the table |
- Returns
- the texture id of the texture in the table
◆ ChangeTexturePrefixPath()
virtual void SimplygonSDK::ITextureTable::ChangeTexturePrefixPath |
( |
const char * |
current_path_prefix, |
|
|
const char * |
new_path_prefix |
|
) |
| |
|
pure virtual |
Changes the prefix path (drive, directory) of all matching texture paths in all the textures in the table, with the new one. This method is useful when external textures are placed in a specific folder, which needs to be moved
- Parameters
-
current_path_prefix | the current prefix path, either relative or absolute |
new_path_prefix | the new prefix path |
◆ FindTexture()
Finds a texture in the table, using the texture name. If multiple textures have the same name, the first will be returned. If the texture was not found, the return will be NULL.
- Parameters
-
name | the texture name to look for |
- Returns
- the texture, if found, NULL otherwise
◆ FindTextureId()
virtual rid SimplygonSDK::ITextureTable::FindTextureId |
( |
const char * |
name | ) |
|
|
pure virtual |
Finds the id of a texture in the table, using the texture name. If multiple textures have the same name, the first will be returned. If the texture was not found, the return will be -1.
- Parameters
-
name | the texture name to look for |
- Returns
- the texture id if found, -1 otherwise
◆ FindTextureUsingPath()
Finds a texture in the table, using the texture path. If multiple textures have the same path, the first will be returned. If the texture was not found, the return will be NULL.
- Parameters
-
- Returns
- the texture, if found, NULL otherwise
◆ GetClass()
virtual const char* SimplygonSDK::ITextureTable::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::ITable.
◆ GetTexture()
Returns the i:th texture, using the id of the texture
- Parameters
-
id | the id of the texture in the table |
- Returns
- the the texture in the table
◆ GetTexturesCount()
virtual unsigned int SimplygonSDK::ITextureTable::GetTexturesCount |
( |
| ) |
|
|
pure virtual |
Returns the number of textures in the table
◆ IsA()
virtual bool SimplygonSDK::ITextureTable::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::ITable.
◆ IsClassA()
static bool SimplygonSDK::ITextureTable::IsClassA |
( |
const char * |
type | ) |
|
|
inlinestatic |
The IsClassA function returns true if ITextureTable 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 15571 of file SimplygonSDK.h.
◆ RemoveTexture()
virtual void SimplygonSDK::ITextureTable::RemoveTexture |
( |
rid |
id | ) |
|
|
pure virtual |
Removes a texture. If GetTexture is called with the texture id, the value returned will be NULL.
- Parameters
-
id | the id of the texture in the table |
◆ SafeCast()
SafeCast makes sure the pointer is of a class that can be cast into a ITextureTable pointer, and if this is possible, returns the cast pointer.
- Parameters
-
- Returns
- a pointer to the ITextureTable object, if the cast can be made, and a NULL pointer otherwise
Definition at line 15584 of file SimplygonSDK.h.
◆ SetTexture()
virtual void SimplygonSDK::ITextureTable::SetTexture |
( |
rid |
id, |
|
|
ITexture * |
texture |
|
) |
| |
|
pure virtual |
Sets a texture in the table.
- Parameters
-
id | the id of the texture in the table |
texture | the texture to set into the table |
The documentation for this class was generated from the following file: