Java Bindings for OpenGL: Difference between revisions

Content deleted Content added
Yobot (talk | contribs)
m WP:CHECKWIKI error fixes + general fixes, References after punctuation per WP:REFPUNC and WP:PAIC using AWB (7510)
Line 1:
{{noref|date=August 2010}}
{{examplefarm|date=August 2010}}
'''Java Binding for the OpenGL API''' is a [[Java Community Process|JSR]] [[API]] specification (JSR 231) for the [[Java SE]] platform which allows to use [[OpenGL]] <ref>All functions in core OpenGL 2.0 have been included.</ref> on the [[Java Platform]]. There is also '''Java Binding for the OpenGL ES API''' (JSR 239) for the [[Java ME]] platform.
 
== Programming concepts ==
Core OpenGL API and [[OpenGL Utility Library|GLU]] library calls are available from [[Java (programming language)|Java]] through a thin wrapper looking very much as the original OpenGL [[C (programming language)|C]] API .<ref>Except GLU [[Nonuniform rational B-spline|NURBS]] routines which are not exposed through the public API.</ref>.
 
All platform specific libraries (available from the [[Core OpenGL|CGL]] API for [[Mac OS X]], [[GLX]] for [[X Window System]], and [[WGL (software)|WGL]] for [[Microsoft Windows]]) are also abstracted out to create a platform independent way of selecting [[Framebuffer]] attributes and performing platform specific Framebuffer operations.<ref>Platform-specific extensions are not included in the public API. Each implementation can choose to export some of these APIs via the [http://download.java.net/media/jogl/builds/nightly/javadoc_public/javax/media/opengl/GL.html#getPlatformGLExtensions() GL.getPlatformGLExtensions()] and [http://download.java.net/media/jogl/builds/nightly/javadoc_public/javax/media/opengl/GL.html#getExtension() GL.getExtension(String)] method calls which return Objects whose data types are specific to the given implementation.</ref>.
 
==Example==
This examples shows how to draw a polygon (without initialization or repaint code) .<ref>Borrowed from the [http://nehe.gamedev.net/lesson.asp?index=01 Nehe tutorial], whose code is free to use elsewhere.</ref>. Here is the reference [[C (programming language)|C]] implementation:
<source lang="c">
int DrawGLScene(GLvoid) {
Line 57:
== Implementations ==
*[[Java OpenGL]] : The reference implementation, available on [[Microsoft Windows]], [[Linux]], [[Mac OS X]], and [[Solaris (operating system)|Solaris]] platforms.
 
== References ==
<references/>
 
== See also ==
*[[OpenGL]]
*[[Java Community Process]]
 
== References ==
<references/>
 
== External links ==
Line 71:
*[http://download.java.net/media/jogl/builds/nightly/javadoc_public/overview-summary.html JSR 231 Specification (draft)]
 
{{DEFAULTSORT:Java Bindings For Opengl}}
[[Category:Java platform]]
[[Category:Java specification requests]]