public static void glCallList( int list) { gl().glCallList( list); }
protected void execute(GL gl, GLU glu, Camera cam) { doTransform(gl, glu, cam); gl.getGL2().glCallList(dlID); }
@Override void callDisplayList(Context ctx, int id, boolean isNonUniformScale) { if (VERBOSE) System.err.println("JoglPipeline.callDisplayList()"); if (id <= 0) { if (numInvalidLists < 3) { ++numInvalidLists; System.err.println("JAVA 3D ERROR : glCallList(" + id + ") -- IGNORED"); } else if (numInvalidLists == 3) { ++numInvalidLists; System.err.println("JAVA 3D : further glCallList error messages discarded"); } return; } GL2 gl = context(ctx).getGL().getGL2(); // Set normalization if non-uniform scale if (isNonUniformScale) { gl.glEnable(GL2.GL_NORMALIZE); } gl.glCallList(id); // Turn normalization back off if (isNonUniformScale) { gl.glDisable(GL2.GL_NORMALIZE); } }
@Override public void onDraw(GL2 gl) { if (this.currentLinkWidthCorrection != OTFClientControl.getInstance().getOTFVisConfig().getLinkWidth()){ this.currentLinkWidthCorrection = OTFClientControl.getInstance().getOTFVisConfig().getLinkWidth(); this.recalculatePositions(); gl.glDeleteLists(this.glNetList, 1); this.glNetList = -1; } if (this.glNetList < 0){ this.updateNetList(gl); } gl.glCallList(this.glNetList); for (VisLinkWLanes laneLinkData : this.lanesLinkData.values()){ this.drawLinkEndsAndSignals(gl, laneLinkData); } }
public void draw(GL2 gl, Camera camera, LOD pLod) { Model model2 = modelLod.get(pLod); if (model2 != null) { Integer dl = getDisplayList(model2); if (dl == null) { dl = createDisplayList(gl, model2); } gl.glEnable(GLLightingFunc.GL_NORMALIZE); for (Point2d hook : hookPoints) { gl.glPushMatrix(); gl.glTranslated(getGlobalX() + hook.x, 0, -(getGlobalY() + hook.y)); gl.glScaled(scale.x, scale.y, scale.z); gl.glCallList(dl); gl.glPopMatrix(); } gl.glDisable(GLLightingFunc.GL_NORMALIZE); } }
float b = node.b(); gl.glColor3f(r + (lightColor[0] - r) * lightColorFactor, g + (lightColor[1] - g) * lightColorFactor, b + (lightColor[2] - b) * lightColorFactor); gl.glCallList(modelType); if (modelBorderType != 0) { float rborder = 0.498f * r; float bborder = 0.498f * b; gl.glColor3f(rborder + (lightColor[0] - rborder) * lightColorFactor, gborder + (lightColor[1] - gborder) * lightColorFactor, bborder + (lightColor[2] - bborder) * lightColorFactor); gl.glCallList(modelBorderType); float b = node.b(); gl.glColor3f(r, g, b); gl.glCallList(modelType); if (modelBorderType != 0) { float rborder = 0.498f * r; float bborder = 0.498f * b; gl.glColor3f(rborder, gborder, bborder); gl.glCallList(modelBorderType); gl.glCallList(modelType); if (modelBorderType != 0) { gl.glColor3f(rborder, gborder, bborder); gl.glCallList(modelBorderType);
@Override public void display(GLAutoDrawable glAutoDrawable) { GL2 gl = (GL2) glAutoDrawable.getGL(); OTFClientControl.getInstance().getMainOTFDrawer().setFrustrum(gl); float[] backgroundColor = OTFClientControl.getInstance().getOTFVisConfig().getBackgroundColor().getColorComponents(new float[4]); gl.glClearColor(backgroundColor[0], backgroundColor[1], backgroundColor[2], backgroundColor[3]); gl.glClear( GL2.GL_COLOR_BUFFER_BIT | GL2.GL_DEPTH_BUFFER_BIT); float[] networkColor = OTFClientControl.getInstance().getOTFVisConfig().getNetworkColor().getColorComponents(new float[4]); gl.glColor4d(networkColor[0], networkColor[1], networkColor[2], networkColor[3]); checkNetList(glAutoDrawable); gl.glCallList(netDisplList); }
gl.glCallList(displayListMap.get(currentc)); Tools.checkGLError("glCallList"); gl.glPopAttrib(); gl.glCallList(displayListMap.get(currentc)); Tools.checkGLError("glCallList");
glslFinal.setUniform(gl, "BackgroundColor", g_backgroundColor, 3); glslFinal.bindTextureRECT(gl, "ColorTex", g_accumulationTexId[0], 0); gl.glCallList(g_quadDisplayList); glslFinal.unbind(gl);
glslFinal.bindTextureRECT(gl, "ColorTex0", g_accumulationTexId[0], 0); glslFinal.bindTextureRECT(gl, "ColorTex1", g_accumulationTexId[1], 1); gl.glCallList(g_quadDisplayList); glslFinal.unbind(gl);
gl.glCallList(g_quadDisplayList); glslBlend.unbind(gl); glslFinal.setUniform(gl, "BackgroundColor", g_backgroundColor, 3); glslFinal.bindTextureRECT(gl, "ColorTex", g_frontColorBlenderTexId[0], 0); gl.glCallList(g_quadDisplayList); glslFinal.unbind(gl);
gl.glCallList(g_quadDisplayList); glslBlend.unbind(gl); glslFinal.bindTextureRECT(gl, "FrontBlenderTex", g_dualFrontBlenderTexId[currId], 1); glslFinal.bindTextureRECT(gl, "BackBlenderTex", g_dualBackBlenderTexId[0], 2); gl.glCallList(g_quadDisplayList); glslFinal.unbind(gl);