Class Texture

Textures represent images that can be applied to geometry.

Textures are immutable, shared resources, loaded through the RenderingConnection. Attempting to load the same texture twice, will return the same object.

To apply a texture to geometry, set it on a Material and assign the material to a Mesh. Textures can also be used in the SkyReflectionSettings.

class Microsoft::Azure::RemoteRendering::Texture final : public Microsoft::Azure::RemoteRendering::ResourceBase

Properties

Name

Returns the name of the texture.

auto GetName(std::string & out) const noexcept -> void;

Type

The exact type of this resource.

auto GetType() const noexcept -> Microsoft::Azure::RemoteRendering::ObjectType;

Valid

Whether this resource is still valid.

A resource is invalid if it has been destroyed or if the connection has been lost. It is an error to call any other function on an invalid object.

auto GetValid() const noexcept -> bool;

See also