Mitsuba Renderer  0.5.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
mitsuba::RendererCapabilities Class Reference

Helper class, which documents the capabilities of a renderer implementation. More...

#include <mitsuba/hw/renderer.h>

+ Inheritance diagram for mitsuba::RendererCapabilities:

Public Types

enum  ECapability {
  EShadingLanguage = 0, ERenderToTexture, EBufferBlit, EFloatingPointBuffer,
  EFloatingPointTextures, EMultisampleRenderToTexture, EVertexBufferObjects, EGeometryShaders,
  ECustomTextureFiltering, ESyncObjects, EBindless, ECapabilityCount
}
 

Public Member Functions

 RendererCapabilities ()
 
void setSupported (ECapability cap, bool supported)
 
bool isSupported (ECapability cap) const
 
std::string toString () const
 Return a human-readable string representation of the object's contents. More...
 
virtual const ClassgetClass () const
 Retrieve this object's class. More...
 
- Public Member Functions inherited from Object
 Object ()
 Construct a new object. More...
 
int getRefCount () const
 Return the current reference count. More...
 
void incRef () const
 Increase the reference count of the object by one. More...
 
void decRef (bool autoDeallocate=true) const
 Decrease the reference count of the object and possibly deallocate it. More...
 

Static Public Attributes

static Classm_theClass
 
- Static Public Attributes inherited from Object
static Classm_theClass
 Pointer to the object's class descriptor. More...
 

Protected Attributes

bool m_capabilities [ECapabilityCount]
 

Additional Inherited Members

- Static Public Member Functions inherited from Object
static void staticInitialization ()
 Initializes the built-in reference count debugger (if enabled) More...
 
static void staticShutdown ()
 Free the memory taken by staticInitialization() More...
 
- Protected Member Functions inherited from Object
virtual ~Object ()
 Virtual private deconstructor. (Will only be called by ref) More...
 

Detailed Description

Helper class, which documents the capabilities of a renderer implementation.

Member Enumeration Documentation

Enumerator
EShadingLanguage 
ERenderToTexture 
EBufferBlit 
EFloatingPointBuffer 
EFloatingPointTextures 
EMultisampleRenderToTexture 
EVertexBufferObjects 
EGeometryShaders 
ECustomTextureFiltering 
ESyncObjects 
EBindless 
ECapabilityCount 

Constructor & Destructor Documentation

mitsuba::RendererCapabilities::RendererCapabilities ( )
inline

Member Function Documentation

virtual const Class* mitsuba::RendererCapabilities::getClass ( ) const
virtual

Retrieve this object's class.

Reimplemented from Object.

bool mitsuba::RendererCapabilities::isSupported ( ECapability  cap) const
inline
void mitsuba::RendererCapabilities::setSupported ( ECapability  cap,
bool  supported 
)
inline
std::string mitsuba::RendererCapabilities::toString ( ) const
virtual

Return a human-readable string representation of the object's contents.

This function is mainly useful for debugging purposes and should ideally be implemented by all subclasses. The default implementation simply returns MyObject[unknown], where MyObject is the name of the subclass.

Reimplemented from Object.

Member Data Documentation

bool mitsuba::RendererCapabilities::m_capabilities[ECapabilityCount]
protected
Class* mitsuba::RendererCapabilities::m_theClass
static

The documentation for this class was generated from the following file: