|
| | gamp::render::gl::pixel::DefaultGLPixelBufferProvider::DefaultGLPixelBufferProvider (bool allowRowStride) |
| |
| | gamp::render::gl::pixel::GLPixelBuffer::GLPixelAttributes::GLPixelAttributes (final GLProfile glp, final PixelFormat pixFmt, final boolean pack) throws GLException |
| | Create a new GLPixelAttributes instance based on GLProfile, PixelFormat and pack.
|
| |
| | gamp::render::gl::pixel::GLPixelBuffer::GLPixelAttributes::GLPixelAttributes (final int dataFormat, final int dataType) throws GLException |
| | Create a new GLPixelAttributes instance based on GL format and type.
|
| |
| | gamp::render::gl::pixel::GLPixelBuffer::GLPixelBuffer (final GLPixelAttributes pixelAttributes, final boolean pack, final int width, final int height, final int depth, final Buffer buffer, final boolean allowRowStride) |
| |
| GLPixelBuffer | gamp::render::gl::pixel::DefaultGLPixelBufferProvider::allocate (final GL gl, final PixelFormat.Composition hostPixComp, final GLPixelAttributes pixelAttributes, final boolean pack, final int width, final int height, final int depth, final int minByteSize) |
| |
| int | gamp::render::gl::pixel::GLPixelBuffer::capacity () |
| | Returns the byte capacity of the buffer.
|
| |
| Buffer | gamp::render::gl::pixel::GLPixelBuffer::clear () |
| | See Buffer#clear().
|
| |
| static GLPixelAttributes | gamp::render::gl::pixel::GLPixelBuffer::GLPixelAttributes::convert (final GL gl, final int componentCount, final boolean pack) |
| | Returns the matching GLPixelAttributes for the given byte sized RGBA componentCount and GL if exists, otherwise returns null.
|
| |
| static final GLPixelAttributes | gamp::render::gl::pixel::GLPixelBuffer::GLPixelAttributes::convert (final GLProfile glp, final PixelFormat pixFmt, final boolean pack) |
| | Returns the matching GLPixelAttributes for the given GLProfile, PixelFormat and pack if exists, otherwise returns null.
|
| |
| void | gamp::render::gl::pixel::GLPixelBuffer::dispose () |
| | Dispose resources.
|
| |
| final boolean | gamp::render::gl::pixel::GLPixelBuffer::GLPixelAttributes::equals (final Object obj) |
| |
| Buffer | gamp::render::gl::pixel::GLPixelBuffer::flip () |
| | See Buffer#flip().
|
| |
| bool | gamp::render::gl::pixel::DefaultGLPixelBufferProvider::getAllowRowStride () const noexcept override |
| |
| final boolean | gamp::render::gl::pixel::GLPixelBuffer::getAllowRowStride () |
| | Allow GL2ES3#GL_PACK_ROW_LENGTH, or GL2ES2#GL_UNPACK_ROW_LENGTH.
|
| |
| GLPixelAttributes | gamp::render::gl::pixel::DefaultGLPixelBufferProvider::getAttributes (final GL gl, final int componentCount, final boolean pack) |
| |
| constexpr std::string_view | gamp::render::gl::getGLArrayName (GLenum array) noexcept |
| |
| constexpr jau::util::VersionNumber | gamp::render::gl::getGLSLVersionNumber (const jau::util::VersionNumber &glVersion, GLProfileMask mask) |
| |
| constexpr std::string_view | gamp::render::gl::getGLTypeName (GLenum type) noexcept |
| |
| PixelFormat Composition | gamp::render::gl::pixel::DefaultGLPixelBufferProvider::getHostPixelComp (final GLProfile glp, final int componentCount) |
| |
| static final PixelFormat | gamp::render::gl::pixel::GLPixelBuffer::GLPixelAttributes::getPixelFormat (final int glFormat, final int glDataType) |
| | Returns the matching PixelFormat for the given GL format and type if exists, otherwise returns null.
|
| |
| std::string | gamp::render::gl::getPredefinedArrayIndexName (GLenum glArrayIndex) |
| |
| std::string | gamp::render::gl::getPredefinedArrayIndexName (GLenum glArrayIndex, GLint multiTexCoordIndex) |
| |
| template<typename T, std::enable_if_t< std::is_same_v< float, T >, bool > = true> |
| constexpr GLenum | gamp::render::gl::glType () noexcept |
| |
| GLenum | gamp::render::gl::glType (const jau::type_info &t) noexcept |
| | Runtime GL type retrieval using compile-time-type-info (CTTI) jau::type_info.
|
| |
| final int | gamp::render::gl::pixel::GLPixelBuffer::GLPixelAttributes::hashCode () |
| |
| boolean | gamp::render::gl::pixel::GLPixelBuffer::isValid () |
| | Is not disposed and has byteSize > 0.
|
| |
| constexpr bool | gamp::render::gl::isValidShaderType (GLenum type) noexcept |
| |
| | gamp::render::gl::JAU_MAKE_BITFIELD_ENUM_STRING (GLProfileMask, compat, core, es) |
| |
| int | gamp::render::gl::pixel::GLPixelBuffer::limit () |
| | Returns the byte limit of the buffer.
|
| |
| int | gamp::render::gl::pixel::GLPixelBuffer::position () |
| | Returns the byte position of the buffer.
|
| |
| Buffer | gamp::render::gl::pixel::GLPixelBuffer::position (final int bytePos) |
| | Sets the byte position of the buffer.
|
| |
| boolean | gamp::render::gl::pixel::GLPixelBuffer::requiresNewBuffer (final GL gl, final int newWidth, final int newHeight, int newByteSize) |
| | Returns true, if invalid or implementation requires a new buffer based on the new size due to pixel alignment or byte size, otherwise false.
|
| |
| Buffer | gamp::render::gl::pixel::GLPixelBuffer::rewind () |
| | See Buffer#rewind().
|
| |
| constexpr std::string_view | gamp::render::gl::shaderTypeString (GLenum type) noexcept |
| |
| String | gamp::render::gl::pixel::GLPixelBuffer::GLPixelAttributes::toString () |
| |
| String | gamp::render::gl::pixel::GLPixelBuffer::toString () |
| |
| StringBuilder | gamp::render::gl::pixel::GLPixelBuffer::toString (StringBuilder sb) |
| |
|
| final boolean | gamp::render::gl::pixel::GLPixelBuffer::allowRowStride |
| | Allow GL2ES3#GL_PACK_ROW_LENGTH, or GL2ES2#GL_UNPACK_ROW_LENGTH.
|
| |
| final Buffer | gamp::render::gl::pixel::GLPixelBuffer::buffer |
| | Buffer holding the pixel data.
|
| |
| final int | gamp::render::gl::pixel::GLPixelBuffer::bufferElemSize |
| | Buffer element size in bytes.
|
| |
| final int | gamp::render::gl::pixel::GLPixelBuffer::byteSize |
| | Byte size of the buffer.
|
| |
| gamp::render::gl::pixel::DefaultGLPixelBufferProvider | gamp::render::gl::pixel::defaultProviderNoRowStride = new DefaultGLPixelBufferProvider(false) |
| | Default GLPixelBufferProvider with GLPixelBufferProvider#getAllowRowStride() == false, utilizing best match for GLPixelAttributes and allocating a ByteBuffer.
|
| |
| static final GLPixelBufferProvider | gamp::render::gl::pixel::defaultProviderWithRowStride = new DefaultGLPixelBufferProvider(true) |
| | Default GLPixelBufferProvider with GLPixelBufferProvider#getAllowRowStride() == true, utilizing best match for GLPixelAttributes and allocating a ByteBuffer.
|
| |
| final int | gamp::render::gl::pixel::GLPixelBuffer::depth |
| | Depth in pixels.
|
| |
| final int | gamp::render::gl::pixel::GLPixelBuffer::GLPixelAttributes::format |
| | The OpenGL pixel data format.
|
| |
| static constexpr GLenum | gamp::render::gl::GL_NVIDIA_PLATFORM_BINARY_NV = 0x890B |
| |
| final int | gamp::render::gl::pixel::GLPixelBuffer::height |
| | Height in pixels, representing buffer's byteSize.
|
| |
| static constexpr std::string_view | gamp::render::gl::mgl_Color = "mgl_Color" |
| |
| static constexpr std::string_view | gamp::render::gl::mgl_InterleaveArray = "mgl_InterleaveArray" |
| |
| static constexpr std::string_view | gamp::render::gl::mgl_MultiTexCoord = "mgl_MultiTexCoord" |
| |
| static constexpr std::string_view | gamp::render::gl::mgl_Normal = "mgl_Normal" |
| |
| static constexpr std::string_view | gamp::render::gl::mgl_Vertex = "mgl_Vertex" |
| |
| final boolean | gamp::render::gl::pixel::GLPixelBuffer::pack |
| | Data packing direction.
|
| |
| final PixelFormat | gamp::render::gl::pixel::GLPixelBuffer::GLPixelAttributes::pfmt |
| | PixelFormat describing the component layout
|
| |
| static class gamp::render::gl::pixel::GLPixelBuffer::GLPixelAttributes | gamp::render::gl::pixel::GLPixelBuffer::pixelAttributes |
| | The GLPixelAttributes.
|
| |
| final int | gamp::render::gl::pixel::GLPixelBuffer::GLPixelAttributes::type |
| | The OpenGL pixel data type.
|
| |
| static final GLPixelAttributes | gamp::render::gl::pixel::GLPixelBuffer::GLPixelAttributes::UNDEF = new GLPixelAttributes(null, PixelFormat.LUMINANCE, 0, 0, true, false) |
| | Undefined instance of GLPixelAttributes, having componentCount:=0, format:=0 and type:= 0.
|
| |
| static constexpr jau::util::VersionNumber | gamp::render::gl::Version0_0 = jau::util::VersionNumber(0, 0, 0) |
| | Version 0.00, i.e.
|
| |
| static constexpr jau::util::VersionNumber | gamp::render::gl::Version1_0 = jau::util::VersionNumber(1, 0, 0) |
| | Version 1.00, i.e.
|
| |
| static constexpr jau::util::VersionNumber | gamp::render::gl::Version1_1 = jau::util::VersionNumber(1, 1, 0) |
| | Version 1.1, i.e.
|
| |
| static constexpr jau::util::VersionNumber | gamp::render::gl::Version1_10 = jau::util::VersionNumber(1, 10, 0) |
| | Version 1.10, i.e.
|
| |
| static constexpr jau::util::VersionNumber | gamp::render::gl::Version1_2 = jau::util::VersionNumber(1, 2, 0) |
| | Version 1.2, i.e.
|
| |
| static constexpr jau::util::VersionNumber | gamp::render::gl::Version1_20 = jau::util::VersionNumber(1, 20, 0) |
| | Version 1.20, i.e.
|
| |
| static constexpr jau::util::VersionNumber | gamp::render::gl::Version1_30 = jau::util::VersionNumber(1, 30, 0) |
| | Version 1.30, i.e.
|
| |
| static constexpr jau::util::VersionNumber | gamp::render::gl::Version1_4 = jau::util::VersionNumber(1, 4, 0) |
| | Version 1.4, i.e.
|
| |
| static constexpr jau::util::VersionNumber | gamp::render::gl::Version1_40 = jau::util::VersionNumber(1, 40, 0) |
| | Version 1.40, i.e.
|
| |
| static constexpr jau::util::VersionNumber | gamp::render::gl::Version1_5 = jau::util::VersionNumber(1, 5, 0) |
| | Version 1.5, i.e.
|
| |
| static constexpr jau::util::VersionNumber | gamp::render::gl::Version1_50 = jau::util::VersionNumber(1, 50, 0) |
| | Version 1.50, i.e.
|
| |
| static constexpr jau::util::VersionNumber | gamp::render::gl::Version2_0 = jau::util::VersionNumber(2, 0, 0) |
| | Version 2.0.
|
| |
| static constexpr jau::util::VersionNumber | gamp::render::gl::Version3_0 = jau::util::VersionNumber(3, 0, 0) |
| | Version 3.0.
|
| |
| static constexpr jau::util::VersionNumber | gamp::render::gl::Version3_1 = jau::util::VersionNumber(3, 1, 0) |
| | Version 3.1.
|
| |
| static constexpr jau::util::VersionNumber | gamp::render::gl::Version3_2 = jau::util::VersionNumber(3, 2, 0) |
| | Version 3.2.
|
| |
| static constexpr jau::util::VersionNumber | gamp::render::gl::Version4_0 = jau::util::VersionNumber(4, 0, 0) |
| | Version 4.0.
|
| |
| static constexpr jau::util::VersionNumber | gamp::render::gl::Version4_3 = jau::util::VersionNumber(4, 3, 0) |
| | Version 4.3.
|
| |
| final int | gamp::render::gl::pixel::GLPixelBuffer::width |
| | Width in pixels, representing buffer's byteSize.
|
| |
OpenGL managed rendering support, data handling and GLSL functionality.
| boolean gamp::render::gl::pixel::GLPixelBuffer::requiresNewBuffer |
( |
final GL | gl, |
|
|
final int | newWidth, |
|
|
final int | newHeight, |
|
|
int | newByteSize ) |
|
inline |
Returns true, if invalid or implementation requires a new buffer based on the new size due to pixel alignment or byte size, otherwise false.
It is assumed that pixelAttributes, depth and pack stays the same!
The minimum required byte size equals to minByteSize, if > 0, otherwise GLBuffers.sizeof(..) is being used to calculate it. This value is referred to newByteSize.
If allowRowStride = false, method returns true if the newByteSize > currentByteSize or the newWidth != currentWidth.
If allowRowStride = true, see GLPixelBufferProvider#getAllowRowStride(), method returns true only if the newByteSize > currentByteSize. Assuming user utilizes the row-stride when dealing w/ the data, i.e. GL2ES3#GL_PACK_ROW_LENGTH.
- Parameters
-
| gl | the corresponding current GL context object |
| newWidth | new width in pixels |
| newHeight | new height in pixels |
| newByteSize | if > 0, the pre-calculated minimum byte-size for the resulting buffer, otherwise ignore. |
- See also
- GLPixelBufferProvider::allocate(GL, PixelFormat.Composition, GLPixelAttributes, boolean, int, int, int, int)
Definition at line 544 of file GLPixelBuffer.hpp.