8#ifndef META_OCEAN_RENDERING_GLES_FRAMEBUFFER_H
9#define META_OCEAN_RENDERING_GLES_FRAMEBUFFER_H
24namespace GLESceneGraph
58 void viewport(
unsigned int& left,
unsigned int& top,
unsigned int& width,
unsigned int& height)
const override;
112 void setViewport(
const unsigned int left,
const unsigned int top,
const unsigned int width,
const unsigned int height)
override;
222#ifndef OCEAN_RENDERING_GLES_USE_ES
224 FaceMode faceMode_ = PrimitiveAttribute::MODE_FACE;
237 unsigned int viewportLeft_ = (
unsigned int)(-1);
240 unsigned int viewportTop_ = (
unsigned int)(-1);
243 unsigned int viewportWidth_ = (
unsigned int)(0);
246 unsigned int viewportHeight_ = (
unsigned int)(0);
This class implements Ocean's image class.
Definition Frame.h:1808
This class implements an infinite line in 3D space.
Definition Line3.h:68
This class is the base class for all rendering framebuffers.
Definition rendering/Framebuffer.h:48
RenderTechnique
Definition of different render techniques.
Definition rendering/Framebuffer.h:68
ShadowTechnique
Definition of different shadow techniques.
Definition rendering/Framebuffer.h:83
This class implements a base for all GLESceneGraph framebuffers.
Definition rendering/glescenegraph/GLESFramebuffer.h:34
ShadowTechnique shadowTechnique() const override
Returns the shadow technique of the entire framebuffer.
GLESFramebuffer()
Creates a new GLESceneGraph framebuffer object.
virtual void setStereoType(const StereoType stereoType)
Sets the stereo type of this framebuffer.
void setCullingMode(const CullingMode cullingMode) override
Sets the global culling mode of the entire framebuffer.
void setFaceMode(const FaceMode mode) override
Sets the face mode of the entire framebuffer.
bool setAntialiasing(const bool antialiasing) override
Sets whether the framebuffer uses hardware anti-aliasing.
bool linearizeDepthFrame(Frame &depthFrame, const Scalar nearDistance, const Scalar farDistance) const override
Linearizes a given z-buffer depth frame with non-linear (e.g., logarithmic) depth.
virtual bool initializeContext()
Initialize the OpenGL ES display and context.
GLESTraverser traverser_
The traverser which is used for rendering.
Definition rendering/glescenegraph/GLESFramebuffer.h:252
bool isAntialiasingSupported(const unsigned int buffers) const override
Returns whether the framebuffer supports hardware anti-aliasing.
bool isAntialiasing() const override
Returns whether the framebuffer uses hardware anti-aliasing.
StereoType
Definitions of individual stereo framebuffers.
Definition rendering/glescenegraph/GLESFramebuffer.h:41
@ ST_LEFT
Framebuffer of a left stereo view.
Definition rendering/glescenegraph/GLESFramebuffer.h:47
@ ST_MONO
Framebuffer of a mono view.
Definition rendering/glescenegraph/GLESFramebuffer.h:45
~GLESFramebuffer() override
Destructs a GLESceneGraph framebuffer object.
void release() override
Releases the framebuffer.
CullingMode cullingMode() const override
Returns the global face culling mode of the entire framebuffer.
std::string extensions_
The string will all extensions separated by spaces.
Definition rendering/glescenegraph/GLESFramebuffer.h:234
void setRenderTechnique(const RenderTechnique technique) override
Sets the rendering technique of the entire framebuffer.
virtual StereoType stereoType() const
Returns the stereo type of this framebuffer.
FaceMode faceMode() const override
Returns the face mode of the entire framebuffer.
void setViewport(const unsigned int left, const unsigned int top, const unsigned int width, const unsigned int height) override
Sets the viewport of this framebuffer.
virtual bool initializeOpenGLES()
Initialize the OpenGL ES environment properties.
bool intersection(const Line3 &ray, RenderableRef &renderable, Vector3 &position) override
Returns the renderable object intersected by a given ray.
LightingMode lightingMode() const override
Returns the global lighting mode of the entire framebuffer.
bool initialize(const FramebufferRef &shareFramebuffer=FramebufferRef()) override
Initializes the framebuffer.
void setShadowTechnique(const ShadowTechnique technique) override
Sets the shadow technique of the entire framebuffer.
RenderTechnique renderTechnique() const override
Returns the render technique of the entire framebuffer.
bool hasExtension(const std::string &extension) const override
Returns whether the platform supports a specific extension.
SmartObjectRef< GLESTextureFramebuffer > pickingTextureFramebuffer_
The texture framebuffer which is used for picking objects.
Definition rendering/glescenegraph/GLESFramebuffer.h:255
void setLightingMode(const LightingMode lightingMode) override
Sets the global lighting mode of the entire framebuffer.
void render() override
Renders the next frame into the framebuffer.
void viewport(unsigned int &left, unsigned int &top, unsigned int &width, unsigned int &height) const override
Returns the viewport of this framebuffer.
This class is the base class for all GLESceneGraph objects.
Definition GLESObject.h:57
This class implements a traverser for renderables.
Definition GLESTraverser.h:39
FaceMode
Defines different face rendering modes.
Definition PrimitiveAttribute.h:42
CullingMode
Defines different face culling modes.
Definition PrimitiveAttribute.h:57
LightingMode
Definition of different lighting modes.
Definition PrimitiveAttribute.h:74
This class implements a smart rendering object reference.
Definition rendering/ObjectRef.h:34
float Scalar
Definition of a scalar type.
Definition Math.h:129
The namespace covering the entire Ocean framework.
Definition Accessor.h:15