Interface TextureBase
- All Known Subinterfaces:
TextureAsset
- All Known Implementing Classes:
Texture,TextureArray,TextureArrayLayer
public interface TextureBase
Base class for all kinds of textures.
-
Method Summary
Modifier and TypeMethodDescriptionvoidbind()Binds this texture.intReturns the height of this texture.intgetId()intgetWidth()Returns the width of this texture.default voidsetFilter(Texture.Filter filter) Sets the filter parameter of this texture.voidsetParameter(int name, int value) Sets the value of a parameter of this texture.default voidsetWrap(Texture.Wrap wrap) Sets the wrap parameter of this texture.voidunbind()Unbinds this texture.
-
Method Details
-
bind
void bind()Binds this texture. -
unbind
void unbind()Unbinds this texture. -
setWrap
Sets the wrap parameter of this texture. -
setFilter
Sets the filter parameter of this texture. -
setParameter
void setParameter(int name, int value) Sets the value of a parameter of this texture.- Parameters:
name- The name of the parametervalue- The value to assign
-
getId
int getId() -
getWidth
int getWidth()Returns the width of this texture.- Returns:
- The width of this texture, in pixels.
-
getHeight
int getHeight()Returns the height of this texture.- Returns:
- The height of this texture, in pixels.
-