GLAbstraction.Float24
— TypeFloat24 storage type for depth
GLAbstraction.FrameBuffer
— TypeA FrameBuffer holds all the data related to the usual OpenGL FrameBufferObjects. The attachments
field gets mapped to the different possible GLCOLORATTACHMENTs, which is bound by GLMAXCOLORATTACHMENTS, and to one of either a GLDEPTHATTACHMENT or GLDEPTHSTENCILATTACHMENT.
GLAbstraction.RenderBuffer
— TypeHolds the id, format and attachment of an OpenGL RenderBuffer. RenderBuffers cannot be read by Shaders.
GLAbstraction.RenderBuffer
— MethodCreates a RenderBuffer
with purpose for the depth
component of a FrameBuffer
.
GLAbstraction.Texture
— MethodConstructor for Array Texture
GLAbstraction.Texture
— MethodConstructor for a normal array, with color or Abstract Arrays as elements. So Array{Real, 2} == Texture2D with 1D Colorant dimension Array{Vec1/2/3/4, 2} == Texture2D with 1/2/3/4D Colorant dimension Colors from Colors.jl should mostly work as well
GLAbstraction.Texture
— MethodConstructor for empty initialization with NULL pointer instead of an array with data. You just need to pass the wanted color/vector type and the dimensions. To which values the texture gets initialized is driver dependent
GLAbstraction.UniformBuffer
— TypeStatically sized uniform buffer. Supports push!, but with fixed memory, so it will error after reaching it's preallocated length.
GLAbstraction.UniformBuffer
— MethodPre allocates an empty buffer with `max_batch_size` size
which can be used to store multiple uniform blocks of type T
GLAbstraction.UniformBuffer
— MethodCreates an Uniform buffer with the contents of `data`
GLAbstraction.cardinality
— MethodReturns the cardinality of a type. falls back to length
GLAbstraction.glsl_alignment_size
— MethodReturns the alignment of the Type
of T as assumed in https://khronos.org/registry/OpenGL/specs/gl/glspec45.core.pdf#page=159, returning a tuple with the first element being the 'base' alignment, and the second the total size inside memory.
GLAbstraction.julia2glenum
— MethodTransform julia datatypes to opengl enum type
GLAbstraction.separate
— Methodseparate(f, A)
Separates the true and false part of A
. Single values get passed into f
.