#include <shader_framebuffer.h>
Public Member Functions | |
virtual bool | set (const char *buffer, const char *param, const bool value)=0 |
set a boolean attribute for a framebuffer | |
virtual bool | set (const char *buffer, const char *param, const float value)=0 |
set a float attribute for a framebuffer | |
virtual bool | set (const char *buffer, const char *param, const int value)=0 |
set an integer attribute for a framebuffer | |
virtual bool | set (const char *buffer, const char *param, const char *value)=0 |
set an integer attribute for a framebuffer | |
virtual bool | get (const char *buffer, const char *param, bool &value) const =0 |
get a boolean attribute for a framebuffer | |
virtual bool | get (const char *buffer, const char *param, float &value) const =0 |
get a float attribute for a framebuffer | |
virtual bool | get (const char *buffer, const char *param, int &value) const =0 |
get an integer attribute for a framebuffer | |
virtual bool | get (const char *buffer, const char *param, const char *&value) const =0 |
get a string attribute for a framebuffer | |
virtual bool | get_index (const char *buffer, size_t &index) const =0 |
get an index of the framebuffer to be used in mi_fb_put and mi_fb_get functions. | |
virtual bool | reset ()=0 |
removes all named buffers. It is not legal to call this method during the rendering process. | |
virtual void | echo (FILE *) const =0 |
echoes mi syntax for the framebuffer to the file pointer. | |
virtual bool | get_buffercount (size_t &buffercount) const =0 |
get the count of buffers defined. | |
virtual bool | get_buffername (size_t num, const char *&name) const =0 |
get the name of buffer num. Note that num is not related to the index returned by get_index | |
virtual bool | remove (const char *buffer)=0 |
removes the named buffer. It is not legal to call this method during the rendering process. |
The Framebuffer class is a collection of framebuffers used for a frame rendering. It provide an interface to the named framebuffer attributes. It also allows to retrieve the index of the buffer to use it with mi_fb_put
and mi_fb_get
functions.
All strings are const char. Strings passsed in are copied, and need to be freed by the user. Strings passed out should be copied by the user, since they reference internal data.
|
get a string attribute for a framebuffer
|
|
get an integer attribute for a framebuffer
|
|
get a float attribute for a framebuffer
|
|
get a boolean attribute for a framebuffer
|
|
get the count of buffers defined.
|
|
get the name of buffer num. Note that num is not related to the index returned by
|
|
get an index of the framebuffer to be used in
|
|
removes the named buffer. It is not legal to call this method during the rendering process.
|
|
removes all named buffers. It is not legal to call this method during the rendering process.
|
|
set an integer attribute for a framebuffer
|
|
set an integer attribute for a framebuffer
|
|
set a float attribute for a framebuffer
|
|
set a boolean attribute for a framebuffer
|
Copyright © 1986-2009 by
mental images GmbH