8 #ifndef META_OCEAN_RENDERING_GLES_OBJECT_H
9 #define META_OCEAN_RENDERING_GLES_OBJECT_H
23 #if defined(OCEAN_PLATFORM_BUILD_APPLE_IOS_ANY)
24 #include <OpenGLES/ES3/gl.h>
25 #elif defined(OCEAN_PLATFORM_BUILD_APPLE_MACOS)
26 #define GL_DO_NOT_WARN_IF_MULTI_GL_VERSION_HEADERS_INCLUDED
27 #include <OpenGL/OpenGL.h>
28 #include <OpenGL/gl3.h>
29 #elif defined(OCEAN_PLATFORM_BUILD_ANDROID)
30 #include <GLES3/gl32.h>
32 #define GL_GLEXT_PROTOTYPES
34 #if defined(OCEAN_PLATFORM_BUILD_LINUX)
49 namespace GLESceneGraph
71 static void setUniform(
const GLint location,
const int32_t value);
78 static void setUniform(
const GLint location,
const uint32_t value);
85 static void setUniform(
const GLint location,
const float value);
92 static void setUniform(
const GLint location,
const double value);
275 static void setUniform(
const GLint location,
const float* values,
const size_t size);
296 static void setUniform(
const GLint location,
const bool value) =
delete;
This class implements a 4x4 homogeneous transformation matrix using floating point values with the pr...
Definition: HomogenousMatrix4.h:110
This class implements a color defined by red, green, blue and alpha parameters.
Definition: RGBAColor.h:41
This class is the base class for all GLESceneGraph objects.
Definition: GLESObject.h:57
static void setUniform(const GLint location, const VectorsF4 &value)
Sets the value of a uniform variable for the current (currently bound) program object.
static void setUniform(const GLint location, const SquareMatricesT4< float > &value)
Sets the value of a uniform variable for the current (currently bound) program object.
static void setUniform(const GLint location, const HomogenousMatrixD4 &value)
Sets the value of a uniform variable for the current (currently bound) program object.
~GLESObject() override
Destructs a GLESceneGraph object.
static void setUniform(const GLint location, const SquareMatricesT3< double > &value)
Sets the value of a uniform variable for the current (currently bound) program object.
static void setUniform(const GLint location, const VectorF4 &value)
Sets the value of a uniform variable for the current (currently bound) program object.
static void setUniform(const GLint location, const VectorsF2 &value)
Sets the value of a uniform variable for the current (currently bound) program object.
static void setUniform(const GLint location, const uint32_t value)
Sets the value of a uniform variable for the current (currently bound) program object.
GLESObject()
Creates a new GLESceneGraph object.
static void setUniform(const GLint location, const VectorD4 &value)
Sets the value of a uniform variable for the current (currently bound) program object.
static void setUniform(const GLint location, const SquareMatricesT3< float > &value)
Sets the value of a uniform variable for the current (currently bound) program object.
static void setUniform(const GLint location, const float *values, const size_t size)
Sets the value of a uniform variable for the current (currently bound) program object.
static void setUniform(const GLint location, const HomogenousMatrixF4 &value)
Sets the value of a uniform variable for the current (currently bound) program object.
static void setUniform(const GLint location, const SquareMatrixD4 &value)
Sets the value of a uniform variable for the current (currently bound) program object.
static void setUniform(const GLint location, const HomogenousMatricesD4 &value)
Sets the value of a uniform variable for the current (currently bound) program object.
static void setUniform(const GLint location, const VectorsD3 &value)
Sets the value of a uniform variable for the current (currently bound) program object.
const std::string & engineName() const override
Returns the name of the owner engine.
static void setUniform(const GLint location, const VectorsD2 &value)
Sets the value of a uniform variable for the current (currently bound) program object.
static void setUniform(const GLint location, const VectorD3 &value)
Sets the value of a uniform variable for the current (currently bound) program object.
static void setUniform(const GLint location, const VectorD2 &value)
Sets the value of a uniform variable for the current (currently bound) program object.
static void setUniform(const GLint location, const VectorsF3 &value)
Sets the value of a uniform variable for the current (currently bound) program object.
static void setUniform(const GLint location, const VectorF2 &value)
Sets the value of a uniform variable for the current (currently bound) program object.
static void setUniform(const GLint location, const SquareMatricesT4< double > &value)
Sets the value of a uniform variable for the current (currently bound) program object.
static void setUniform(const GLint location, const VectorF3 &value)
Sets the value of a uniform variable for the current (currently bound) program object.
static void setUniform(const GLint location, const RGBAColor &value)
Sets the value of a uniform variable for the current (currently bound) program object.
static void setUniform(const GLint location, const SquareMatrixF4 &value)
Sets the value of a uniform variable for the current (currently bound) program object.
static void setUniform(const GLint location, const double value)
Sets the value of a uniform variable for the current (currently bound) program object.
static void setUniform(const GLint location, const VectorsD4 &value)
Sets the value of a uniform variable for the current (currently bound) program object.
static void setUniform(const GLint location, const int32_t value)
Sets the value of a uniform variable for the current (currently bound) program object.
static void setUniform(const GLint location, const float value)
Sets the value of a uniform variable for the current (currently bound) program object.
static void setUniform(const GLint location, const SquareMatrixF3 &value)
Sets the value of a uniform variable for the current (currently bound) program object.
static void setUniform(const GLint location, const SquareMatrixD3 &value)
Sets the value of a uniform variable for the current (currently bound) program object.
static void setUniform(const GLint location, const HomogenousMatricesF4 &value)
Sets the value of a uniform variable for the current (currently bound) program object.
static void setUniform(const GLint location, const bool value)=delete
Sets the value of a uniform variable for the current (currently bound) program object.
This class is the base class for all rendering objects.
Definition: Object.h:54
This class implements a 3x3 square matrix.
Definition: SquareMatrix3.h:88
This class implements a 4x4 square matrix.
Definition: SquareMatrix4.h:85
This class implements a vector with two elements.
Definition: Vector2.h:96
This class implements a vector with three elements.
Definition: Vector3.h:97
This class implements a vector with four elements.
Definition: Vector4.h:97
std::vector< SquareMatrixT3< T > > SquareMatricesT3
Definition of a typename alias for vectors with SquareMatrixT3 objects.
Definition: SquareMatrix3.h:64
std::vector< SquareMatrixT4< T > > SquareMatricesT4
Definition of a typename alias for vectors with SquareMatrixT4 objects.
Definition: SquareMatrix4.h:61
std::vector< VectorF3 > VectorsF3
Definition of a vector holding VectorF3 objects.
Definition: Vector3.h:79
std::vector< VectorD2 > VectorsD2
Definition of a vector holding VectorD2 objects.
Definition: Vector2.h:71
std::vector< VectorD4 > VectorsD4
Definition of a vector holding VectorD4 objects.
Definition: Vector4.h:72
std::vector< VectorF2 > VectorsF2
Definition of a vector holding VectorF2 objects.
Definition: Vector2.h:78
std::vector< HomogenousMatrixD4 > HomogenousMatricesD4
Definition of a vector holding HomogenousMatrixD4 objects.
Definition: HomogenousMatrix4.h:79
std::vector< VectorD3 > VectorsD3
Definition of a vector holding VectorD3 objects.
Definition: Vector3.h:72
std::vector< HomogenousMatrixF4 > HomogenousMatricesF4
Definition of a vector holding HomogenousMatrixF4 objects.
Definition: HomogenousMatrix4.h:85
std::vector< VectorF4 > VectorsF4
Definition of a vector holding VectorF4 objects.
Definition: Vector4.h:79
The namespace covering the entire Ocean framework.
Definition: Accessor.h:15