Gamp v0.0.7-36-g24b1eb6
Gamp: Graphics, Audio, Multimedia and Processing
|
OpenGL rendering data management. More...
Functions | |
static size_t | gamp::render::gl::data::GLBuffers::byteSize (const GL &gl, GLenum format, GLenum type, GLsizei width, GLsizei height, GLsizei depth, bool pack) |
Returns the number of bytes required to read/write a memory buffer via OpenGL using the current GL pixel storage state and the given parameters. | |
static glmemsize_t | gamp::render::gl::data::GLBuffers::byteSize (const GL &gl, GLsizei bytesPerPixel, GLsizei width, GLsizei height, GLsizei depth, bool pack) |
Returns the number of bytes required to read/write a memory buffer via OpenGL using the current GL pixel storage state and the given parameters. | |
static GLsizei | gamp::render::gl::data::GLBuffers::bytesPerPixel (GLenum format, GLenum type) |
Returns the number of bytes required for one pixel with the the given OpenGL format and type. | |
static GLsizei | gamp::render::gl::data::GLBuffers::componentCount (GLenum format) |
Returns the number of components required for the given OpenGL format. | |
static GLint | gamp::render::gl::data::GLBuffers::glGetInteger (GLenum pname) |
static constexpr bool | gamp::render::gl::data::GLBuffers::isGLTypeFixedPoint (GLenum glType) |
static constexpr bool | gamp::render::gl::data::GLBuffers::isSignedGLType (GLenum glType) |
std::ostream & | gamp::render::gl::data::operator<< (std::ostream &out, const GLArrayData &v) |
static constexpr GLsizei | gamp::render::gl::data::GLBuffers::sizeOfGLType (GLenum glType) |
OpenGL rendering data management.
typedef std::shared_ptr<GLArrayData> gamp::render::gl::data::GLArrayDataRef |
Definition at line 39 of file GLArrayData.hpp.
using gamp::render::gl::data::GLArrayDataClientRef = std::shared_ptr<GLArrayDataClient<Value_type>> |
Definition at line 40 of file GLArrayDataClient.hpp.
typedef GLArrayDataClient<float> gamp::render::gl::data::GLFloatArrayDataClient |
Definition at line 42 of file GLArrayDataClient.hpp.
Definition at line 43 of file GLArrayDataClient.hpp.
using gamp::render::gl::data::GLArrayDataProxyRef = std::shared_ptr<GLArrayDataProxy<Value_type>> |
Definition at line 34 of file GLArrayDataProxy.hpp.
using gamp::render::gl::data::GLArrayDataServerRef = std::shared_ptr<GLArrayDataServer<Value_type>> |
Definition at line 44 of file GLArrayDataServer.hpp.
typedef GLArrayDataServer<float> gamp::render::gl::data::GLFloatArrayDataServer |
Definition at line 46 of file GLArrayDataServer.hpp.
Definition at line 47 of file GLArrayDataServer.hpp.
typedef GLArrayDataServer<uint32_t> gamp::render::gl::data::GLUIntArrayDataServer |
Definition at line 48 of file GLArrayDataServer.hpp.
typedef GLArrayDataServerRef<uint32_t> gamp::render::gl::data::GLUIntArrayDataServerRef |
Definition at line 49 of file GLArrayDataServer.hpp.
typedef GLsizeiptr gamp::render::gl::data::glmemsize_t |
typedef std::unique_ptr<GLMappedBuffer> gamp::render::gl::data::GLMappedBufferPtr |
Definition at line 170 of file GLMappedBuffer.hpp.
typedef std::shared_ptr<GLUniformData> gamp::render::gl::data::GLUniformDataRef |
Definition at line 153 of file GLUniformData.hpp.
typedef std::shared_ptr<GLUniformSyncMatrices4f> gamp::render::gl::data::GLUniformSyncMatrices4fRef |
Definition at line 173 of file GLUniformData.hpp.
typedef std::shared_ptr<GLUniformVec4f> gamp::render::gl::data::GLUniformVec4fRef |
Definition at line 193 of file GLUniformData.hpp.
typedef std::shared_ptr<GLUniformVec3f> gamp::render::gl::data::GLUniformVec3fRef |
Definition at line 213 of file GLUniformData.hpp.
|
inline |
Definition at line 504 of file GLArrayData.hpp.
|
inlinestaticconstexpr |
glType | GL primitive type |
Definition at line 41 of file GLBuffers.hpp.
|
inlinestaticconstexpr |
glType | GL primitive type |
Definition at line 61 of file GLBuffers.hpp.
|
inlinestaticconstexpr |
glType | shall be one of (31) GL_BYTE, GL_UNSIGNED_BYTE, GL_UNSIGNED_BYTE_3_3_2, GL_UNSIGNED_BYTE_2_3_3_REV, GL_SHORT, GL_UNSIGNED_SHORT, GL_UNSIGNED_SHORT_5_6_5, GL_UNSIGNED_SHORT_5_6_5_REV, GL_UNSIGNED_SHORT_4_4_4_4, GL_UNSIGNED_SHORT_4_4_4_4_REV, GL_UNSIGNED_SHORT_5_5_5_1, GL_UNSIGNED_SHORT_1_5_5_5_REV, GL_UNSIGNED_SHORT_8_8_APPLE, GL_UNSIGNED_SHORT_8_8_REV_APPLE, GL.GL_HALF_FLOAT, GLES2.GL_HALF_FLOAT_OES: GL_FIXED, GL_INT GL_UNSIGNED_INT, GL_UNSIGNED_INT_8_8_8_8, GL_UNSIGNED_INT_8_8_8_8_REV, GL_UNSIGNED_INT_10_10_10_2, GL_UNSIGNED_INT_2_10_10_10_REV, GL_UNSIGNED_INT_24_8, GL_UNSIGNED_INT_10F_11F_11F_REV, GL_UNSIGNED_INT_5_9_9_9_REV GL_HILO16_NV, GL_SIGNED_HILO16_NV GL2GL3.GL_FLOAT_32_UNSIGNED_INT_24_8_REV GL_FLOAT, GL_DOUBLE |
Definition at line 99 of file GLBuffers.hpp.
|
inlinestatic |
|
inlinestatic |
Returns the number of bytes required to read/write a memory buffer via OpenGL using the current GL pixel storage state and the given parameters.
This method is security critical, hence it throws an exception (fail-fast) in case of an invalid alignment. In case we forgot to handle proper values, please contact the maintainer.
glp | the current GLProfile |
bytesPerPixel | bytes per pixel, i.e. via bytesPerPixel(int, int) . |
width | in pixels |
height | in pixels |
depth | in pixels |
pack | true for read mode GPU -> CPU (pack), otherwise false for write mode CPU -> GPU (unpack) |
GLException | if alignment is invalid. Please contact the maintainer if this is our bug. |
Definition at line 333 of file GLBuffers.hpp.
|
inlinestatic |
Returns the number of bytes required to read/write a memory buffer via OpenGL using the current GL pixel storage state and the given parameters.
This method is security critical, hence it throws an exception (fail-fast) in case either the format, type or alignment is unhandled. In case we forgot to handle proper values, please contact the maintainer.
gl | the current GL object |
tmp | a pass through integer array of size >= 1 used to store temp data (performance) |
format | must be one of (27) GL_COLOR_INDEX GL_STENCIL_INDEX GL_DEPTH_COMPONENT GL_DEPTH_STENCIL GL_RED GL_RED_INTEGER GL_GREEN GL_GREEN_INTEGER GL_BLUE GL_BLUE_INTEGER GL_ALPHA GL_LUMINANCE (12) GL_LUMINANCE_ALPHA GL_RG GL_RG_INTEGER GL_HILO_NV GL_SIGNED_HILO_NV (5) GL_YCBCR_422_APPLE GL_RGB GL_RGB_INTEGER GL_BGR GL_BGR_INTEGER (4) GL_RGBA GL_RGBA_INTEGER GL_BGRA GL_BGRA_INTEGER GL_ABGR_EXT (5) |
type | must be one of (32) GL_BITMAP, GL_BYTE, GL_UNSIGNED_BYTE, GL_UNSIGNED_BYTE_3_3_2, GL_UNSIGNED_BYTE_2_3_3_REV, GL_SHORT, GL_UNSIGNED_SHORT, GL_UNSIGNED_SHORT_5_6_5, GL_UNSIGNED_SHORT_5_6_5_REV, GL_UNSIGNED_SHORT_4_4_4_4, GL_UNSIGNED_SHORT_4_4_4_4_REV, GL_UNSIGNED_SHORT_5_5_5_1, GL_UNSIGNED_SHORT_1_5_5_5_REV, GL_UNSIGNED_SHORT_8_8_APPLE, GL_UNSIGNED_SHORT_8_8_REV_APPLE, GL_HALF_FLOAT, GL_HALF_FLOAT_OES GL_FIXED, GL_INT GL_UNSIGNED_INT, GL_UNSIGNED_INT_8_8_8_8, GL_UNSIGNED_INT_8_8_8_8_REV, GL_UNSIGNED_INT_10_10_10_2, GL_UNSIGNED_INT_2_10_10_10_REV, GL_UNSIGNED_INT_24_8, GL_UNSIGNED_INT_10F_11F_11F_REV, GL_UNSIGNED_INT_5_9_9_9_REV GL_HILO16_NV, GL_SIGNED_HILO16_NV GL_FLOAT_32_UNSIGNED_INT_24_8_REV GL_FLOAT, GL_DOUBLE |
width | in pixels |
height | in pixels |
depth | in pixels |
pack | true for read mode GPU -> CPU, otherwise false for write mode CPU -> GPU |
GLException | if format, type or alignment is not handled. Please contact the maintainer if this is our bug. |
Definition at line 490 of file GLBuffers.hpp.
|
inlinestatic |
Returns the number of bytes required for one pixel with the the given OpenGL format and type.
This method is security critical, hence it throws an exception (fail-fast) in case either the format, type or alignment is unhandled. In case we forgot to handle proper values, please contact the maintainer.
See componentCount(int)
.
format | must be one of (27) GL_COLOR_INDEX GL_STENCIL_INDEX GL_DEPTH_COMPONENT GL_DEPTH_STENCIL GL_RED GL_RED_INTEGER GL_GREEN GL_GREEN_INTEGER GL_BLUE GL_BLUE_INTEGER GL_ALPHA GL_LUMINANCE (12) GL_LUMINANCE_ALPHA GL_RG GL_RG_INTEGER GL_HILO_NV GL_SIGNED_HILO_NV (5) GL_YCBCR_422_APPLE GL_RGB GL_RGB_INTEGER GL_BGR GL_BGR_INTEGER (4) GL_RGBA GL_RGBA_INTEGER GL_BGRA GL_BGRA_INTEGER GL_ABGR_EXT (5) |
type | must be one of (32) GL_BITMAP, GL_BYTE, GL_UNSIGNED_BYTE, GL_UNSIGNED_BYTE_3_3_2, GL_UNSIGNED_BYTE_2_3_3_REV, GL_SHORT, GL_UNSIGNED_SHORT, GL_UNSIGNED_SHORT_5_6_5, GL_UNSIGNED_SHORT_5_6_5_REV, GL_UNSIGNED_SHORT_4_4_4_4, GL_UNSIGNED_SHORT_4_4_4_4_REV, GL_UNSIGNED_SHORT_5_5_5_1, GL_UNSIGNED_SHORT_1_5_5_5_REV, GL_UNSIGNED_SHORT_8_8_APPLE, GL_UNSIGNED_SHORT_8_8_REV_APPLE, GL_HALF_FLOAT, GL_HALF_FLOAT_OES GL_FIXED, GL_INT GL_UNSIGNED_INT, GL_UNSIGNED_INT_8_8_8_8, GL_UNSIGNED_INT_8_8_8_8_REV, GL_UNSIGNED_INT_10_10_10_2, GL_UNSIGNED_INT_2_10_10_10_REV, GL_UNSIGNED_INT_24_8, GL_UNSIGNED_INT_10F_11F_11F_REV, GL_UNSIGNED_INT_5_9_9_9_REV GL_HILO16_NV, GL_SIGNED_HILO16_NV GL_FLOAT_32_UNSIGNED_INT_24_8_REV GL_FLOAT, GL_DOUBLE |
GLException | if format or type alignment is not handled. Please contact the maintainer if this is our bug. |
Definition at line 558 of file GLBuffers.hpp.
|
inlinestatic |
Returns the number of components required for the given OpenGL format.
This method is security critical, hence it throws an exception (fail-fast) in case either the format, type or alignment is unhandled. In case we forgot to handle proper values, please contact the maintainer.
format | must be one of (27) GL_COLOR_INDEX GL_STENCIL_INDEX GL_DEPTH_COMPONENT GL_DEPTH_STENCIL GL_RED GL_RED_INTEGER GL_GREEN GL_GREEN_INTEGER GL_BLUE GL_BLUE_INTEGER GL_ALPHA GL_LUMINANCE (12) GL_LUMINANCE_ALPHA GL_RG GL_RG_INTEGER GL_HILO_NV GL_SIGNED_HILO_NV (5) GL_YCBCR_422_APPLE GL_RGB GL_RGB_INTEGER GL_BGR GL_BGR_INTEGER (4) GL_RGBA GL_RGBA_INTEGER GL_BGRA GL_BGRA_INTEGER GL_ABGR_EXT (5) |
GLException | if format is not handled. Please contact the maintainer if this is our bug. |
Definition at line 664 of file GLBuffers.hpp.