encyclopegia.org

Java Bindings for OpenGL

Java Binding for the OpenGL API is a JSR API specification (JSR 231) for the Java Platform, Standard Edition which allows to use OpenGL on the Java (software platform).[src] There is also Java Binding for the OpenGL ES API (JSR 239) for the Java Platform, Micro Edition.[src]

Java Binding for the OpenGL API is a JSR API specification (JSR 231) for the Java Platform, Standard Edition which allows to use OpenGL on the Java (software platform).[src] There is also Java Binding for the OpenGL ES API (JSR 239) for the Java Platform, Micro Edition.[src] ==Example== This example shows how to draw a polygon (without initialization or repaint code).[src] Here is the reference C implementation: int DrawGLScene(GLvoid) { glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); glLoadIdentity(); glTranslatef(-1.5f, 0.0f, -6.0f); // Move Left 1.5 Units glBegin(GL_TRIANGLES); //Drawing Using Triangles glVertex3f( 0.0f, 1.0f, 0.0f); // Top glVertex3f(-1.0f,-1.0f, 0.0f); // Bottom Left glVertex3f( 1.0f,-1.0f, 0.0f); // Bottom Right glEnd(); glTranslatef(3.0f, 0.0f, 0.0f); glBegin(GL_QUADS); // Draw A Quad glVertex3f(-1.0f, 1.0f, 0.0f); // Top Left glVertex3f( 1.0f, 1.0f, 0.0f); // Top Right glVertex3f( 1.0f,-1.0f, 0.0f); // Bottom Right glVertex3f(-1.0f,-1.0f, 0.0f); // Bottom Left glEnd(); glFlush(); return TRUE; } Which translates to the following Java implementation: public void display(GLAutoDrawable glDrawable) { final GL gl = glDrawable.getGL(); gl.glClear(GL.GL_COLOR_BUFFER_BIT | GL.GL_DEPTH_BUFFER_BIT); gl.glLoadIdentity(); gl.glTranslatef(-1.5f, 0.0f, -6.0f); // Move Left 1.5 Units gl.glBegin(GL.GL_TRIANGLES); // Drawing Using Triangles gl.glVertex3f( 0.0f, 1.0f, 0.0f); // Top gl.glVertex3f(-1.0f,-1.0f, 0.0f); // Bottom Left gl.glVertex3f( 1.0f,-1.0f, 0.0f); // Bottom Right gl.glEnd(); gl.glTranslatef(3.0f, 0.0f, 0.0f); gl.glBegin(GL.GL_QUADS); // Draw A Quad gl.glVertex3f(-1.0f, 1.0f, 0.0f); // Top Left gl.glVertex3f( 1.0f, 1.0f, 0.0f); // Top Right gl.glVertex3f( 1.0f,-1.0f, 0.0f); // Bottom Right gl.glVertex3f(-1.0f,-1.0f, 0.0f); // Bottom Left gl.glEnd(); gl.glFlush(); } JSR web page for Java Binding for the OpenGL API JSR web page for Java Binding for the OpenGL ES API JOGL home page JSR 231 Specification (draft)[src]

6 sentences · 6 cited inline · 0 references stored

References

No reference rows published for this article.

Cite this article

MLA

"Java Bindings for OpenGL." encyclopegia.org, 2026, https://encyclopegia.org/wiki/java-bindings-for-opengl. Accessed 02 December 2026.

Chicago

"Java Bindings for OpenGL." encyclopegia.org. Accessed December 2, 2026. https://encyclopegia.org/wiki/java-bindings-for-opengl.

APA

encyclopegia.org. (2026). Java Bindings for OpenGL. Retrieved December 2, 2026, from https://encyclopegia.org/wiki/java-bindings-for-opengl

Accessed December 2, 2026 · CC BY-SA 4.0 · citation page · JSON

Related articles

East Java

stub · references available

Java remote method invocation

stub · references available

Java Native Interface

stub · references available

Java Platform Debugger Architecture

stub · references available

Java XML Binding

stub · references available

Java Portlet Specification

stub · references available

Ontong Java Atoll

stub · references available

plain old Java object

stub · references available
CC BY-SA 4.0 · share-alike · https://en.wikipedia.org/w/index.php?oldid=1332132815 · 0.5 · snapshot enwiki-001332132815

Cite · JSON · Search

Related services and records

Services

  • Estate — measured countries, lanes and facts
  • Intel — live corroborated events
  • Legal — statutes, cases and citations
  • Encyclopedia — articles with inline sources
  • Space — launches, satellites and orbits
  • Search — federated search and reports
  • Pass — passport account and SSO
  • Corpora — read-only corpus origins
  • e01 — self-hosted corpora and tools
  • Careers — open roles: frontier engineers and sales partners
  • Index — every corpus, paper and record
  • Estate guide — what a public data estate is
  • Founder — Lois-Kleinner Alpasan
  • Records — DOIs and external deposits
  • Documents — one-pagers, PDFs and QR codes
  • Brand kit — logos and share images
  • Papers — plain-language briefs with citations
  • Browser — search engine, PWA and bookmarklet
  • Anticloud — the operator and its projects

As seen in Business Insider · 336 outlets · evidence DOIs · plain-language papers

Text and metadata only; each target carries its own sources. Missing data is published as no-data, never estimated.