Textures add image processing options to images. More...
Public Member Functions | |
Methods related to the referenced image | |
virtual Sint32 | set_image (const char *name)=0 |
Sets the referenced image. More... | |
virtual const char * | get_image () const =0 |
Returns the referenced image. More... | |
Methods related to the gamma value | |
virtual void | set_gamma (Float32 gamma)=0 |
Sets the gamma value of this texture. More... | |
virtual Float32 | get_gamma () const =0 |
Returns the gamma value of this texture. More... | |
virtual Float32 | get_effective_gamma (Uint32 uvtile_id=0) const =0 |
Returns the effective gamma value. More... | |
Miscellaneous methods | |
virtual void | set_compression (Texture_compression compression)=0 |
Sets the texture compression method. More... | |
virtual Texture_compression | get_compression () const =0 |
Returns the texture compression method. More... | |
Additional Inherited Members | |
![]() | |
typedef Interface_declare< id1, id2, id3, id4, id5, id6, id7, id8, id9, id10, id11, neuraylib::IScene_element > | Self |
Own type. More... | |
typedef Uuid_t< id1, id2, id3, id4, id5, id6, id7, id8, id9, id10, id11 > | IID |
Declares the interface ID (IID) of this interface. More... | |
![]() | |
static bool | compare_iid (const Uuid &iid) |
Compares the interface ID iid against the interface ID of this interface and of its ancestors. More... | |
Textures add image processing options to images.
A texture appears in the scene as an argument of an MDL function call (see mi::neuraylib::IFunction_call) or default argument of an MDL function definition (see mi::neuraylib::IFunction_definition). The type of such an argument is mi::neuraylib::IType_texture or an alias of it.
|
pure virtual |
Returns the texture compression method.
|
pure virtual |
Returns the effective gamma value.
uvtile_id | The id of the uvtile of the texture the gamma value is requested for when no override is set. |
Returns the gamma value of this texture, unless no override is set. In this case the gamma value of the underlying image at the given uvtile index is returned. If no such image exists 0.0 is returned.
|
pure virtual |
Returns the gamma value of this texture.
The gamma value of the texture is an override for the gamma value of the underlying image. The special value 0.0 means that the override is not set.
|
pure virtual |
Returns the referenced image.
NULL
if no image is referenced.
|
pure virtual |
Sets the texture compression method.
|
pure virtual |
Sets the gamma value of this texture.
The gamma value of the texture is an override for the gamma value of the underlying image. The special value 0.0 means that the override is not set.
|
pure virtual |
Sets the referenced image.
NULL
pointer).