des v1.3.2 (2015-01-25T18:36:39Z)
Dub
Repo
GLTexture
des
gl
base
texture
class
GLTexture : DesObject {
mixin
DES
;
mixin
ClassLogger
;
protected
texsize_t
img_size
;
void
selfDestroy
();
protected
Target
_target
;
GLenum
gltype
[@property getter];
protected
InternalFormat
liformat
;
protected
Format
lformat
;
protected
Type
ltype
;
alias
texsize_t
=
SizeVector
!
3
;
Target
target
[@property getter];
enum
Target
;
enum
Parameter
;
enum
DepthStencilTextureMode
;
enum
CompareFunc
;
enum
CompareMode
;
enum
Filter
;
enum
Swizzle
;
enum
Wrap
;
enum
InternalFormat
;
enum
Format
;
enum
Type
;
this
(Target tg);
uint
id
[@property getter];
void
genMipmap
();
void
setParameter
(Parameter pname, T[] val);
void
bind
(ubyte n);
void
unbind
();
texsize_t
size
();
void
resize
(T sz);
void
image
(T sz, InternalFormat internal_format, Format data_format, Type data_type, void* data);
void
image
(Image!N img);
void
getImage
(Image!2 img);
void
getImage
(Image!2 img, Type type);
static
bool
isBase
(Target trg);
static
bool
isParametric
(Target trg);
static
bool
isMipmapable
(Target trg);
static
bool
checkPosibleIntParamValues
(Parameter pname, int[] valbuf);
static
bool
checkPosibleFloatParamValues
(Parameter pname, float[] valbuf);
static
size_t
formatElemCount
(Format fmt);
static
size_t
sizeofType
(Type type);
static
auto
imageElemInfo
(Format fmt, Type type);
static
DataType
imageDataType
(Type type);
static
bool
isParameterEnum
[@property getter];
static
Type
typeFromImageDataType
(DataType ctype);
static
auto
formatFromImageChanelsCount
(size_t channels);
}
Constructors
this
this
(Target tg)
Members
Aliases
texsize_t
alias
texsize_t
=
SizeVector
!
3
Undocumented in source.
Enums
CompareFunc
enum
CompareFunc
CompareMode
enum
CompareMode
DepthStencilTextureMode
enum
DepthStencilTextureMode
Filter
enum
Filter
Format
enum
Format
InternalFormat
enum
InternalFormat
Parameter
enum
Parameter
Swizzle
enum
Swizzle
Target
enum
Target
Type
enum
Type
Wrap
enum
Wrap
Functions
bind
void
bind
(ubyte n)
glActiveTexture, glBindTexture
genMipmap
void
genMipmap
()
bind, glGenerateMipmap
getImage
void
getImage
(Image!2 img)
getImage
void
getImage
(Image!2 img, Type type)
image
void
image
(T sz, InternalFormat internal_format, Format data_format, Type data_type, void* data)
void
image
(Image!N img)
set image
resize
void
resize
(T sz)
selfDestroy
void
selfDestroy
()
Undocumented in source. Be warned that the author may not have intended to support it.
setParameter
void
setParameter
(Parameter pname, T[] val)
size
texsize_t
size
()
unbind
void
unbind
()
Mixins
__anonymous
mixin
DES
Undocumented in source.
__anonymous
mixin
ClassLogger
Undocumented in source.
Properties
gltype
GLenum
gltype
[@property getter]
id
uint
id
[@property getter]
isParameterEnum
bool
isParameterEnum
[@property getter]
target
Target
target
[@property getter]
Static functions
checkPosibleFloatParamValues
bool
checkPosibleFloatParamValues
(Parameter pname, float[] valbuf)
checkPosibleIntParamValues
bool
checkPosibleIntParamValues
(Parameter pname, int[] valbuf)
formatElemCount
size_t
formatElemCount
(Format fmt)
formatFromImageChanelsCount
auto
formatFromImageChanelsCount
(size_t channels)
imageDataType
DataType
imageDataType
(Type type)
imageElemInfo
auto
imageElemInfo
(Format fmt, Type type)
isBase
bool
isBase
(Target trg)
isMipmapable
bool
isMipmapable
(Target trg)
isParametric
bool
isParametric
(Target trg)
sizeofType
size_t
sizeofType
(Type type)
typeFromImageDataType
Type
typeFromImageDataType
(DataType ctype)
Variables
_target
Target
_target
;
img_size
texsize_t
img_size
;
lformat
Format
lformat
;
liformat
InternalFormat
liformat
;
ltype
Type
ltype
;
Meta
Source
See Implementation
des
gl
base
texture
classes
GLTexture
GLTextureException