Tex2D

A 2-dimensional texture. target returns GL_TEXTURE_2D.

Constructors

this
this(B bmp, bool compress)
this
this(vec2i sz, uint lpp)

Creates an empty texture. Compressing is not allowed, because compressed texture cannot use glTexSubImage2D.

Members

Functions

overwrite
void overwrite(B bmp, vec2i offset)

Modifies the texture.

Properties

target
GLenum target [@property getter]

Static functions

resizeBitmapPower2
auto resizeBitmapPower2(B bmp)
Undocumented in source. Be warned that the author may not have intended to support it.

Inherited Members

From Texture

_bindedTexture
Texture _bindedTexture;
Undocumented in source.
NullId
enum NullId;

Invalid texture id.

_id
GLuint _id;
Undocumented in source.
id
id [@property getter]

OpenGL texture id.

size
vec2i size;

Size of this texture.

target
GLenum target [@property getter]

GL_TEXTURE_2D, etc...

~this
~this()
disposed
disposed [@property getter]

Checks if the texture is disposed.

dispose
void dispose()

Deletes the texture.

binded
binded [@property getter]

Checks if the texture is binded.

bind
void bind()

Sets the texture binded.

Meta