Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## saito.objloader
Class Material

    java.lang.Object
      saito.objloader.Material

    public class Material

extends java.lang.Object

Author:
  tatsuyas

Field Summary
`float` | `d`
`float[]` | `Ka`
`float[]` | `Kd`
`float[]` | `Ks`
`PImage` | `map_Kd`
`java.lang.String` | `mtlName`

Constructor Summary
`Material()` Constructs a default Material object.

Method Summary
`void` | `beginDrawGL(GL gl, boolean useMaterial, boolean useTexture)`
`void` | `endDrawGL(GL gl, boolean useMaterial, boolean useTexture)`
`void` | `setupGL(GL gl, Debug debug)` Sets up the OPENGL material as a series of float and int buffers

Methods inherited from class java.lang.Object
`equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Field Detail

### map_Kd

    public PImage map_Kd

### Ka

    public float[] Ka

### Kd

    public float[] Kd

### Ks

    public float[] Ks

### d

    public float d

### mtlName

    public java.lang.String mtlName

Constructor Detail

### Material

    public Material()

  Constructs a default Material object.

Method Detail

### setupGL

    public void setupGL(GL gl,
                        Debug debug)

  Sets up the OPENGL material as a series of float and int buffers

  Parameters:
    `gl` -
    `debug` -

### beginDrawGL

    public void beginDrawGL(GL gl,
                            boolean useMaterial,
                            boolean useTexture)

### endDrawGL

    public void endDrawGL(GL gl,
                          boolean useMaterial,
                          boolean useTexture)

Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

processing library OBJLoader by Saito, Matt Ditton, Ekene Ijeoma. (c) 2010