|
| | StreamingTexture (ResourceData &resourceData, TExtent3< UInt32 > extent, Format format=Format::RGBA8UNorm) |
| | Creates a new empty StreamingTexture.
|
| |
| | StreamingTexture (ResourceData &resourceData, const Bitmap &bitmap) |
| | Creates a new StreamingTexture from an existing bitmap.
|
| |
| | StreamingTexture (ResourceData &resourceData, const Texture &other) |
| | Creates a new StreamingTexture by copying from another.
|
| |
| Async< Bitmap > | getBitmap (UInt32 layer=0, UInt32 mip=0) const override |
| | Gets a bitmap pixel data for the given layer and mip level.
|
| |
| Async | setBitmap (const Bitmap &bitmap, UInt32 layer=0, UInt32 mip=0) override |
| | Sets a new bitmap pixel data for the given layer and mip level.
|
| |
| Async< TexturePixelStream > | getPixelStream (UInt32 layer=0, UInt32 mip=0) const |
| | Gets a pixel stream for the given layer and mip level.
|
| |
| ResourceHandle< StreamingTexture > | getResourceHandle () const noexcept |
| | Generates a hash for the provided type.
|
| |
| SPtr< StreamingTexture > | getShared () noexcept |
| | Gets a shared pointer to the resource.
|
| |
| SPtr< const StreamingTexture > | getShared () const noexcept |
| | Gets a shared pointer to the resource.
|
| |
| const ResourceTypeInfo & | getResourceType () const noexcept override |
| | Returns the resource type information descriptor.
|
| |
| | TResource (ResourceData &data, InputStream &dataStream) |
| |
| void | serialize (OutputStream &dataStream) const override |
| | Serializes a resource by writing data to dataStream.
|
| |
| | Texture (const TextureProperties &properties) |
| | Creates a new texture.
|
| |
| | Texture (ResourceData &resourceData, const TextureProperties &properties) |
| | Creates a new texture.
|
| |
| | ~Texture () noexcept override |
| | Destroys the texture object.
|
| |
| bool | isStreaming () const noexcept |
| | Determines if the texture is a streaming texture.
|
| |
| const TextureProperties & | getProperties () const noexcept |
| | A structure that describes properties of an texture.
|
| |
| const TExtent3< UInt32 > & | getExtent () const noexcept |
| | Texture extent.
|
| |
| Format | getFormat () const noexcept |
| | Hardware texture format. By default Format::RGBA8UNorm.
|
| |
| ResourceHandle< Texture > | getResourceHandle () const noexcept |
| | Generates a hash for the provided type.
|
| |
| SPtr< Texture > | getShared () noexcept |
| | Gets a shared pointer to the resource.
|
| |
| SPtr< const Texture > | getShared () const noexcept |
| | Gets a shared pointer to the resource.
|
| |
| const ResourceTypeInfo & | getResourceType () const noexcept override |
| | Returns the resource type information descriptor.
|
| |
| | TResource (ResourceData &data, InputStream &dataStream) |
| |
| void | serialize (OutputStream &dataStream) const override |
| | Serializes a resource by writing data to dataStream.
|
| |
| | Resource () |
| | Default constructor for the Resource class.
|
| |
| | Resource (ResourceData &data) |
| | Creates a new Resource instance by passing a ResourceData instance.
|
| |
| virtual | ~Resource () noexcept=default |
| | Resource virtual destructor.
|
| |
| ResourceManager * | getResourceManager () const noexcept |
| |
| HResource | getResourceHandle () const noexcept |
| | Generates a hash for the provided type.
|
| |
| UUID | getResourceID () const noexcept |
| |
| HResource | getParentResource () const noexcept |
| | A parent resource to which this resource is attached to.
|
| |
| SPtr< ResourceMetadata > | getResourceMetadata () const noexcept |
| | A pointer to the user-defined resource metadata.
|
| |
| const PackagePtr & | getPackage () const noexcept |
| | The package from which the resource was loaded from.
|
| |
| template<typename T = Resource> |
| SPtr< T > | getShared () noexcept |
| | Gets a shared pointer to the resource.
|
| |
| template<typename T = Resource> |
| SPtr< const T > | getShared () const noexcept |
| | Gets a shared pointer to the resource.
|
| |
| | Resource (ResourceData &data, InputStream &dataStream) |
| | Creates a new resource by reading data from dataStream.
|
| |
| virtual | ~IReflectable () noexcept=default |
| |
A texture type that is backed by streamable mip and layer data.