Package com.toxicrain.rainengine.texture
Class TextureInfo
java.lang.Object
com.toxicrain.rainengine.texture.TextureInfo
The TextureInfo class provides information about the given texture
Textures are created in
TextureSystem
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal int
final boolean
final int
final int
-
Constructor Summary
ConstructorsConstructorDescriptionTextureInfo
(int textureId, int width, int height) Create a new TextureInfoTextureInfo
(int textureId, int width, int height, boolean isTransparent) Create a new TextureInfo -
Method Summary
-
Field Details
-
textureId
public final int textureId -
width
public final int width -
height
public final int height -
isTransparent
public final boolean isTransparent
-
-
Constructor Details
-
TextureInfo
public TextureInfo(int textureId, int width, int height) Create a new TextureInfo- Parameters:
textureId
- the id of the texture, used by OpenGL from renderingwidth
- the width of the textureheight
- the height of the texture
-
TextureInfo
public TextureInfo(int textureId, int width, int height, boolean isTransparent) Create a new TextureInfo- Parameters:
textureId
- the id of the texture, used by OpenGL from renderingwidth
- the width of the textureheight
- the height of the textureisTransparent
- If the texture has transparency
-
-
Method Details