Project

General

Profile

« Previous | Next » 

Revision 42571056

Added by Leszek Koltunski about 7 years ago

Preparation for Transfer Feedback: Convert the meshes from client-side to VBOs.

View differences:

src/main/java/org/distorted/library/DistortedOutputSurface.java
234 234
    {
235 235
    // change tree topology (attach and detach children)
236 236
/*
237
    boolean changed =
237
    boolean changed1 =
238 238
*/
239 239
    DistortedMaster.toDo();
240 240
/*
241
    // debugging only
242
    if( changed )
241
    if( changed1 )
243 242
      {
244 243
      for(int i=0; i<mNumChildren; i++)
245 244
        {
......
254 253
    // with OpenGL resources. That's because changing Tree
255 254
    // can result in additional Framebuffers that would need
256 255
    // to be created immediately, before the calls to drawRecursive()
256
/*
257
    boolean changed2 =
258
*/
257 259
    toDo();
258 260
/*
259
    // debugging only
260
    if( changed )
261
    if( changed2 )
261 262
      {
262 263
      DistortedSurface.debugLists();
263 264
      }
265
*/
266
    // create and delete all Meshes (we need to create Vertex Buffer Objects)
267
/*
268
    boolean changed3 =
269
*/
270
    MeshObject.toDo();
271
/*
272
    if( changed3 )
273
      {
274
      MeshObject.debugLists();
275
      }
264 276
*/
265 277
    // mark OpenGL state as unknown
266 278
    DistortedRenderState.reset();

Also available in: Unified diff