Project

General

Profile

« Previous | Next » 

Revision b73dcaa7

Added by Leszek Koltunski over 7 years ago

Javadoc

View differences:

src/main/java/org/distorted/library/DistortedObject.java
37 37
///////////////////////////////////////////////////////////////////////////////////////////////////
38 38
/**
39 39
 * All Objects to which Distorted Graphics effects can be applied need to be extended from here.
40
 *
40
 * <p>
41
 * General idea is as follows:
42
 * <ul>
43
 * <li> Create an instance of (some class descended from) DistortedObject
44
 * <li> Paint something onto the Bitmap that's backing it up
45
 * <li> Apply some effects
46
 * <li> Draw it!
47
 * </ul>
48
 * <p>
49
 * The effects we can apply fall into three general categories:
50
 * <ul>
51
 * <li> Matrix Effects, i.e. ones that change the Bitmap's ModelView Matrix (moves, scales, rotations)
52
 * <li> Vertex Effects, i.e. effects that are implemented in the Vertex Shader. Those typically change
53
 *      the shape of (some sub-Region of) the Bitmap in some way (deforms, distortions, sinks)
54
 * <li> Fragment Effects, i.e. effects that change (some of) the pixels of the Bitmap (transparency, macroblock)
55
 * </ul>
56
 * <p>
41 57
 * Just like in DistortedNode and DistortedFramebuffer, we need to have a static list of all
42 58
 * DistortedObjects currently created by the application so that we can implement the 'mark for
43 59
 * deletion now - actually delete on next render' thing.

Also available in: Unified diff