class
#include <esp/gfx/CubeMapShaderBase.h>
CubeMapShaderBase
Derived classes
- class DoubleSphereCameraShader
- class EquirectangularShader
Public types
-
enum (anonymous): Magnum::
UnsignedInt { ColorOutput = Magnum::Shaders::GenericGL3D::ColorOutput, ObjectIdOutput = Magnum::Shaders::GenericGL3D::ObjectIdOutput } -
enum class Flag: Magnum::
UnsignedShort { ColorTexture = 1 << 0, DepthTexture = 1 << 1, ObjectIdTexture = 1 << 2 } - Flag.
-
using Flags = Corrade::
Containers:: EnumSet<Flag>
Constructors, destructors, conversion operators
- ~CubeMapShaderBase() defaulted override
- CubeMapShaderBase(Flags flags = {Flag::ColorTexture}) protected explicit
- constructor
Public functions
- auto flags() const -> Flags
- Flags.
-
auto bindColorTexture(Magnum::
GL:: CubeMapTexture& texture) -> CubeMapShaderBase& virtual - bind cubemap color texture
-
auto bindDepthTexture(Magnum::
GL:: CubeMapTexture& texture) -> CubeMapShaderBase& virtual - bind cubemap depth texture
-
auto bindObjectIdTexture(Magnum::
GL:: CubeMapTexture& texture) -> CubeMapShaderBase& virtual - bind cubemap object id texture
Protected variables
Enum documentation
enum esp:: gfx:: CubeMapShaderBase:: (anonymous): Magnum:: UnsignedInt
Enumerators | |
---|---|
ColorOutput |
Color shader output. Generic output, present always. Expects three- or four-component floating-point or normalized buffer attachment. |
ObjectIdOutput |
Object ID shader output. Generic output, present only if Flag::ObjectId is set. Expects a single-component unsigned integral attachment. Writes the value set in setObjectId() there. |
enum class esp:: gfx:: CubeMapShaderBase:: Flag: Magnum:: UnsignedShort
Flag.
Enumerators | |
---|---|
ColorTexture |
cubemap color texture |
DepthTexture |
cubemap depth texture |
ObjectIdTexture |
cubemap object id texture |
Function documentation
esp:: gfx:: CubeMapShaderBase:: CubeMapShaderBase(Flags flags = {Flag::ColorTexture}) explicit protected
constructor
Parameters | |
---|---|
flags in | cubemap shader flags |
CubeMapShaderBase& esp:: gfx:: CubeMapShaderBase:: bindColorTexture(Magnum:: GL:: CubeMapTexture& texture) virtual
bind cubemap color texture
Parameters | |
---|---|
texture in | cubemap color texture |
CubeMapShaderBase& esp:: gfx:: CubeMapShaderBase:: bindDepthTexture(Magnum:: GL:: CubeMapTexture& texture) virtual
bind cubemap depth texture
Parameters | |
---|---|
texture in | cubemap depth texture |
CubeMapShaderBase& esp:: gfx:: CubeMapShaderBase:: bindObjectIdTexture(Magnum:: GL:: CubeMapTexture& texture) virtual
bind cubemap object id texture
Parameters | |
---|---|
texture in | cubemap object id texture |