8#ifndef META_OCEAN_RENDERING_GLES_FRAMEBUFFER_H
9#define META_OCEAN_RENDERING_GLES_FRAMEBUFFER_H
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;
220#if defined(OCEAN_DEBUG) && !defined(OCEAN_PLATFORM_BUILD_APPLE)
232 static void onDebugMessage(GLenum source, GLenum
type, GLuint
id, GLenum severity, GLsizei length,
const GLchar* message,
const void* userParam);
238#ifndef OCEAN_RENDERING_GLES_USE_ES
This class implements Ocean's image class.
Definition Frame.h:1969
PrimitiveAttribute::CullingMode CullingMode
Definition of different rendering face culling modes.
Definition rendering/Framebuffer.h:115
RenderTechnique
Definition of different render techniques.
Definition rendering/Framebuffer.h:68
PrimitiveAttribute::LightingMode LightingMode
Definition of different face lighting modes.
Definition rendering/Framebuffer.h:123
Framebuffer()
Creates a new framebuffer.
ObjectType type() const override
Returns the type of this object.
PrimitiveAttribute::FaceMode FaceMode
Definition of different rendering face modes.
Definition rendering/Framebuffer.h:107
ShadowTechnique
Definition of different shadow techniques.
Definition rendering/Framebuffer.h:83
ShadowTechnique shadowTechnique() const override
Returns the shadow technique of the entire framebuffer.
unsigned int viewportWidth_
Viewport width value.
Definition rendering/glescenegraph/GLESFramebuffer.h:259
CullingMode cullingMode_
Global lighting mode for the entire framebuffer.
Definition rendering/glescenegraph/GLESFramebuffer.h:244
unsigned int viewportTop_
Viewport top position.
Definition rendering/glescenegraph/GLESFramebuffer.h:256
GLESFramebuffer()
Creates a new GLESceneGraph framebuffer object.
unsigned int viewportLeft_
Viewport left position.
Definition rendering/glescenegraph/GLESFramebuffer.h:253
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.
FaceMode faceMode_
The face mode which is only supported in OpenGL.
Definition rendering/glescenegraph/GLESFramebuffer.h:240
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.
unsigned int viewportHeight_
Viewport height value.
Definition rendering/glescenegraph/GLESFramebuffer.h:262
virtual bool initializeContext()
Initialize the OpenGL ES display and context.
GLESTraverser traverser_
The traverser which is used for rendering.
Definition rendering/glescenegraph/GLESFramebuffer.h:268
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
@ ST_INVALID
An invalid framebuffer type.
Definition rendering/glescenegraph/GLESFramebuffer.h:43
@ ST_RIGHT
Framebuffer of a right stereo view.
Definition rendering/glescenegraph/GLESFramebuffer.h:49
~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:250
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_
Global lighting mode for the entire framebuffer.
Definition rendering/glescenegraph/GLESFramebuffer.h:247
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:271
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.
static void onDebugMessage(GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const GLchar *message, const void *userParam)
Event function for debug messages.
StereoType stereoType_
The stereo framebuffer type.
Definition rendering/glescenegraph/GLESFramebuffer.h:265
void viewport(unsigned int &left, unsigned int &top, unsigned int &width, unsigned int &height) const override
Returns the viewport of this framebuffer.
GLESObject()
Creates a new GLESceneGraph object.
This class implements a traverser for renderables.
Definition GLESTraverser.h:39
@ MODE_FACE
Face rendering mode rendering the entire face, which is the default mode.
Definition PrimitiveAttribute.h:44
@ CULLING_DEFAULT
Default culling mode.
Definition PrimitiveAttribute.h:67
@ LM_DEFAULT
Default lighting.
Definition PrimitiveAttribute.h:80
This class implements a smart rendering object reference.
Definition rendering/ObjectRef.h:34
VectorT3< Scalar > Vector3
Definition of a 3D vector.
Definition Vector3.h:29
LineT3< Scalar > Line3
Definition of the Line3 object, depending on the OCEAN_MATH_USE_SINGLE_PRECISION either with single o...
Definition Line3.h:27
float Scalar
Definition of a scalar type.
Definition Math.h:129
SmartObjectRef< Renderable > RenderableRef
Definition of a smart object reference holding a renderable node.
Definition Renderable.h:29
SmartObjectRef< Framebuffer > FramebufferRef
Definition of a smart object reference holding a framebuffer.
Definition rendering/Framebuffer.h:38
Namespace of the Rendering GLESceneGraph library.
Definition rendering/glescenegraph/android/Android.h:20
Namespace of the Rendering library.
Definition AbsoluteTransform.h:18
The namespace covering the entire Ocean framework.
Definition Accessor.h:15