Texture

A texture object for manipulating its data, properties, and parameters.

Destructor

~this
~this()
Undocumented in source.

Members

Functions

bind
void bind()

Bind the texture to the current render cycle.

destroy
void destroy()
Undocumented in source. Be warned that the author may not have intended to support it.
draw
void draw(IRenderer renderer, Vecf position)
Undocumented in source. Be warned that the author may not have intended to support it.
drawEx
void drawEx(IRenderer renderer, Vecf position, float angle, Vecf center, Vecf size, ubyte alpha, Color!ubyte color)
Undocumented in source. Be warned that the author may not have intended to support it.
editParametrs
void editParametrs(int[] parametrs)

Edits texture parameters based on an array of parameters.

inActive
void inActive(int id)
Undocumented in source. Be warned that the author may not have intended to support it.
initShader
Shader!Program initShader(IRenderer render)

Initializes the shader for rendering the texture (if no shader was specified in the current rendering, then the default shader is taken).

initializeArrayFromData
void initializeArrayFromData(TextureInfo[] informations)
Undocumented in source. Be warned that the author may not have intended to support it.
initializeFromData
void initializeFromData(TextureInfo information)

Initializes the texture from the input data (if the texture was previously initialized, the data will be updated).

unbind
void unbind()

Unbind the texture to the current render cycle.

Manifest constants

deprecatedFragment
enum deprecatedFragment;
Undocumented in source.
deprecatedVertex
enum deprecatedVertex;
Undocumented in source.
modernFragment
enum modernFragment;
Undocumented in source.
modernVertex
enum modernVertex;
Undocumented in source.

Properties

height
uint height [@property getter]

Texture height

id
uint id [@property getter]

The ID of the texture in the open graphics library.

width
uint width [@property getter]

Texture width

Variables

vertexInfo
VertexInfo!float vertexInfo;

Information about the vertices of the texture being drawn.

Inherited Members

From IDrawable

draw
void draw(IRenderer renderer, Vecf position)

draw object implemetation

From IDrawableEx

drawEx
void drawEx(IRenderer renderer, Vecf position, float angle, Vecf center, Vecf size, ubyte alpha, Color!ubyte color)

draw object implemetation

Meta