![]() |
Murl Engine API
Version 2018.3
|
The IAtlas resource object interface. More...
#include <murl_resource_i_atlas.h>
The IAtlas resource object interface.
An atlas resource contains a number of structures, each storing both a coordinate and a corresponding texture coordinate rectangle, which define the actual size of e.g. a plane on screen together with its corresponding sub-region of a texture. Note that there is no texture image actually stored within the atlas resource. When using the atlas for rendering, a corresponding Resource::IImage must be used for a separate texture to produce the correct output.
Classes | |
struct | Iff |
IFF file specific structs. More... | |
struct | Raw |
Raw data structs. More... | |
Public Member Functions | |
virtual IObject * | GetObjectInterface ()=0 |
Get the mutable Resource::IObject interface. More... | |
virtual const IObject * | GetObjectInterface () const =0 |
Get the constant Resource::IObject interface. More... | |
virtual UInt32 | GetTextureSizeX () const =0 |
Get the atlas' horizontal texture reference size, or 0 if undefined. More... | |
virtual UInt32 | GetTextureSizeY () const =0 |
Get the atlas' vertical texture reference size, or 0 if undefined. More... | |
virtual UInt32 | GetNumberOfRectangles () const =0 |
Get the total number of rectangles stored in this resource. More... | |
virtual SInt32 | GetRectangleIndex (const Char *rectangleName) const =0 |
Get the index of a rectangle with a given name. More... | |
virtual const Char * | GetRectangleName (UInt32 rectangleIndex) const =0 |
Get the name of a rectangle at a given index. More... | |
virtual const IRectangle * | GetRectangle (UInt32 rectangleIndex) const =0 |
Get the rectangle at a given index. More... | |
virtual SInt32 | GetRectangleMaterialSlot (UInt32 rectangleIndex) const =0 |
Get the material slot of a rectangle at a given index. More... | |
virtual SInt32 | GetRectangleParametersSlot (UInt32 rectangleIndex) const =0 |
Get the parameters slot of a rectangle at a given index. More... | |
virtual SInt32 | GetRectangleTextureSlot (UInt32 rectangleIndex) const =0 |
Get the texture slot of a rectangle at a given index. More... | |
virtual UInt32 | GetRectangleTextureSizeX (UInt32 rectangleIndex) const =0 |
Get the horizontal texture reference size for a given rectangle. More... | |
virtual UInt32 | GetRectangleTextureSizeY (UInt32 rectangleIndex) const =0 |
Get the vertical texture reference size for a given rectangle. More... | |
|
pure virtual |
Get the mutable Resource::IObject interface.
|
pure virtual |
Get the constant Resource::IObject interface.
|
pure virtual |
Get the atlas' horizontal texture reference size, or 0 if undefined.
|
pure virtual |
Get the atlas' vertical texture reference size, or 0 if undefined.
|
pure virtual |
Get the total number of rectangles stored in this resource.
|
pure virtual |
Get the index of a rectangle with a given name.
rectangleName | The name of the rectangle to query. |
|
pure virtual |
Get the name of a rectangle at a given index.
rectangleIndex | The zero-based index of the rectangle, in the range from 0 to GetNumberOfRectangles()-1. |
|
pure virtual |
Get the rectangle at a given index.
rectangleIndex | The index in the range from 0 to GetNumberOfRectangles()-1. |
|
pure virtual |
Get the material slot of a rectangle at a given index.
rectangleIndex | The index in the range from 0 to GetNumberOfRectangles()-1. |
|
pure virtual |
Get the parameters slot of a rectangle at a given index.
rectangleIndex | The index in the range from 0 to GetNumberOfRectangles()-1. |
|
pure virtual |
Get the texture slot of a rectangle at a given index.
rectangleIndex | The index in the range from 0 to GetNumberOfRectangles()-1. |
|
pure virtual |
Get the horizontal texture reference size for a given rectangle.
rectangleIndex | The index in the range from 0 to GetNumberOfRectangles()-1. |
|
pure virtual |
Get the vertical texture reference size for a given rectangle.
rectangleIndex | The index in the range from 0 to GetNumberOfRectangles()-1. |