Project

General

Profile

« Previous | Next » 

Revision faa3ff56

Added by Leszek Koltunski almost 7 years ago

Javadoc.

View differences:

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

  
22 22
///////////////////////////////////////////////////////////////////////////////////////////////////
23
// VERTEX EFFECTS
24

  
23
/**
24
 * Vertex Effect - an Effect that works by injecting certain code into the main Vertex shader.
25
 */
25 26
public abstract class VertexEffect extends Effect
26 27
  {
27
  public static final int NUM_UNIFORMS = 12; // 5 per-effect interpolated values, 3-dimensional center, 4-dimensional Region
28
/**
29
 * 12: 5 per-effect interpolated values, 3-dimensional center, 4-dimensional Region
30
 */
31
  public static final int NUM_UNIFORMS = 12;
28 32
  private static String mGLSL = "";
29 33
  private static int mNumEnabled = 0;
30 34

  
......
36 40
    }
37 41

  
38 42
///////////////////////////////////////////////////////////////////////////////////////////////////
43
// prepare code to be injected into the 'main_vertex_shader' main() function.
39 44

  
40 45
  static void addEffect(EffectName name, String code)
41 46
    {
......
56 61
    }
57 62

  
58 63
///////////////////////////////////////////////////////////////////////////////////////////////////
59

  
64
/**
65
 * Only for use by the library itself.
66
 *
67
 * @y.exclude
68
 */
60 69
  public static String getGLSL()
61 70
    {
62 71
    return mGLSL + "{}";
63 72
    }
64 73

  
65 74
///////////////////////////////////////////////////////////////////////////////////////////////////
66

  
67
  public static int getNumEnabled()
75
/**
76
 * Only for use by the library itself.
77
 *
78
 * @y.exclude
79
 */
80
  public static void onDestroy()
68 81
    {
69
    return mNumEnabled;
82
    mNumEnabled = 0;
83
    mGLSL = "";
70 84
    }
71 85

  
72 86
///////////////////////////////////////////////////////////////////////////////////////////////////
73

  
74
  public static void onDestroy()
87
// PUBLIC API
88
///////////////////////////////////////////////////////////////////////////////////////////////////
89
/**
90
 * Return the number of Fragment effects enabled.
91
 */
92
  public static int getNumEnabled()
75 93
    {
76
    mNumEnabled = 0;
77
    mGLSL = "";
94
    return mNumEnabled;
78 95
    }
79 96
  }

Also available in: Unified diff