GLTextureBase

abstract
class GLTextureBase : GLTexture (
uint N
) if (
N == 1 ||
N == 2
||
N == 3
) {}

Constructors

this
this(GLenum trg, uint tu)

Members

Properties

allocDim
Dim allocDim [@property getter]

Inherited Members

From GLTexture

liformat
InternalFormat liformat;
lformat
Format lformat;
ltype
Type ltype;
_unit
uint _unit;

texture unit

InternalFormat
enum InternalFormat
Format
enum Format
Type
enum Type
unit
uint unit [@property getter]
unit
uint unit [@property setter]
genMipmap
void genMipmap()
setParam
void setParam(GLenum param, int val)
setParam
void setParam(GLenum param, int[] val)
setParam
void setParam(GLenum param, float val)
setParam
void setParam(GLenum param, float[] val)
Filter
enum Filter
setMinFilter
void setMinFilter(Filter filter)
setMagFilter
void setMagFilter(Filter filter)
Wrap
enum Wrap
setWrapS
void setWrapS(Wrap wrap)
setWrapT
void setWrapT(Wrap wrap)
setWrapR
void setWrapR(Wrap wrap)
setMinLOD
void setMinLOD(float v)
setMaxLOD
void setMaxLOD(float v)
setLODBais
void setLODBais(float v)
setBaseLevel
void setBaseLevel(int v)
setMaxLevel
void setMaxLevel(int v)
setBorderColor
void setBorderColor(vec4 clr)
CompareFunc
enum CompareFunc
setCompareFunc
void setCompareFunc(CompareFunc cf)
CompareMode
enum CompareMode
setCompareMode
void setCompareMode(CompareMode cm)
Swizzle
enum Swizzle
setSwizzleR
void setSwizzleR(Swizzle s)
setSwizzleG
void setSwizzleG(Swizzle s)
setSwizzleB
void setSwizzleB(Swizzle s)
setSwizzleA
void setSwizzleA(Swizzle s)
setSwizzleRGBA
void setSwizzleRGBA(Swizzle[4] s)
DepthStencilTextureMode
enum DepthStencilTextureMode
setDepthStencilTextureMode
void setDepthStencilTextureMode(DepthStencilTextureMode dstm)
bind
void bind()

glActiveTexture, glBindTexture

unbind
void unbind()
setImageTrg
void setImageTrg(ubyte N, GLenum trg, in uivec3 sz, InternalFormat store_format, Format input_format, Type input_type, in void* data = null, uint level = 0)
setImageTrg
void setImageTrg(ubyte N, GLenum trg, in Image img, uint level = 0)
getImageTrg
Image getImageTrg(GLenum trg, Type type, uint level = 0)
typeFromImageDataType
Type typeFromImageDataType(DataType ctype)
formatFromImageCompCount
auto formatFromImageCompCount(size_t channels)
imageElemInfo
auto imageElemInfo(Format fmt, Type type)
formatElemCount
size_t formatElemCount(Format fmt)
imageDataType
DataType imageDataType(Type type)
sizeofType
size_t sizeofType(Type type)

Meta