GLTexture

abstract
class GLTexture : GLObject!("Texture", false) {
uivec3 _size;
}

Constructors

this
this(GLenum tg, uint tu = 0)

Members

Enums

CompareFunc
enum CompareFunc
CompareMode
enum CompareMode
DepthStencilTextureMode
enum DepthStencilTextureMode
Filter
enum Filter
Format
enum Format
InternalFormat
enum InternalFormat
Swizzle
enum Swizzle
Type
enum Type
Wrap
enum Wrap

Functions

bind
void bind()

glActiveTexture, glBindTexture

genMipmap
void genMipmap()
getImageTrg
Image getImageTrg(GLenum trg, Type type, uint level = 0)
setBaseLevel
void setBaseLevel(int v)
setBorderColor
void setBorderColor(vec4 clr)
setCompareFunc
void setCompareFunc(CompareFunc cf)
setCompareMode
void setCompareMode(CompareMode cm)
setDepthStencilTextureMode
void setDepthStencilTextureMode(DepthStencilTextureMode dstm)
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)
setLODBais
void setLODBais(float v)
setMagFilter
void setMagFilter(Filter filter)
setMaxLOD
void setMaxLOD(float v)
setMaxLevel
void setMaxLevel(int v)
setMinFilter
void setMinFilter(Filter filter)
setMinLOD
void setMinLOD(float v)
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)
setSwizzleA
void setSwizzleA(Swizzle s)
setSwizzleB
void setSwizzleB(Swizzle s)
setSwizzleG
void setSwizzleG(Swizzle s)
setSwizzleR
void setSwizzleR(Swizzle s)
setSwizzleRGBA
void setSwizzleRGBA(Swizzle[4] s)
setWrapR
void setWrapR(Wrap wrap)
setWrapS
void setWrapS(Wrap wrap)
setWrapT
void setWrapT(Wrap wrap)
unbind
void unbind()

Properties

unit
uint unit [@property getter]
unit
uint unit [@property setter]

Static functions

formatElemCount
size_t formatElemCount(Format fmt)
formatFromImageCompCount
auto formatFromImageCompCount(size_t channels)
imageDataType
DataType imageDataType(Type type)
imageElemInfo
auto imageElemInfo(Format fmt, Type type)
sizeofType
size_t sizeofType(Type type)
typeFromImageDataType
Type typeFromImageDataType(DataType ctype)

Variables

_unit
uint _unit;

texture unit

lformat
Format lformat;
liformat
InternalFormat liformat;
ltype
Type ltype;

Meta