This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* To change this template, choose Tools | Templates | |
* and open the template in the editor. | |
*/ | |
package communication; | |
import java.io.BufferedReader; | |
import java.io.BufferedWriter; | |
import java.io.IOException; | |
import java.io.InputStreamReader; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package mdes.j4k.tools; | |
import java.awt.Toolkit; | |
import java.awt.datatransfer.Clipboard; | |
import java.awt.datatransfer.StringSelection; | |
public class ArrayTranslate { | |
/** Max number of entities */ | |
public static final int COUNT = 10; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
final Element position = new Element(new GenericVector(DataType.FLOAT, 3), "Position"); | |
DataLayout layout = new DataLayout(position); | |
VertexBuffer vertexBuffer = new VertexBuffer(layout, 100); | |
//Erstellt eine tessiliertes Quadrat, | |
//der tessFactor sagt wieviele spalten udn reihen es geben soll | |
CellFactory factory = new CellFactory(10); | |
factory.createCell(new Vector2(0,0)); | |
factory.fillVBufferPerVertex(vertexBuffer, new PerVertexFiller() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Element position = new Element(new GenericVector(DataType.FLOAT, 3), "Position"); | |
DataLayout layout = new DataLayout(position); | |
VertexBuffer vertexBuffer = new VertexBuffer(layout, 100); | |
vertexBuffer.fullyInitialize(); | |
for(Vertex v: vertexBuffer) | |
{ | |
v.setAttribute(position, 3f, 2f, 4f); | |
} |
NewerOlder