Project

General

Profile

« Previous | Next » 

Revision 6bb59aad

Added by Leszek Koltunski almost 7 years ago

Progress with support for Effect classes.

View differences:

src/main/java/org/distorted/library/effect/VertexEffectSwirl.java
33 33

  
34 34
public class VertexEffectSwirl extends VertexEffect
35 35
  {
36
  private static final String NAME = "SWIRL";
36 37
  private static final float[] UNITIES = new float[] {0.0f};
37 38
  private static final int DIMENSION = 1;
38 39
  private static final boolean SUPPORTS_CENTER = true;
39 40
  private static final boolean SUPPORTS_REGION = true;
40 41

  
41 42
///////////////////////////////////////////////////////////////////////////////////////////////////
42

  
43
/**
44
 * Rotate part of the Object around the Center of the Effect by a certain angle.
45
 *
46
 * @param swirl  The angle of Swirl (in degrees). Positive values swirl clockwise.
47
 * @param center 3-dimensional Data that, at any given time, returns the Center of the Effect.
48
 * @param region Region that masks the Effect.
49
 */
43 50
  public VertexEffectSwirl(Data1D swirl, Data3D center, Data4D region)
44 51
    {
45
    super(SWIRL,UNITIES,DIMENSION,SUPPORTS_CENTER,SUPPORTS_REGION);
52
    super(SWIRL,UNITIES,DIMENSION,SUPPORTS_CENTER,SUPPORTS_REGION,NAME);
46 53

  
47 54
    if( swirl instanceof Dynamic1D)
48 55
      {
......
73 80
    }
74 81

  
75 82
///////////////////////////////////////////////////////////////////////////////////////////////////
76

  
83
/**
84
 * Rotate the whole Object around the Center of the Effect by a certain angle.
85
 *
86
 * @param swirl  The angle of Swirl (in degrees). Positive values swirl clockwise.
87
 * @param center 3-dimensional Data that, at any given time, returns the Center of the Effect.
88
 */
77 89
  public VertexEffectSwirl(Data1D swirl, Data3D center)
78 90
    {
79
    super(SWIRL,UNITIES,DIMENSION,SUPPORTS_CENTER,SUPPORTS_REGION);
91
    super(SWIRL,UNITIES,DIMENSION,SUPPORTS_CENTER,SUPPORTS_REGION,NAME);
80 92

  
81 93
    if( swirl instanceof Dynamic1D)
82 94
      {

Also available in: Unified diff