| Modifier and Type | Field and Description |
|---|---|
| private int | height
The height of the image |
| private float | heightRatio
The ratio of the height of the image to the texture |
| private int | target
The GL target type |
| private int | texHeight
The height of the texture |
| private int | textureID
The GL texture ID |
| private int | texWidth
The width of the texture |
| private int | width
The width of the image |
| private float | widthRatio
The ratio of the width of the image to the texture |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public float | |
| public int | |
| public int | |
| public float | |
| public void | |
| private void | |
| public void | |
| public void | |
| public void | |
| private void |
| height | back to summary |
|---|---|
| private int height The height of the image | |
| heightRatio | back to summary |
|---|---|
| private float heightRatio The ratio of the height of the image to the texture | |
| target | back to summary |
|---|---|
| private int target The GL target type | |
| texHeight | back to summary |
|---|---|
| private int texHeight The height of the texture | |
| textureID | back to summary |
|---|---|
| private int textureID The GL texture ID | |
| texWidth | back to summary |
|---|---|
| private int texWidth The width of the texture | |
| width | back to summary |
|---|---|
| private int width The width of the image | |
| widthRatio | back to summary |
|---|---|
| private float widthRatio The ratio of the width of the image to the texture | |
| Texture | back to summary |
|---|---|
| public Texture(int target, int textureID) Create a new texture
| |
| bind | back to summary |
|---|---|
| public void bind() Bind the specified GL context to a texture | |
| getHeight | back to summary |
|---|---|
| public float getHeight() Get the height of the physical texture
| |
| getImageHeight | back to summary |
|---|---|
| public int getImageHeight() Get the height of the original image
| |
| getImageWidth | back to summary |
|---|---|
| public int getImageWidth() Get the width of the original image
| |
| getWidth | back to summary |
|---|---|
| public float getWidth() Get the width of the physical texture
| |
| setHeight | back to summary |
|---|---|
| public void setHeight(int height) Set the height of the image
| |
| setHeight | back to summary |
|---|---|
| private void setHeight() Set the height of the texture. This will update the ratio also. | |
| setTextureHeight | back to summary |
|---|---|
| public void setTextureHeight(int texHeight) Set the height of this texture
| |
| setTextureWidth | back to summary |
|---|---|
| public void setTextureWidth(int texWidth) Set the width of this texture
| |
| setWidth | back to summary |
|---|---|
| public void setWidth(int width) Set the width of the image
| |
| setWidth | back to summary |
|---|---|
| private void setWidth() Set the width of the texture. This will update the ratio also. | |