Skip to content

shiningflash/Computer_Graphics

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Computer_Graphics

Java binding for OpenGL (JOGL) is an open source library for binding OpenGL graphics in Java. Since 2010, it has been an independent open source project under a BSD license. It is the reference implementation for Java Bindings for OpenGL. JOGL allows access to most OpenGL features available to C language programs through the use of the Java Native Interface (JNI). It offers access to both the standard GL* functions along with the GLU* functions; however the OpenGL Utility Toolkit (GLUT) library is not available for window-system related calls, as Java has its own windowing systems: Abstract Window Toolkit (AWT), Swing, and some extensions. Therefore, JOGL is an excellent choice to demonstrate the basic graphical rendering methodologies and transformations. Throughout the semester we will use JOGL to implement the basic rendering techniques.

Installing JOGL: Make sure that the Java Development Kit(JDK) is installed in your system. Make sure that a preferred IDE is installed. We will use Eclipse for our demonstration. Copy the necessary JOGL library files to your machine. You will find the files in the folder under the name “jogamp-all-platforms”. The location is as follows: (tsr->Faculty_Initital->CSE423 Computer Graphics Lab->Lab01) Open the Eclipse IDE. Go to window->preferences->java->buildPath->userLibrary Create a new user library name it JOGL (or something else) Add the following jars to it (you can find these jars in jogamp-all-platforms->jars)

1. gluegen-rt.jar
2. gluegen-rt-native-windows-amd64.jar
3. jogl-all.jar
4. jogl-all-native-windows-amd64.jar

If you are on a windows machine use jars like "gluegen-rt-native-windows-amd64.jar" and if you are on a 32 bit machine use jars like "gluegen-rt-native-linux-i586.jar"

Frome now on for every project you create goto project->properties->javaBuildPath->libraries->addLibrary->userLibrary-> add the library you just created


Here are some preview

view_line

view_circle_

view_circle

view_star

view_symbol

view_cube

view_clipped_line

Releases

No releases published

Packages

No packages published

Languages