Java Code Examples for com.jogamp.opengl.GL3#GL_LINES

The following examples show how to use com.jogamp.opengl.GL3#GL_LINES . 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: LineBatcher.java    From constellation with Apache License 2.0 5 votes vote down vote up
public LineBatcher() {

        // Create the batch
        batch = new Batch(GL3.GL_LINES);
        colorTarget = batch.newFloatBuffer(COLOR_BUFFER_WIDTH, false);
        connectionInfoTarget = batch.newIntBuffer(CONNECTION_INFO_BUFFER_WIDTH, false);
    }
 
Example 2
Source File: AxesRenderable.java    From constellation with Apache License 2.0 4 votes vote down vote up
public AxesRenderable(final GLVisualProcessor parent) {
    this.parent = parent;
    axesBatch = new Batch(GL3.GL_LINES);
    colorTarget = axesBatch.newFloatBuffer(COLOR_BUFFER_WIDTH, true);
    vertexTarget = axesBatch.newFloatBuffer(VERTEX_BUFFER_WIDTH, true);
}
 
Example 3
Source File: NewLineRenderable.java    From constellation with Apache License 2.0 4 votes vote down vote up
public NewLineRenderable(final GLVisualProcessor parent) {
    this.parent = parent;
    batch = new Batch(GL3.GL_LINES);
    colorTarget = batch.newFloatBuffer(COLOR_BUFFER_WIDTH, true);
    vertexTarget = batch.newFloatBuffer(VERTEX_BUFFER_WIDTH, true);
}