GLTexture

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

Constructors

this
this(GLenum tg, uint tu)

Members

Enums

CompareFunc
enum CompareFunc
CompareMode
enum CompareMode
DepthStencilTextureMode
enum DepthStencilTextureMode
Dim
enum Dim
Undocumented in source.
Filter
enum Filter
Format
enum Format
InternalFormat
enum InternalFormat
Side
enum Side
Undocumented in source.
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)
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, uivec3 sz, InternalFormat store_format, Format input_format, Type input_type, void* data, uint level)
setImageTrg
void setImageTrg(ubyte N, GLenum trg, Image img, uint level)
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()

Mixins

__anonymous
mixin DES
Undocumented in source.
__anonymous
mixin ClassLogger
Undocumented in source.

Properties

allocDim
Dim allocDim [@property getter]
Undocumented in source.
imageDim
Dim imageDim [@property getter]
Undocumented in source.
isArray
bool isArray [@property getter]
Undocumented in source.
mipmapable
bool mipmapable [@property getter]
Undocumented in source.
size
uivec3 size [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
unit
uint unit [@property getter]
unit
uint unit [@property setter]

Static functions

assertNotCubeMap
void assertNotCubeMap(GLenum trg)
Undocumented in source. Be warned that the author may not have intended to support it.
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

_size
uivec3 _size;
Undocumented in source.
_unit
uint _unit;

texture unit

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

Meta