Class TextureColumn

java.lang.Object
  extended by TextureColumn

public class TextureColumn
extends java.lang.Object

Represents a vertical stripe of a texture.


Method Summary
 void fill(int[] dst, int dOffs, int dScan, int dHeight, double intensity)
          Copies this stripe into the given pixels array.
 int getHeight()
          Returns the number of pixels this stripe contains.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getHeight

public int getHeight()
Returns the number of pixels this stripe contains.


fill

public void fill(int[] dst,
                 int dOffs,
                 int dScan,
                 int dHeight,
                 double intensity)
Copies this stripe into the given pixels array. The column will be scaled to fit into the array as specified. Both the starting point and the ending point may be outside of the actual array; in this case, only the appropriate portion of the vertical stripe will be scaled to fit into the array.

Parameters:
dst - the array into which the vertical stripe should be copied.
dOffs - the offset within the array where the top pixel of the texture should be placed. Note that this may be a negative value if the top portion of the texture should not appear at all.
dScan - the number of array entries separating adjacent pixels in a column.
dHeight - the height of the column in the array into which this texture column should be mapped.
intensity - a multiplier between 0.0 and 1.0 representing how bright the copy should be.