Java Code Examples for com.watabou.glwrap.Quad#create()
The following examples show how to use
com.watabou.glwrap.Quad#create() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: SurfaceScene.java From YetAnotherPixelDungeon with GNU General Public License v3.0 | 5 votes |
public Sky( boolean dayTime ) { super( 0, 0, 1, 1 ); texture = new Gradient( dayTime ? day : night ); float[] vertices = new float[16]; verticesBuffer = Quad.create(); vertices[2] = 0.25f; vertices[6] = 0.25f; vertices[10] = 0.75f; vertices[14] = 0.75f; vertices[3] = 0; vertices[7] = 1; vertices[11] = 1; vertices[15] = 0; vertices[0] = 0; vertices[1] = 0; vertices[4] = 1; vertices[5] = 0; vertices[8] = 1; vertices[9] = 1; vertices[12] = 0; vertices[13] = 1; verticesBuffer.position( 0 ); verticesBuffer.put( vertices ); }
Example 2
Source File: SurfaceScene.java From unleashed-pixel-dungeon with GNU General Public License v3.0 | 5 votes |
public Sky( boolean dayTime ) { super( 0, 0, 1, 1 ); texture = new Gradient( dayTime ? day : night ); float[] vertices = new float[16]; verticesBuffer = Quad.create(); vertices[2] = 0.25f; vertices[6] = 0.25f; vertices[10] = 0.75f; vertices[14] = 0.75f; vertices[3] = 0; vertices[7] = 1; vertices[11] = 1; vertices[15] = 0; vertices[0] = 0; vertices[1] = 0; vertices[4] = 1; vertices[5] = 0; vertices[8] = 1; vertices[9] = 1; vertices[12] = 0; vertices[13] = 1; verticesBuffer.position( 0 ); verticesBuffer.put( vertices ); }
Example 3
Source File: SurfaceScene.java From pixel-dungeon with GNU General Public License v3.0 | 5 votes |
public Sky( boolean dayTime ) { super( 0, 0, 1, 1 ); texture = new Gradient( dayTime ? day : night ); float[] vertices = new float[16]; verticesBuffer = Quad.create(); vertices[2] = 0.25f; vertices[6] = 0.25f; vertices[10] = 0.75f; vertices[14] = 0.75f; vertices[3] = 0; vertices[7] = 1; vertices[11] = 1; vertices[15] = 0; vertices[0] = 0; vertices[1] = 0; vertices[4] = 1; vertices[5] = 0; vertices[8] = 1; vertices[9] = 1; vertices[12] = 0; vertices[13] = 1; verticesBuffer.position( 0 ); verticesBuffer.put( vertices ); }
Example 4
Source File: SurfaceScene.java From shattered-pixel-dungeon with GNU General Public License v3.0 | 5 votes |
public Sky( boolean dayTime ) { super( 0, 0, 1, 1 ); texture = TextureCache.createGradient( dayTime ? day : night ); float[] vertices = new float[16]; verticesBuffer = Quad.create(); vertices[2] = 0.25f; vertices[6] = 0.25f; vertices[10] = 0.75f; vertices[14] = 0.75f; vertices[3] = 0; vertices[7] = 1; vertices[11] = 1; vertices[15] = 0; vertices[0] = 0; vertices[1] = 0; vertices[4] = 1; vertices[5] = 0; vertices[8] = 1; vertices[9] = 1; vertices[12] = 0; vertices[13] = 1; verticesBuffer.position( 0 ); verticesBuffer.put( vertices ); }
Example 5
Source File: SurfaceScene.java From remixed-dungeon with GNU General Public License v3.0 | 5 votes |
public Sky( boolean dayTime ) { super( 0, 0, 1, 1 ); texture = new Gradient( dayTime ? day : night ); float[] vertices = new float[16]; verticesBuffer = Quad.create(); vertices[2] = 0.25f; vertices[6] = 0.25f; vertices[10] = 0.75f; vertices[14] = 0.75f; vertices[3] = 0; vertices[7] = 1; vertices[11] = 1; vertices[15] = 0; vertices[0] = 0; vertices[1] = 0; vertices[4] = 1; vertices[5] = 0; vertices[8] = 1; vertices[9] = 1; vertices[12] = 0; vertices[13] = 1; verticesBuffer.position( 0 ); verticesBuffer.put( vertices ); }
Example 6
Source File: SurfaceScene.java From shattered-pixel-dungeon-gdx with GNU General Public License v3.0 | 5 votes |
public Sky( boolean dayTime ) { super( 0, 0, 1, 1 ); texture = TextureCache.createGradient( dayTime ? day : night ); float[] vertices = new float[16]; verticesBuffer = Quad.create(); vertices[2] = 0.25f; vertices[6] = 0.25f; vertices[10] = 0.75f; vertices[14] = 0.75f; vertices[3] = 0; vertices[7] = 1; vertices[11] = 1; vertices[15] = 0; vertices[0] = 0; vertices[1] = 0; vertices[4] = 1; vertices[5] = 0; vertices[8] = 1; vertices[9] = 1; vertices[12] = 0; vertices[13] = 1; verticesBuffer.position( 0 ); verticesBuffer.put( vertices ); }
Example 7
Source File: Image.java From YetAnotherPixelDungeon with GNU General Public License v3.0 | 4 votes |
public Image() { super( 0, 0, 0, 0 ); vertices = new float[16]; verticesBuffer = Quad.create(); }
Example 8
Source File: Image.java From shattered-pixel-dungeon with GNU General Public License v3.0 | 4 votes |
public Image() { super( 0, 0, 0, 0 ); vertices = new float[16]; verticesBuffer = Quad.create(); }
Example 9
Source File: Image.java From remixed-dungeon with GNU General Public License v3.0 | 4 votes |
public Image() { super( 0, 0, 0, 0 ); vertices = new float[16]; verticesBuffer = Quad.create(); }
Example 10
Source File: SystemTextLine.java From remixed-dungeon with GNU General Public License v3.0 | 4 votes |
public SystemTextLine() { super( 0, 0, 0, 0 ); vertices = new float[16]; verticesBuffer = Quad.create(); }
Example 11
Source File: Image.java From PD-classes with GNU General Public License v3.0 | 4 votes |
public Image() { super( 0, 0, 0, 0 ); vertices = new float[16]; verticesBuffer = Quad.create(); }
Example 12
Source File: Image.java From shattered-pixel-dungeon-gdx with GNU General Public License v3.0 | 4 votes |
public Image() { super( 0, 0, 0, 0 ); vertices = new float[16]; verticesBuffer = Quad.create(); }