This is the documentation for Enlighten.
class Enlighten GlTextureUpdater
class Enlighten::GlTextureUpdater
└>Enlighten::IGpuTextureUpdater
└>Geo::IGeoReleasable
Implementation for managing solver output and OpenGL GPU textures.
Functions
Name | Description |
|---|---|
Create an updater for an OpenGL/OpenGL ES 2D texture for irradiance solver output. | |
Create an updater for an OpenGL/OpenGL ES 3.0 volume texture for interpolated probe output (not supported by OpenGL ES 2.0) | |
Create an updater for an OpenGL/OpenGL ES cubemap texture for cubemap solver output. | |
Returns a CPU pointer to the memory used to update the GPU texture. | |
Returns a CPU pointer to the memory used to update the GPU texture. | |
Returns the number of mip levels in the GPU texture - will only be bigger than 1 for cube maps. | |
Returns the number of mip levels in the GPU texture - will only be bigger than 1 for cube maps. | |
Returns the row pitch of the CPU memory associated with this GPU texture. | |
Returns the row pitch of the CPU memory associated with this GPU texture. | |
Returns the slice pitch of the CPU memory associated with this GPU texture, for 3D textures. | |
Returns the slice pitch of the CPU memory associated with this GPU texture, for 3D textures. | |
Returns true if the specified format matches the updater's current configuration. | |
Returns true if the format of the GPU texture matches the given Enlighten format. | |
Free this object that was created within the Enlighten libraries. | |
Free this object that was created within the Enlighten libraries. | |
Update the GPU copy of the texture on the render thread. | |
Update the GPU copy of the texture on the render thread. | |
Update the GPU copy of the specified sub-region on the render thread. | |
Update the GPU copy of the specified sub-region on the render thread. | |
Potentially update the GPU copy of the texture on the worker thread. | |
Equivalent to parameter-less overload, but only update a sub-region of the texture. |
GlTextureUpdater * Enlighten::GlTextureUpdater::Create
public: GlTextureUpdater * Create
(
GLuint gpuTexture,
GLint width,
GLint height,
GLint internalFormat,
GLint format,
GLenum type
)
Create an updater for an OpenGL/OpenGL ES 2D texture for irradiance solver output.
GlTextureUpdater * Enlighten::GlTextureUpdater::Create3D
public: GlTextureUpdater * Create3D
(
GLuint gpuTexture,
GLint width,
GLint height,
GLint depth,
GLint internalFormat,
GLint format,
GLenum type
)