com.mascotcapsule.micro3d.v3
Class Texture

java.lang.Object
  extended bycom.mascotcapsule.micro3d.v3.Texture

public class Texture
extends java.lang.Object

This class maintains textures. It loads meta textures and maintains texture data. It can handle model or environment mapping textures.


Constructor Summary
Texture(byte[] b, boolean isForModel)
          Generates texture object data from meta texture data.
Texture(java.lang.String name, boolean isForModel)
          The texture object is generated from meta texture data specified by the resource.
 
Method Summary
 void dispose()
          Disposes of maintained texture data
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Texture

public Texture(byte[] b,
               boolean isForModel)
Generates texture object data from meta texture data.

Parameters:
b - Data byte column
isForModel - For model? (True if for model, false if for environment)
Throws:
java.lang.NullPointerException - When argument is null.
java.lang.RuntimeException - Generates when object generation fails, such as for false data.

Texture

public Texture(java.lang.String name,
               boolean isForModel)
        throws java.io.IOException
The texture object is generated from meta texture data specified by the resource.

Parameters:
name - Resource file name
isForModel - For model? (True if for model, false if for environment)
Throws:
java.lang.NullPointerException - When argument name is null.
java.lang.RuntimeException - Generates when object generation fails, such as for false data.
java.io.IOException - I/O eror upon reading data.
Method Detail

dispose

public final void dispose()
Disposes of maintained texture data