Project

General

Profile

« Previous | Next » 

Revision e92785ba

Added by Leszek Koltunski over 5 years ago

Small things.

View differences:

src/main/java/org/distorted/library/mesh/MeshBase.java
57 57
   ////////////////////////////////////////////////////////////////////////////////
58 58
   // derived classes need to compute and fill up those 2 variables with data
59 59
   // describing a particular shape. Having done so, call setData()
60
   int numVertices;
60
   int mNumVertices;
61 61
   FloatBuffer mVertAttribs;   // packed: PosX,PosY,PosZ, NorX,NorY,NorZ, TexS,TexT
62 62
   ////////////////////////////////////////////////////////////////////////////////
63 63

  
......
75 75
///////////////////////////////////////////////////////////////////////////////////////////////////
76 76
// when a derived class is done computing its mesh, it has to call this method.
77 77

  
78
   void setData(int size, FloatBuffer buffer)
78
   void setData(int numVertices, FloatBuffer vertAttribs)
79 79
     {
80
     mVBO.setData(size*VERTSIZE, buffer);
81
     mTFO.setData(size*TFSIZE  , null  );
80
     mVBO.setData(numVertices*VERTSIZE, vertAttribs);
81
     mTFO.setData(numVertices*TFSIZE  , null       );
82 82
     }
83 83

  
84 84
///////////////////////////////////////////////////////////////////////////////////////////////////
......
111 111
 */
112 112
   public int getNumVertices()
113 113
     {
114
     return numVertices;
114
     return mNumVertices;
115 115
     }
116 116

  
117 117
///////////////////////////////////////////////////////////////////////////////////////////////////

Also available in: Unified diff