![]() |
RAMSES Documentation
27.0.130
Information for RAMSES users and developers
|
The TextureSampler holds a texture and its sampling parameters. More...
#include <TextureSampler.h>
Public Member Functions | |
ETextureAddressMode | getWrapUMode () const |
Gets the texture wrap mode for the u axis. More... | |
ETextureAddressMode | getWrapVMode () const |
Gets the texture wrap mode for the v axis. More... | |
ETextureAddressMode | getWrapRMode () const |
Gets the texture wrap mode for the r axis. More... | |
ETextureSamplingMethod | getMinSamplingMethod () const |
Gets the texture min sampling method. More... | |
ETextureSamplingMethod | getMagSamplingMethod () const |
Gets the texture mag sampling method. More... | |
uint32_t | getAnisotropyLevel () const |
Gets the texture sampling anisotropy level. More... | |
ERamsesObjectType | getTextureType () const |
Gets the type of the texture. More... | |
status_t | setTextureData (const Texture2D &dataSource) |
Replaces current texture content source with a new one. Texture data can be changed from/to any type/format with these exceptions: More... | |
status_t | setTextureData (const Texture3D &dataSource) |
Replaces current texture content source with a new one. Texture data can be changed from/to any type/format with these exceptions: More... | |
status_t | setTextureData (const TextureCube &dataSource) |
Replaces current texture content source with a new one. Texture data can be changed from/to any type/format with these exceptions: More... | |
status_t | setTextureData (const Texture2DBuffer &dataSource) |
Replaces current texture content source with a new one. Texture data can be changed from/to any type/format with these exceptions: More... | |
status_t | setTextureData (const RenderBuffer &dataSource) |
Replaces current texture content source with a new one. Texture data can be changed from/to any type/format with these exceptions: More... | |
status_t | setTextureData (const StreamTexture &dataSource) |
Replaces current texture content source with a new one. Texture data can be changed from/to any type/format with these exceptions: More... | |
![]() | |
sceneObjectId_t | getSceneObjectId () const |
Returns scene object id which is automatically assigned at creation time of object and is unique within scope of one scene. More... | |
sceneId_t | getSceneId () const |
Returns sceneid to which this object belongs to. More... | |
![]() | |
const char * | getName () const |
Returns the name of the object. More... | |
status_t | setName (const char *name) |
Changes the name of the object. More... | |
ERamsesObjectType | getType () const |
Gets type of the object. More... | |
bool | isOfType (ERamsesObjectType type) const |
Checks if the object is of given type. More... | |
![]() | |
status_t | validate () const |
Generates verbose validation of the object. More... | |
const char * | getValidationReport (EValidationSeverity minSeverity=EValidationSeverity_Info) const |
Provides verbose report in human readable form generated by validate. More... | |
const char * | getStatusMessage (status_t status) const |
Get the string description for a status provided by a RAMSES API function. More... | |
StatusObject (const StatusObject &other)=delete | |
Deleted copy constructor. More... | |
StatusObject & | operator= (const StatusObject &other)=delete |
Deleted copy assignment. More... | |
Public Attributes | |
class TextureSamplerImpl & | impl |
![]() | |
class SceneObjectImpl & | impl |
![]() | |
class ClientObjectImpl & | impl |
![]() | |
class RamsesObjectImpl & | impl |
![]() | |
class StatusObjectImpl & | impl |
Protected Member Functions | |
TextureSampler (TextureSamplerImpl &pimpl) | |
Constructor for TextureSampler. More... | |
virtual | ~TextureSampler () |
Destructor of the TextureSampler. More... | |
![]() | |
SceneObject (SceneObjectImpl &pimpl) | |
Constructor for SceneObject. More... | |
virtual | ~SceneObject () |
Destructor of the SceneObject. More... | |
![]() | |
ClientObject (ClientObjectImpl &pimpl) | |
Constructor for ClientObject. More... | |
virtual | ~ClientObject () |
Destructor of the ClientObject. More... | |
![]() | |
RamsesObject (RamsesObjectImpl &pimpl) | |
Constructor for RamsesObject. More... | |
virtual | ~RamsesObject () |
Destructor of the RamsesObject. More... | |
![]() | |
StatusObject (StatusObjectImpl &pimpl) | |
Constructor for StatusObject. More... | |
virtual | ~StatusObject () |
Destructor of the StatusObject. More... | |
Friends | |
class | SceneImpl |
Scene is the factory for creating TextureSampler instances. More... | |
The TextureSampler holds a texture and its sampling parameters.
|
explicitprotected |
Constructor for TextureSampler.
[in] | pimpl | Internal data for implementation specifics of TextureSampler (sink - instance becomes owner) |
|
protectedvirtual |
Destructor of the TextureSampler.
uint32_t ramses::TextureSampler::getAnisotropyLevel | ( | ) | const |
Gets the texture sampling anisotropy level.
ETextureSamplingMethod ramses::TextureSampler::getMagSamplingMethod | ( | ) | const |
Gets the texture mag sampling method.
ETextureSamplingMethod ramses::TextureSampler::getMinSamplingMethod | ( | ) | const |
Gets the texture min sampling method.
ERamsesObjectType ramses::TextureSampler::getTextureType | ( | ) | const |
Gets the type of the texture.
ETextureAddressMode ramses::TextureSampler::getWrapRMode | ( | ) | const |
Gets the texture wrap mode for the r axis.
ETextureAddressMode ramses::TextureSampler::getWrapUMode | ( | ) | const |
Gets the texture wrap mode for the u axis.
ETextureAddressMode ramses::TextureSampler::getWrapVMode | ( | ) | const |
Gets the texture wrap mode for the v axis.
status_t ramses::TextureSampler::setTextureData | ( | const RenderBuffer & | dataSource | ) |
Replaces current texture content source with a new one. Texture data can be changed from/to any type/format with these exceptions:
status_t ramses::TextureSampler::setTextureData | ( | const StreamTexture & | dataSource | ) |
Replaces current texture content source with a new one. Texture data can be changed from/to any type/format with these exceptions:
Replaces current texture content source with a new one. Texture data can be changed from/to any type/format with these exceptions:
[in] | dataSource | Texture data source to be used with this sampler. |
status_t ramses::TextureSampler::setTextureData | ( | const Texture2DBuffer & | dataSource | ) |
Replaces current texture content source with a new one. Texture data can be changed from/to any type/format with these exceptions:
Replaces current texture content source with a new one. Texture data can be changed from/to any type/format with these exceptions:
status_t ramses::TextureSampler::setTextureData | ( | const TextureCube & | dataSource | ) |
Replaces current texture content source with a new one. Texture data can be changed from/to any type/format with these exceptions:
|
friend |
Scene is the factory for creating TextureSampler instances.
class TextureSamplerImpl& ramses::TextureSampler::impl |
Stores internal data for implementation specifics of TextureSampler.