Project

General

Profile

« Previous | Next » 

Revision f046b159

Added by Leszek Koltunski almost 4 years ago

First attempt at the MeshBase.apply(VertexEffect) API.

View differences:

src/main/java/org/distorted/library/effectqueue/EffectQueueVertex.java
26 26
import org.distorted.library.message.EffectMessageSender;
27 27

  
28 28
///////////////////////////////////////////////////////////////////////////////////////////////////
29

  
30
class EffectQueueVertex extends EffectQueue
29
/**
30
 * Not part of public API, do not document (public only because has to be used in Meshes)
31
 *
32
 * @y.exclude
33
 */
34
public class EffectQueueVertex extends EffectQueue
31 35
  { 
32 36
  private static final int NUM_UNIFORMS = VertexEffect.NUM_UNIFORMS;
33 37
  private static final int INDEX = EffectType.VERTEX.ordinal();
......
39 43

  
40 44
///////////////////////////////////////////////////////////////////////////////////////////////////
41 45
   
42
  EffectQueueVertex()
46
  public EffectQueueVertex()
43 47
    { 
44 48
    super(NUM_UNIFORMS,INDEX);
45 49
    }
46 50

  
51
///////////////////////////////////////////////////////////////////////////////////////////////////
52

  
53
  public EffectQueueVertex(EffectQueueVertex source)
54
    {
55
    super(source);
56
    }
57

  
47 58
///////////////////////////////////////////////////////////////////////////////////////////////////
48 59

  
49 60
  static void uniforms(int mProgramH, int variant)
......
55 66
    }
56 67

  
57 68
///////////////////////////////////////////////////////////////////////////////////////////////////
58
  
59
  void compute(long currTime)
69
/**
70
 * Not part of public API, do not document (public only because has to be used in Meshes)
71
 *
72
 * @y.exclude
73
 */
74
  public void compute(long currTime)
60 75
    {
61 76
    if( currTime==mTime ) return;
62 77
    if( mTime==0 ) mTime = currTime;
......
76 91
    }
77 92

  
78 93
///////////////////////////////////////////////////////////////////////////////////////////////////
79

  
80
  void send(float inflate, int variant)
94
/**
95
 * Not part of public API, do not document (public only because has to be used in Meshes)
96
 *
97
 * @y.exclude
98
 */
99
  public void send(float inflate, int variant)
81 100
    {
82 101
    GLES30.glUniform1i( mNumEffectsH[variant], mNumEffects);
83 102
    GLES30.glUniform1f( mInflateH[variant]   , inflate    );

Also available in: Unified diff