Project

General

Profile

« Previous | Next » 

Revision 226144d0

Added by Leszek Koltunski about 7 years ago

Progress with VBOs - this time abstract out a new class, DistortedObject - i.e. everything that uploads something to GPU and thus needs to be auto re-created upon loss of the context.

View differences:

src/main/java/org/distorted/library/Distorted.java
130 130
 */
131 131
  public static void onPause()
132 132
    {
133
    DistortedSurface.onPause();
133
    DistortedObject.onPause();
134 134
    DistortedNode.onPause();
135
    MeshObject.onPause();
136 135
    }
137 136

  
138 137
///////////////////////////////////////////////////////////////////////////////////////////////////
......
142 141
 */
143 142
  public static void onDestroy()
144 143
    {
145
    DistortedSurface.onDestroy();
144
    DistortedObject.onDestroy();
146 145
    DistortedNode.onDestroy();
147 146
    DistortedEffects.onDestroy();
148 147
    DistortedEffectsPostprocess.onDestroy();
149 148
    DistortedMaster.onDestroy();
150 149
    EffectQueue.onDestroy();
151
    MeshObject.onDestroy();
152 150
    EffectMessageSender.stopSending();
153 151

  
154 152
    mInitialized = false;

Also available in: Unified diff