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