| Modifier and Type | Class and Description |
|---|---|
static class |
TextureID.AlphaMode |
static class |
TextureID.RgbMode |
| Modifier and Type | Field and Description |
|---|---|
int |
id
OpenGL target ID
|
int |
target
OpenGL target of the texture
|
| Constructor and Description |
|---|
TextureID(java.lang.String name,
int id,
int target,
int width,
int height,
int depth,
TextureID.RgbMode rgbChannelMode,
TextureID.AlphaMode alphaChannelMode) |
| Modifier and Type | Method and Description |
|---|---|
void |
bind(IGL gl) |
int |
compareTo(TextureID o) |
boolean |
equals(java.lang.Object obj) |
TextureID.AlphaMode |
getAlphaChannelMode() |
int |
getDepth() |
int |
getFormat() |
int |
getHeight() |
java.lang.String |
getName() |
TextureID.RgbMode |
getRgbChannelMode() |
int |
getSizeInBytes() |
int |
getWidth() |
boolean |
hasAlphaChannel() |
boolean |
hasRgbChannel() |
boolean |
isAlphaBlendChannel() |
boolean |
isAlphaTestChannel() |
boolean |
isGreyScale() |
void |
set(java.lang.String name,
int width,
int height)
Internal use only
|
java.lang.String |
toString() |
void |
unbind(IGL gl) |
public final int id
public final int target
public TextureID(java.lang.String name,
int id,
int target,
int width,
int height,
int depth,
TextureID.RgbMode rgbChannelMode,
TextureID.AlphaMode alphaChannelMode)
name - unique name referencing this textureid - OpenGL ID of the texturetarget - OpenGL target IDwidth - width of the texture in pixelsheight - height of the texture in pixelsrgbChannelMode - alphaChannelMode - public final int compareTo(TextureID o)
compareTo in interface java.lang.Comparable<TextureID>public final java.lang.String toString()
toString in class java.lang.Objectpublic final boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic final java.lang.String getName()
TextureIDTexture.namepublic final int getWidth()
public final int getHeight()
public final int getDepth()
public final int getFormat()
public final int getSizeInBytes()
public final void set(java.lang.String name,
int width,
int height)
public final TextureID.RgbMode getRgbChannelMode()
public final boolean hasRgbChannel()
public final TextureID.AlphaMode getAlphaChannelMode()
public final boolean isGreyScale()
public final boolean hasAlphaChannel()
public final boolean isAlphaTestChannel()
public final boolean isAlphaBlendChannel()
public final void bind(IGL gl)
public final void unbind(IGL gl)
Bonzai Engine 1.3.4 11/12/2015 - A Java OpenGL engine and tools for Windows/Mac/Linux/Android
Copyright © 2007-2015 Jérôme Jouvie bonzaiengine.com contact@bonzaiengine.com