Project

General

Profile

« Previous | Next » 

Revision 5f2a53b6

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/examples/deform/DeformRenderer.java
211 211
     int w=width/2;
212 212
     int h=height/2;
213 213

  
214
     if( stretchMesh!=null ) stretchMesh.markForDeletion();
215

  
214 216
     stretchMesh = new MeshFlat(50,50*h/w);
215 217
     Bitmap stretchBitmap = Bitmap.createBitmap(w,h, Bitmap.Config.ARGB_8888);
216 218
     stretchCanvas = new Canvas(stretchBitmap);

Also available in: Unified diff