md3.md3view
Class MD3GLModelUploadTextureVisitor

java.lang.Object
  |
  +--md3.md3model.MD3ModelVisitor
        |
        +--md3.md3view.MD3GLModelVisitor
              |
              +--md3.md3view.MD3GLModelUploadTextureVisitor

public class MD3GLModelUploadTextureVisitor
extends MD3GLModelVisitor

An MD3GLModel visitor that walks through a MD3GLModel structure and uploads all texture data of the visited models into a specified OpenGL context.

Author:
Erwin Vervaet (erwin@cs.kuleuven.ac.be)

Constructor Summary
MD3GLModelUploadTextureVisitor(MD3GLCanvas md3canvas)
          Create a new texture upload visitor that will upload data into the OpenGL context of the specified MD3GLCanvas.
 
Method Summary
static void uploadTextureData(gl4java.GLFunc gl, MD3GLTexture texture)
          Upload the data of the given texture into the given GL context.
 void visit(MD3GLModel model)
          Upload texture information associated with a model into the OpenGL Context.
 
Methods inherited from class md3.md3view.MD3GLModelVisitor
visit
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MD3GLModelUploadTextureVisitor

public MD3GLModelUploadTextureVisitor(MD3GLCanvas md3canvas)

Create a new texture upload visitor that will upload data into the OpenGL context of the specified MD3GLCanvas.

Parameters:
md3canvas - Texture data will be uploaded to this object's OpenGL context.
Method Detail

visit

public void visit(MD3GLModel model)

Upload texture information associated with a model into the OpenGL Context.

Overrides:
visit in class MD3GLModelVisitor
Parameters:
model - The model of which the textures will be uploaded.

uploadTextureData

public static void uploadTextureData(gl4java.GLFunc gl,
                                     MD3GLTexture texture)

Upload the data of the given texture into the given GL context.