Ocean
|
This class is the base class for all bitmap framebuffers. More...
Public Member Functions | |
bool | initialize (const FramebufferRef &shareFramebuffer=FramebufferRef()) override |
Initializes the framebuffer. More... | |
FramebufferType | framebufferType () const override |
Returns the type of this framebuffer. More... | |
ObjectType | type () const override |
Returns the type of this object. More... | |
Public Member Functions inherited from Ocean::Rendering::Framebuffer | |
virtual const Scenes & | scenes () const |
Returns the scene connected with this framebuffer. More... | |
virtual const ViewRef & | view () const |
Returns the view connected with this framebuffer. More... | |
virtual void | viewport (unsigned int &left, unsigned int &top, unsigned int &width, unsigned int &height) const |
Returns the viewport of this framebuffer. More... | |
virtual FaceMode | faceMode () const |
Returns the global face mode of the entire framebuffer. More... | |
virtual CullingMode | cullingMode () const |
Returns the global face culling mode of the entire framebuffer. More... | |
virtual LightingMode | lightingMode () const |
Returns the global lighting mode of the entire framebuffer. More... | |
virtual RenderTechnique | renderTechnique () const |
Returns the render technique of the entire framebuffer. More... | |
virtual bool | isQuadbufferedStereoSupported () const |
Returns whether the framebuffer supports quad-buffered stereo views. More... | |
virtual bool | isAntialiasingSupported (const unsigned int buffers) const |
Returns whether the framebuffer supports hardware anti-aliasing. More... | |
virtual bool | isAntialiasing () const |
Returns whether the framebuffer uses hardware anti-aliasing. More... | |
virtual ShadowTechnique | shadowTechnique () const |
Returns the shadow technique of the entire framebuffer. More... | |
virtual HomogenousMatrix4 | device_T_display () const |
Returns the transformation between display and device. More... | |
virtual bool | verticalSynchronization () const |
Returns whether the framebuffer is synchronized with the vertical sync signal of the display device. More... | |
virtual std::string | extensions () const |
Returns all supported extensions of this framebuffer. More... | |
virtual bool | hasExtension (const std::string &extension) const |
Returns whether the framebuffer and thus e.g. More... | |
virtual void | addScene (const SceneRef &scene) |
Adds a new scene to the framebuffer. More... | |
virtual void | removeScene (const SceneRef &scene) |
Removes a scene from the framebuffer. More... | |
virtual void | clearScenes () |
Clears all scenes registered at the framebuffer. More... | |
virtual void | setView (const ViewRef &view) |
Connects a view with this framebuffer. More... | |
virtual void | setViewport (const unsigned int left, const unsigned int top, const unsigned int width, const unsigned int height) |
Sets the viewport of this framebuffer. More... | |
virtual void | setPreferredPixelFormat (const FrameType::PixelFormat pixelFormat) |
Sets the preferred pixel format of this framebuffer. More... | |
virtual void | setFaceMode (const FaceMode faceMode) |
Sets the global face mode of the entire framebuffer. More... | |
virtual void | setCullingMode (const CullingMode cullingMode) |
Sets the global culling mode of the entire framebuffer. More... | |
virtual void | setLightingMode (const LightingMode lightingMode) |
Sets the global lighting mode of the entire framebuffer. More... | |
virtual void | setRenderTechnique (const RenderTechnique technique) |
Sets the rendering technique of the entire framebuffer. More... | |
virtual bool | setSupportQuadbufferedStereo (const bool enable) |
Sets whether this framebuffer will support quad-buffered stereo views. More... | |
virtual bool | setSupportAntialiasing (const unsigned int buffers) |
Sets whether this framebuffer will support hardware anti-aliasing. More... | |
virtual bool | setAntialiasing (const bool antialiasing) |
Sets whether the framebuffer uses hardware anti-aliasing. More... | |
virtual void | setShadowTechnique (const ShadowTechnique technique) |
Sets the shadow technique of the entire framebuffer. More... | |
virtual bool | setDevice_T_display (const HomogenousMatrix4 &device_T_display) |
Sets the transformation between display and device. More... | |
virtual void | setVerticalSynchronization (const bool synchronize) |
Sets whether the framebuffer will is synchronized with the vertical sync signal of the display device. More... | |
void | setPreRenderCallback (const RenderCallback &renderCallback) |
Sets an optional callback function for pre-render events. More... | |
void | setPostRenderCallback (const RenderCallback &renderCallback) |
Sets an optional callback function for pre-render events. More... | |
virtual void | render () |
Renders the next frame into the framebuffer. More... | |
virtual bool | render (Frame &frame, Frame *depthFrame=nullptr) |
Renders the next frame and copies the image content into to a given frame. More... | |
virtual bool | intersection (const Line3 &ray, RenderableRef &renderable, Vector3 &position) |
Returns the renderable object intersected by a given ray. More... | |
virtual void | makeCurrent () |
Makes this framebuffer to the current one. More... | |
virtual void | makeNoncurrent () |
Makes this framebuffer to non current. More... | |
virtual bool | linearizeDepthFrame (Frame &depthFrame, const Scalar nearDistance, const Scalar farDistance) const |
Linearizes a given z-buffer depth frame with non-linear (e.g., logarithmic) depth. More... | |
ObjectType | type () const override |
Returns the type of this object. More... | |
Lock & | lock () const |
Returns the lock object of this engine. More... | |
Public Member Functions inherited from Ocean::Rendering::Object | |
ObjectId | id () const |
Returns the unique object id of this object. More... | |
const std::string & | name () const |
Returns the name of this object. More... | |
virtual void | setName (const std::string &name) |
Sets or changes the name of this object. More... | |
virtual const std::string & | engineName () const =0 |
Returns the name of the owner engine. More... | |
ObjectRefs | parentObjects () const |
Returns all parent objects. More... | |
ObjectRefSet | parentNodes () const |
Returns all parent nodes. More... | |
virtual std::string | descriptiveInformation () const |
Returns descriptive information about the object as string. More... | |
Protected Member Functions | |
BitmapFramebuffer () | |
Creates a new bitmap framebuffer. More... | |
~BitmapFramebuffer () override | |
Destructs a bitmap framebuffer. More... | |
Protected Member Functions inherited from Ocean::Rendering::Framebuffer | |
Framebuffer () | |
Creates a new framebuffer. More... | |
~Framebuffer () override | |
Destructs a framebuffer. More... | |
virtual void | release () |
Releases the framebuffer. More... | |
Protected Member Functions inherited from Ocean::Rendering::Object | |
Object () | |
Creates a new object. More... | |
Object (const Object &object)=delete | |
Disabled copy constructor. More... | |
virtual | ~Object () |
Destructs an object. More... | |
Engine & | engine () const |
Returns the render engine which is owner of this object. More... | |
void | registerParent (const ObjectId parentId) |
Registers a parent node for this (child) node. More... | |
void | unregisterParent (const ObjectId parentId) |
Unregisters a parent node for this (child) node. More... | |
void | registerThisObjectAsParent (const ObjectRef &child) |
Registers this object at a child as parent object. More... | |
void | unregisterThisObjectAsParent (const ObjectRef &child) |
Unregisters this object from a child as parent. More... | |
Object & | operator= (const Object &object)=delete |
Disabled copy operator. More... | |
This class is the base class for all bitmap framebuffers.
The framebuffer must be initialized before usage.
|
protected |
Creates a new bitmap framebuffer.
|
overrideprotected |
Destructs a bitmap framebuffer.
|
overridevirtual |
Returns the type of this framebuffer.
Implements Ocean::Rendering::Framebuffer.
|
overridevirtual |
Initializes the framebuffer.
Reimplemented from Ocean::Rendering::Framebuffer.
Reimplemented in Ocean::Rendering::GlobalIllumination::GIBitmapFramebuffer, Ocean::Rendering::GLESceneGraph::Windows::GLESBitmapFramebuffer, and Ocean::Rendering::GLESceneGraph::Apple::GLESBitmapFramebuffer.
|
overridevirtual |
Returns the type of this object.
Reimplemented from Ocean::Rendering::Object.