|
|
std::string_view | getName () const |
| | returns the material name
|
|
void | setName (std::string_view name) |
| | sets the material name
|
| Technique * | getTechniqueByName (std::string_view name) |
| | Returns a Technique by its name.
|
| Technique * | getTechniqueByIndex (ssize_t index) |
| | Returns a Technique by index.
|
|
Technique * | getTechnique () const |
| | Returns the Technique used by the Material.
|
|
const Vector< Technique * > & | getTechniques () const |
| | Returns the list of Techniques.
|
|
ssize_t | getTechniqueCount () const |
| | Returns the number of Techniques in the Material.
|
|
void | addTechnique (Technique *technique) |
| | Adds a Technique into the Material.
|
|
void | setTechnique (std::string_view techniqueName) |
| | Sets the current technique.
|
|
virtual Material * | clone () const |
| | returns a clone (deep-copy) of the material
|
| void | setPrimitiveType (ax::rhi::PrimitiveType primitive) |
| | Set material primitive draw type.
|
| ax::rhi::PrimitiveType | getPrimitiveType () const |
| | Get material primitive draw type.
|
| void | enableTransparentDoubleSided () |
| | Enables transparent rendering with double-sided faces.
|
| void | setTransparent (bool value) |
| | Enable material transparent rendering.
|
|
bool | isTransparent () const |
| | Is material transparent?
|
|
void | setForce2DQueue (bool value) |
| | Enable material 2D queue rendering.
|
|
bool | isForce2DQueue () const |
| | Is material in 2D render queue?
|
| void | retain () |
| | Retains the ownership.
|
| void | release () |
| | Releases the ownership immediately.
|
| Object * | autorelease () |
| | Releases the ownership sometime soon automatically.
|
| unsigned int | getReferenceCount () const |
| | Returns the Object's current reference count.
|
| uint64_t | getObjectID () const noexcept |
| | Returns the process-local diagnostic identifier assigned at construction.
|
| virtual | ~Object () |
| | Destructor.
|
| void enableTransparentDoubleSided |
( |
| ) |
|
Enables transparent rendering with double-sided faces.
This convenience method configures the material to render as transparent and disables face culling, allowing both front and back faces to be drawn. It is useful for objects such as foliage, glass, or thin surfaces where both sides should be visible.
- Note
- Internally sets transparency to true and cull face side to NONE.