GL20Texture

An OpenGL 2.0 implementation of {@link Texture}.

@see Texture

Members

Functions

bind
void bind(int unit)
Undocumented in source. Be warned that the author may not have intended to support it.
create
void create()
Undocumented in source. Be warned that the author may not have intended to support it.
destroy
void destroy()
Undocumented in source. Be warned that the author may not have intended to support it.
getFormat
Format getFormat()
Undocumented in source. Be warned that the author may not have intended to support it.
getGLVersion
gbaid.render.gl.GLVersion getGLVersion()
Undocumented in source. Be warned that the author may not have intended to support it.
getHeight
uint getHeight()
Undocumented in source. Be warned that the author may not have intended to support it.
getImageData
ubyte[] getImageData(InternalFormat format)
Undocumented in source. Be warned that the author may not have intended to support it.
getInternalFormat
InternalFormat getInternalFormat()
Undocumented in source. Be warned that the author may not have intended to support it.
getWidth
uint getWidth()
Undocumented in source. Be warned that the author may not have intended to support it.
setAnisotropicFiltering
void setAnisotropicFiltering(float value)
Undocumented in source. Be warned that the author may not have intended to support it.
setBorderColor
void setBorderColor(float red, float green, float blue, float alpha)
Undocumented in source. Be warned that the author may not have intended to support it.
setCompareMode
void setCompareMode(CompareMode compareMode)
Undocumented in source. Be warned that the author may not have intended to support it.
setFilters
void setFilters(FilterMode minFilter, FilterMode magFilter)
Undocumented in source. Be warned that the author may not have intended to support it.
setFormat
void setFormat(Format format, InternalFormat internalFormat)
Undocumented in source. Be warned that the author may not have intended to support it.
setImageData
void setImageData(ubyte[] imageData, uint width, uint height)
Undocumented in source. Be warned that the author may not have intended to support it.
setWraps
void setWraps(WrapMode horizontalWrap, WrapMode verticalWrap)
Undocumented in source. Be warned that the author may not have intended to support it.
unbind
void unbind()
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

format
Format format;
Undocumented in source.
height
uint height;
Undocumented in source.
internalFormat
InternalFormat internalFormat;
Undocumented in source.
minFilter
FilterMode minFilter;
Undocumented in source.
width
uint width;
Undocumented in source.

Inherited Members

From Texture

id
uint id;
Undocumented in source.
destroy
void destroy()
Undocumented in source. Be warned that the author may not have intended to support it.
bind
void bind(int unit)

Binds the texture to the OpenGL context.

unbind
void unbind()

Unbinds the texture from the OpenGL context.

getID
uint getID()

Gets the ID for this texture as assigned by OpenGL.

setFormat
void setFormat(Format format)

Sets the texture's format.

setFormat
void setFormat(InternalFormat format)

Sets the texture's format.

setFormat
void setFormat(Format format, InternalFormat internalFormat)

Sets the texture's format and internal format.

getFormat
Format getFormat()

Returns the texture's format

getInternalFormat
InternalFormat getInternalFormat()

Returns the texture's internal format.

setAnisotropicFiltering
void setAnisotropicFiltering(float value)

Sets the value for anisotropic filtering. Must be greater than zero. Note that this is EXT based and might not be supported on all hardware.

setWraps
void setWraps(WrapMode horizontalWrap, WrapMode verticalWrap)

Sets the horizontal and vertical texture wraps.

setFilters
void setFilters(FilterMode minFilter, FilterMode magFilter)

Sets the texture's min and mag filters. The mag filter cannot require mipmap generation.

setCompareMode
void setCompareMode(CompareMode compareMode)

Sets the compare mode.

setBorderColor
void setBorderColor(float red, float green, float blue, float alpha)

Sets the border color.

setImageData
void setImageData(ubyte[] imageData, uint width, uint height)

Sets the texture's image data.

getImageData
ubyte[] getImageData()

Returns the image data in the internal format.

getImageData
ubyte[] getImageData(InternalFormat format)

Returns the image data in the desired format.

getWidth
uint getWidth()

Returns the width of the image.

getHeight
uint getHeight()

Returns the height of the image.

Meta