

Load and position sounds, control volume and pitch, and set listener position.For some reason the size if the window always stays the same size even when i change the width and the height. The SoundScape class wraps OpenAL and provides functions to Text can be drawn at any size, over the 3D scene or textured onto geometry,Ĭreate wide smoothly joined lines that can be textured and expanded into 3D shapes. Use billboarding to orient an object to face another.ĭraws text by mapping a texture image of characters onto quads. Use two cameras to move the viewpoint in a scene. Places the model in a simple sceneĪirplane model by Michael Speigner, available on Use GLModel to load and render a 3DS model. Use "ortho" mode to layer an image over a 3D scene, create a custom cursor, and draw text on screen. Animate the sceneĬombines perspective rendering with 2D rendering. Use textures, light and material properties to illuminate a small scene. GLApp_Demo_HelloWorld.java GLApp.java GLImage.java GLImage.java loads images for use in OpenGL. Useful functions to load images, setup display, keyboard, mouse, create textures, lights, etc. GLApp.javaĬontains functions to initialize and run an OpenGL app using LWJGL, including many This "Hello World" app is a bare bones demo of an OpenGL program made with GLApp. I use these classes as the foundation code to make digital artwork

Instructions to setup Eclipse GLApp project Tested in Win32 and Mac OS X.Īll the GLApp source code and demos are released under the Simplified BSD license, which allows this code to be reused and modified. Requires LWJGL version 2 and Java JRE 1.4_1 or higher. For excellent tutorials on OpenGL go to Nehe at or Nate Robbins tutorials. Although they illustrate aspects of OpenGL they are not meant to be OpenGL tutorials. Reusable code for programmers learning the LWJGL OpenGL Java binding. These demos are meant to provide practical GLApp has been extended with additional classes that provide advanced features such as: cameras, dynamic fonts, and shadows.

Some of the features provided by GLApp: initialize and run the application, handle timing, load images, convert pixel formats, create textures, lights and materials, load OBJ and 3DS models, render text, save screenhots, stencil buffer operations, create custom cursors, and more. Most of the code in GLApp can be easily cut-n-pasted to other programs. GLApp is intended for programmers that are new to OpenGL and want to get results quickly without having to learn a heavy code framework or game library. The demos are built on the GLApp foundation class, that provides easy access to OpenGL through a light, thin layer of clearly commented code. These applications demonstrate basic features of OpenGL, using the LWJGL Java/OpenGL binding.
