Project

General

Profile

« Previous | Next » 

Revision 143095f7

Added by Leszek Koltunski about 6 years ago

Minor cleanups.

View differences:

src/main/java/org/distorted/library/effect/Effect.java
85 85

  
86 86
    MatrixEffect.destroyStatics();
87 87
    VertexEffect.destroyStatics();
88
    FragmentEffect.destroyStatics();
88 89
    PostprocessEffect.destroyStatics();
89 90
    }
90 91

  
src/main/java/org/distorted/library/effect/EffectName.java
42 42

  
43 43
public enum EffectName
44 44
  {
45
  // EFFECT NAME /////// EFFECT TYPE ////////// EFFECT UNITY //////////// DIM REGION CENTER
45
  // EFFECT NAME /////// EFFECT TYPE ////////// EFFECT UNITY //////////// DIM REGION CENTER // CLASS
46 46
  ROTATE           ( EffectType.MATRIX  ,   new float[] {0.0f}           , 4, false, true  , MatrixEffectRotate.class       ),
47 47
  QUATERNION       ( EffectType.MATRIX  ,   new float[] {0.0f,0.0f,0.0f} , 4, false, true  , MatrixEffectQuaternion.class   ),
48 48
  MOVE             ( EffectType.MATRIX  ,   new float[] {0.0f,0.0f,0.0f} , 3, false, false , MatrixEffectMove.class         ),
......
130 130
// PUBLIC API
131 131
///////////////////////////////////////////////////////////////////////////////////////////////////
132 132
/**
133
 * Returns the Type of an individual Effect. For example, EffectName.ROTATION.getType() will
133
 * Returns the Type of an individual Effect. For example, EffectName.ROTATE.getType() will
134 134
 * return EffectType.MATRIX.
135 135
 * @return type of the effect.
136 136
 */
......
140 140
    }
141 141

  
142 142
///////////////////////////////////////////////////////////////////////////////////////////////////
143
  /**
144
   * Returns the Class of an individual Effect. For example, EffectName.ROTATION.getType() will
145
   * return MatrixEffectRotation.class.
146
   * @return effect class.
147
   */
143
/**
144
 * Returns the Class of an individual Effect. For example, EffectName.ROTATE.getEffectClass()
145
 * returns MatrixEffectRotate.class.
146
 * @return effect class.
147
 */
148 148
  public Class<? extends Effect> getEffectClass()
149 149
    {
150 150
    return effectClass;
src/main/java/org/distorted/library/effect/MatrixEffect.java
39 39
  public abstract void apply(float[] matrix, float[] uniforms, int index);
40 40

  
41 41
///////////////////////////////////////////////////////////////////////////////////////////////////
42
// empty function for completeness
42 43

  
43 44
  static void destroyStatics()
44 45
    {
src/main/java/org/distorted/library/effect/PostprocessEffectBlur.java
23 23

  
24 24
import org.distorted.library.main.Distorted;
25 25
import org.distorted.library.main.DistortedFramebuffer;
26
import org.distorted.library.main.DistortedOutputSurface;
27 26
import org.distorted.library.main.DistortedRenderState;
28 27
import org.distorted.library.program.DistortedProgram;
29 28
import org.distorted.library.type.Data1D;
......
139 138
    }
140 139

  
141 140
///////////////////////////////////////////////////////////////////////////////////////////////////
142
  /**
143
   * Only for use by the library itself.
144
   *
145
   * @y.exclude
146
   */
141
/**
142
 * Only for use by the library itself.
143
 *
144
 * @y.exclude
145
 */
147 146
  public boolean getRender()
148 147
    {
149 148
    return false;
src/main/java/org/distorted/library/effect/PostprocessEffectGlow.java
141 141
    }
142 142

  
143 143
///////////////////////////////////////////////////////////////////////////////////////////////////
144
  /**
145
   * Only for use by the library itself.
146
   *
147
   * @y.exclude
148
   */
144
/**
145
 * Only for use by the library itself.
146
 *
147
 * @y.exclude
148
 */
149 149
  public boolean getRender()
150 150
    {
151 151
    return true;

Also available in: Unified diff