[ Contact ] [ Links ] [ Previous : 12 / 25 : Texture2D example code ] [ Up ] [ Next : 9 / 25 : Texture coordinates ]

Preparing for texture mapping

Getting a texture requires:

A file to load from disk or the Web

A TextureLoader to load that file or directly a BufferedImage or a RenderedImage

The TextureLoader utility loads an image from a file or URL, and returns an ImageComponent or Texture

An ImageComponent to hold the loaded image

Which in turn uses a standard BufferedImage

What is really important is to get an ImageComponent

ImageComponent is the base class for two image containers:

Methods on ImageComponent2D set the image it is holding

Methods


See the "Links" link above to find out the sources of the proposed informations
Pascal Vuylsteker / eScience / Computer Science / ANU
Last modified: 20/4/2004
TOC - Print
Send your comments at :
<Hugh.Fisher@anu.edu.au>