#include <SimplygonSDK.h>
IMaterial keeps information on materials used while rendering. 
Definition at line 15458 of file SimplygonSDK.h.
 
◆ ChangeTexturePrefixPath()
  
  
      
        
          | virtual void SimplygonSDK::ITexture::ChangeTexturePrefixPath  | 
          ( | 
          const char *  | 
          current_path_prefix,  | 
         
        
           | 
           | 
          const char *  | 
          new_path_prefix  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
pure virtual   | 
  
 
Changes the prefix path (drive, directory) in the texture, with the new one, if the current path matches the current_path_prefix. 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  | 
  
   
 
 
◆ GetClass()
  
  
      
        
          | virtual const char* SimplygonSDK::ITexture::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::IObject.
 
 
◆ GetFilePath()
  
  
      
        
          | virtual rstring SimplygonSDK::ITexture::GetFilePath  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
pure virtual   | 
  
 
Get the file path of the texture. 
- Returns
 - the texture file name 
 
 
 
◆ GetImageData()
Get a named texture image data. If this is defined, it will be used instead of the texture file defined in SetFilePath() 
- Returns
 - the texture object 
 
 
 
◆ IsA()
  
  
      
        
          | virtual bool SimplygonSDK::ITexture::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::IObject.
 
 
◆ IsClassA()
  
  
      
        
          | static bool SimplygonSDK::ITexture::IsClassA  | 
          ( | 
          const char *  | 
          type | ) | 
           | 
         
       
   | 
  
inlinestatic   | 
  
 
The IsClassA function returns true if ITexture 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 15479 of file SimplygonSDK.h.
 
 
◆ SafeCast()
SafeCast makes sure the pointer is of a class that can be cast into a ITexture pointer, and if this is possible, returns the cast pointer. 
- Parameters
 - 
  
    | ptr | is the pointer to be cast into a ITexture pointer  | 
  
   
- Returns
 - a pointer to the ITexture object, if the cast can be made, and a NULL pointer otherwise 
 
Definition at line 15492 of file SimplygonSDK.h.
 
 
◆ SetFilePath()
  
  
      
        
          | virtual void SimplygonSDK::ITexture::SetFilePath  | 
          ( | 
          const char *  | 
          value | ) | 
           | 
         
       
   | 
  
pure virtual   | 
  
 
Set the file path of the texture. 
- Parameters
 - 
  
    | value | is the path to the texture file  | 
  
   
 
 
◆ SetImageData()
  
  
      
        
          | virtual void SimplygonSDK::ITexture::SetImageData  | 
          ( | 
          IImageData *  | 
          value | ) | 
           | 
         
       
   | 
  
pure virtual   | 
  
 
Set a named texture image data. If this is defined, it will be used instead of the texture file defined in SetFilePath() 
- Parameters
 - 
  
    | value | is the image data object containing the texture data  | 
  
   
 
 
The documentation for this class was generated from the following file: