com.partnersoft.gui
Class GLTexture

java.lang.Object
  extended by com.partnersoft.gui.GLTexture

public class GLTexture
extends java.lang.Object

This is a simple structure to store information needed by EZ2DGL about a texture. It serves two roles; as an external definition it includes the texture bitmap; as an internal definition it it only includes the textureID, and the bitmap is generally discarded. .

Author:
Paul Reavis Copyright 2004 Partner Software, Inc.

Field Summary
 int height
           
 int imageHeight
           
 float imageHeightf
           
 int imageWidth
           
 float imageWidthf
           
 boolean modulate
           
 byte[] pixels
           
 int textureID
           
 int width
           
 
Constructor Summary
GLTexture()
           
 
Method Summary
 Cog getState()
           
 boolean isValid()
           
 void setState(Cog newState)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

textureID

public int textureID

pixels

public byte[] pixels

modulate

public boolean modulate

imageWidth

public int imageWidth

imageHeight

public int imageHeight

width

public int width

height

public int height

imageWidthf

public float imageWidthf

imageHeightf

public float imageHeightf
Constructor Detail

GLTexture

public GLTexture()
Method Detail

isValid

public boolean isValid()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getState

public Cog getState()

setState

public void setState(Cog newState)