Revision e0b6c593
Added by Leszek Koltunski over 7 years ago
src/main/java/org/distorted/library/GridObject.java | ||
---|---|---|
24 | 24 |
import android.opengl.GLES20; |
25 | 25 |
|
26 | 26 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
27 |
|
|
27 |
/** |
|
28 |
* Abstract class which represents a Grid, ie 3 arrays of Vertex attributes: 1) positions |
|
29 |
* 2) normals 3) texture coordinates. |
|
30 |
* <p> |
|
31 |
* If you want to render to a particular shape, extend from here, construct the three FloatBuffers and |
|
32 |
* provide correct dataLength, i.e. the number of vertices. |
|
33 |
*/ |
|
28 | 34 |
public abstract class GridObject |
29 | 35 |
{ |
30 | 36 |
protected static final int BYTES_PER_FLOAT = 4; // |
Also available in: Unified diff
Javadoc