Project

General

Profile

« Previous | Next » 

Revision 7602a827

Added by Leszek Koltunski about 5 years ago

Rename all the classes that are not exported to application to 'Internal'

View differences:

src/main/java/org/distorted/library/mesh/MeshBase.java
1 1
///////////////////////////////////////////////////////////////////////////////////////////////////
2 2
// Copyright 2016 Leszek Koltunski                                                               //
3 3
//                                                                                               //
4
// This file is part of Distorted.                                                               //
4
// This file is part of DistortedLibrary.                                                               //
5 5
//                                                                                               //
6
// Distorted is free software: you can redistribute it and/or modify                             //
6
// DistortedLibrary is free software: you can redistribute it and/or modify                             //
7 7
// it under the terms of the GNU General Public License as published by                          //
8 8
// the Free Software Foundation, either version 2 of the License, or                             //
9 9
// (at your option) any later version.                                                           //
10 10
//                                                                                               //
11
// Distorted is distributed in the hope that it will be useful,                                  //
11
// DistortedLibrary is distributed in the hope that it will be useful,                                  //
12 12
// but WITHOUT ANY WARRANTY; without even the implied warranty of                                //
13 13
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the                                 //
14 14
// GNU General Public License for more details.                                                  //
15 15
//                                                                                               //
16 16
// You should have received a copy of the GNU General Public License                             //
17
// along with Distorted.  If not, see <http://www.gnu.org/licenses/>.                            //
17
// along with DistortedLibrary.  If not, see <http://www.gnu.org/licenses/>.                            //
18 18
///////////////////////////////////////////////////////////////////////////////////////////////////
19 19

  
20 20
package org.distorted.library.mesh;
21 21

  
22 22
import android.opengl.GLES31;
23 23

  
24
import org.distorted.library.main.Distorted;
25
import org.distorted.library.main.DistortedBuffer;
24
import org.distorted.library.main.DistortedLibrary;
25
import org.distorted.library.main.InternalBuffer;
26 26
import org.distorted.library.program.DistortedProgram;
27 27

  
28 28
import java.nio.ByteBuffer;
......
61 61
   private static final int VERT_SIZE  = VERT_ATTRIBS*BYTES_PER_FLOAT;
62 62

  
63 63
   private boolean mShowNormals;       // when rendering this mesh, draw normal vectors?
64
   private DistortedBuffer mVBO, mTFO; // main vertex buffer and transform feedback buffer
64
   private InternalBuffer mVBO, mTFO; // main vertex buffer and transform feedback buffer
65 65
   private final float zFactor;        // strange workaround for the fact that we need to somehow store the 'depth'
66 66
                                       // of the Mesh. Used in DistortedEffects. See DistortedTexture.getDepth().
67 67
   private int mNumVertices;
......
75 75
     zFactor      = factor;
76 76
     mShowNormals = false;
77 77

  
78
     mVBO = new DistortedBuffer(GLES31.GL_ARRAY_BUFFER             , GLES31.GL_STATIC_READ);
79
     mTFO = new DistortedBuffer(GLES31.GL_TRANSFORM_FEEDBACK_BUFFER, GLES31.GL_STATIC_READ);
78
     mVBO = new InternalBuffer(GLES31.GL_ARRAY_BUFFER             , GLES31.GL_STATIC_READ);
79
     mTFO = new InternalBuffer(GLES31.GL_TRANSFORM_FEEDBACK_BUFFER, GLES31.GL_STATIC_READ);
80 80
     }
81 81

  
82 82
///////////////////////////////////////////////////////////////////////////////////////////////////
......
189 189
 */
190 190
   public void setShowNormals(boolean show)
191 191
     {
192
     mShowNormals = (Distorted.GLSL >= 300 && show);
192
     mShowNormals = (DistortedLibrary.GLSL >= 300 && show);
193 193
     }
194 194

  
195 195
///////////////////////////////////////////////////////////////////////////////////////////////////

Also available in: Unified diff