Project

General

Profile

« Previous | Next » 

Revision a0d5e302

Added by Leszek Koltunski over 7 years ago

Simplify Effect classes.

View differences:

src/main/java/org/distorted/library/effect/FragmentEffect.java
29 29

  
30 30
///////////////////////////////////////////////////////////////////////////////////////////////////
31 31

  
32
  public FragmentEffect(EffectName name)
32
  FragmentEffect(EffectName name)
33 33
    {
34 34
    super(name);
35 35
    }
src/main/java/org/distorted/library/effect/FragmentEffectBrightness.java
21 21

  
22 22
import org.distorted.library.type.Data1D;
23 23
import org.distorted.library.type.Data4D;
24
import org.distorted.library.type.Dynamic1D;
25
import org.distorted.library.type.Dynamic4D;
26
import org.distorted.library.type.Static1D;
27 24
import org.distorted.library.type.Static4D;
28 25

  
29 26
///////////////////////////////////////////////////////////////////////////////////////////////////
src/main/java/org/distorted/library/effect/FragmentEffectChroma.java
22 22
import org.distorted.library.type.Data1D;
23 23
import org.distorted.library.type.Data3D;
24 24
import org.distorted.library.type.Data4D;
25
import org.distorted.library.type.Dynamic1D;
26
import org.distorted.library.type.Dynamic3D;
27
import org.distorted.library.type.Dynamic4D;
28
import org.distorted.library.type.Static1D;
29
import org.distorted.library.type.Static3D;
30 25
import org.distorted.library.type.Static4D;
31 26

  
32 27
///////////////////////////////////////////////////////////////////////////////////////////////////
src/main/java/org/distorted/library/effect/FragmentEffectContrast.java
21 21

  
22 22
import org.distorted.library.type.Data1D;
23 23
import org.distorted.library.type.Data4D;
24
import org.distorted.library.type.Dynamic1D;
25
import org.distorted.library.type.Dynamic4D;
26
import org.distorted.library.type.Static1D;
27 24
import org.distorted.library.type.Static4D;
28 25

  
29 26
///////////////////////////////////////////////////////////////////////////////////////////////////
src/main/java/org/distorted/library/effect/FragmentEffectSaturation.java
21 21

  
22 22
import org.distorted.library.type.Data1D;
23 23
import org.distorted.library.type.Data4D;
24
import org.distorted.library.type.Dynamic1D;
25
import org.distorted.library.type.Dynamic4D;
26
import org.distorted.library.type.Static1D;
27 24
import org.distorted.library.type.Static4D;
28 25

  
29 26
///////////////////////////////////////////////////////////////////////////////////////////////////
src/main/java/org/distorted/library/effect/MatrixEffect.java
28 28

  
29 29
///////////////////////////////////////////////////////////////////////////////////////////////////
30 30

  
31
  public MatrixEffect(EffectName name)
31
  MatrixEffect(EffectName name)
32 32
    {
33 33
    super(name);
34 34
    }
src/main/java/org/distorted/library/effect/MatrixEffectMove.java
20 20
package org.distorted.library.effect;
21 21

  
22 22
import org.distorted.library.type.Data3D;
23
import org.distorted.library.type.Dynamic3D;
24
import org.distorted.library.type.Static3D;
25 23

  
26 24
///////////////////////////////////////////////////////////////////////////////////////////////////
27 25

  
src/main/java/org/distorted/library/effect/MatrixEffectQuaternion.java
21 21

  
22 22
import org.distorted.library.type.Data3D;
23 23
import org.distorted.library.type.Data4D;
24
import org.distorted.library.type.Dynamic3D;
25
import org.distorted.library.type.DynamicQuat;
26
import org.distorted.library.type.Static3D;
27
import org.distorted.library.type.Static4D;
28 24

  
29 25
///////////////////////////////////////////////////////////////////////////////////////////////////
30 26

  
src/main/java/org/distorted/library/effect/MatrixEffectRotate.java
21 21

  
22 22
import org.distorted.library.type.Data1D;
23 23
import org.distorted.library.type.Data3D;
24
import org.distorted.library.type.Data4D;
25
import org.distorted.library.type.Dynamic1D;
26
import org.distorted.library.type.Dynamic3D;
27
import org.distorted.library.type.Dynamic4D;
28
import org.distorted.library.type.Static1D;
29
import org.distorted.library.type.Static3D;
30
import org.distorted.library.type.Static4D;
31 24

  
32 25
///////////////////////////////////////////////////////////////////////////////////////////////////
33 26

  
src/main/java/org/distorted/library/effect/MatrixEffectScale.java
20 20
package org.distorted.library.effect;
21 21

  
22 22
import org.distorted.library.type.Data3D;
23
import org.distorted.library.type.Dynamic3D;
24 23
import org.distorted.library.type.Static3D;
25 24

  
26 25
///////////////////////////////////////////////////////////////////////////////////////////////////
src/main/java/org/distorted/library/effect/MatrixEffectShear.java
20 20
package org.distorted.library.effect;
21 21

  
22 22
import org.distorted.library.type.Data3D;
23
import org.distorted.library.type.Dynamic3D;
24
import org.distorted.library.type.Static3D;
25 23

  
26 24
///////////////////////////////////////////////////////////////////////////////////////////////////
27 25

  
src/main/java/org/distorted/library/effect/PostprocessEffect.java
29 29

  
30 30
///////////////////////////////////////////////////////////////////////////////////////////////////
31 31

  
32
  public PostprocessEffect(EffectName name)
32
  PostprocessEffect(EffectName name)
33 33
    {
34 34
    super(name);
35 35
    }
src/main/java/org/distorted/library/effect/PostprocessEffectBlur.java
20 20
package org.distorted.library.effect;
21 21

  
22 22
import org.distorted.library.type.Data1D;
23
import org.distorted.library.type.Dynamic1D;
24
import org.distorted.library.type.Static1D;
25 23

  
26 24
///////////////////////////////////////////////////////////////////////////////////////////////////
27 25

  
src/main/java/org/distorted/library/effect/PostprocessEffectGlow.java
21 21

  
22 22
import org.distorted.library.type.Data1D;
23 23
import org.distorted.library.type.Data4D;
24
import org.distorted.library.type.Dynamic1D;
25
import org.distorted.library.type.Dynamic4D;
26
import org.distorted.library.type.Static1D;
27
import org.distorted.library.type.Static4D;
28 24

  
29 25
///////////////////////////////////////////////////////////////////////////////////////////////////
30 26

  
src/main/java/org/distorted/library/effect/VertexEffect.java
26 26
  {
27 27
  public static final int NUM_UNIFORMS = 12; // 5 per-effect interpolated values, 3-dimensional center, 4-dimensional Region
28 28

  
29

  
30 29
///////////////////////////////////////////////////////////////////////////////////////////////////
31 30

  
32
  public VertexEffect(EffectName name)
31
  VertexEffect(EffectName name)
33 32
    {
34 33
    super(name);
35 34
    }
src/main/java/org/distorted/library/effect/VertexEffectDeform.java
21 21

  
22 22
import org.distorted.library.type.Data3D;
23 23
import org.distorted.library.type.Data4D;
24
import org.distorted.library.type.Dynamic3D;
25
import org.distorted.library.type.Dynamic4D;
26
import org.distorted.library.type.Static3D;
27 24
import org.distorted.library.type.Static4D;
28 25

  
29 26
///////////////////////////////////////////////////////////////////////////////////////////////////
src/main/java/org/distorted/library/effect/VertexEffectDistort.java
21 21

  
22 22
import org.distorted.library.type.Data3D;
23 23
import org.distorted.library.type.Data4D;
24
import org.distorted.library.type.Dynamic3D;
25
import org.distorted.library.type.Dynamic4D;
26
import org.distorted.library.type.Static3D;
27 24
import org.distorted.library.type.Static4D;
28 25

  
29 26
///////////////////////////////////////////////////////////////////////////////////////////////////
src/main/java/org/distorted/library/effect/VertexEffectPinch.java
22 22
import org.distorted.library.type.Data2D;
23 23
import org.distorted.library.type.Data3D;
24 24
import org.distorted.library.type.Data4D;
25
import org.distorted.library.type.Dynamic2D;
26
import org.distorted.library.type.Dynamic3D;
27
import org.distorted.library.type.Dynamic4D;
28
import org.distorted.library.type.Static2D;
29
import org.distorted.library.type.Static3D;
30 25
import org.distorted.library.type.Static4D;
31 26

  
32 27
///////////////////////////////////////////////////////////////////////////////////////////////////
src/main/java/org/distorted/library/effect/VertexEffectSink.java
22 22
import org.distorted.library.type.Data1D;
23 23
import org.distorted.library.type.Data3D;
24 24
import org.distorted.library.type.Data4D;
25
import org.distorted.library.type.Dynamic1D;
26
import org.distorted.library.type.Dynamic3D;
27
import org.distorted.library.type.Dynamic4D;
28
import org.distorted.library.type.Static1D;
29
import org.distorted.library.type.Static3D;
30 25
import org.distorted.library.type.Static4D;
31 26

  
32 27
///////////////////////////////////////////////////////////////////////////////////////////////////
src/main/java/org/distorted/library/effect/VertexEffectSwirl.java
22 22
import org.distorted.library.type.Data1D;
23 23
import org.distorted.library.type.Data3D;
24 24
import org.distorted.library.type.Data4D;
25
import org.distorted.library.type.Dynamic1D;
26
import org.distorted.library.type.Dynamic3D;
27
import org.distorted.library.type.Dynamic4D;
28
import org.distorted.library.type.Static1D;
29
import org.distorted.library.type.Static3D;
30 25
import org.distorted.library.type.Static4D;
31 26

  
32 27
///////////////////////////////////////////////////////////////////////////////////////////////////
src/main/java/org/distorted/library/effect/VertexEffectWave.java
22 22
import org.distorted.library.type.Data3D;
23 23
import org.distorted.library.type.Data4D;
24 24
import org.distorted.library.type.Data5D;
25
import org.distorted.library.type.Dynamic3D;
26
import org.distorted.library.type.Dynamic4D;
27
import org.distorted.library.type.Dynamic5D;
28
import org.distorted.library.type.Static3D;
29 25
import org.distorted.library.type.Static4D;
30
import org.distorted.library.type.Static5D;
31 26

  
32 27
///////////////////////////////////////////////////////////////////////////////////////////////////
33 28

  

Also available in: Unified diff