Project

General

Profile

« Previous | Next » 

Revision b73dcaa7

Added by Leszek Koltunski over 7 years ago

Javadoc

View differences:

src/main/java/org/distorted/library/DistortedCubes.java
21 21

  
22 22
///////////////////////////////////////////////////////////////////////////////////////////////////
23 23
/**
24
 * Instance of this class represents a flat set of cubes optionally textured as a whole.
24
 * DistortedObject descendant - with a Grid composed of a set of cubes, centers of which all have equal Z-coords.
25 25
 * (a subset of a NxMx1 cuboid build with 1x1x1 cubes, i.e. the MxNx1 cuboid with arbitrary cubes missing)
26
 * <p>
27
 * General idea is as follows:
28
 * <ul>
29
 * <li> Create an instance of this class
30
 * <li> Optionally texture it
31
 * <li> Apply some effects
32
 * <li> Draw it!
33
 * </ul>
34
 * <p>
35
 * The effects we can apply fall into three general categories:
36
 * <ul>
37
 * <li> Matrix Effects, i.e. ones that change the Cuboid's ModelView Matrix (moves, scales, rotations)
38
 * <li> Vertex Effects, i.e. effects that are implemented in the Vertex Shader. Those typically change
39
 *      the shape of (some sub-Region of) the Cuboid in some way (deforms, distortions, sinks)
40
 * <li> Fragment Effects, i.e. effects that change (some of) the pixels of the Texture (transparency, macroblock)
41
 * </ul>
42
 * <p>
43
 * 
44 26
 */
45 27
public class DistortedCubes extends DistortedObject
46 28
   {

Also available in: Unified diff