com.threerings.opengl.model.config
Class GeneratedStaticConfig.Quad

java.lang.Object
  extended by com.threerings.util.DeepObject
      extended by com.threerings.opengl.model.config.GeneratedStaticConfig.Generator
          extended by com.threerings.opengl.model.config.GeneratedStaticConfig.Quad
All Implemented Interfaces:
Exportable, Copyable, Cloneable
Enclosing class:
GeneratedStaticConfig

public static class GeneratedStaticConfig.Quad
extends GeneratedStaticConfig.Generator

Generates a simple quad with customizable level of tessellation.


Field Summary
 int divisionsX
          The number of divisions in the x direction.
 int divisionsY
          The number of divisions in the y direction.
 ConfigReference<MaterialConfig> material
          The material for the quad.
 float sizeX
          The size in the x direction.
 float sizeY
          The size in the y direction.
 
Constructor Summary
GeneratedStaticConfig.Quad()
           
 
Method Summary
 StaticConfig.Resolved generate(GlContext ctx, int influenceFlags)
          (Re)generates the geometry.
 
Methods inherited from class com.threerings.util.DeepObject
clone, copy, copy, equals, hashCode, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

sizeX

@Editable(min=0.0,
          step=0.01,
          hgroup="s")
public float sizeX
The size in the x direction.


sizeY

@Editable(min=0.0,
          step=0.01,
          hgroup="s")
public float sizeY
The size in the y direction.


divisionsX

@Editable(min=1.0,
          hgroup="d")
public int divisionsX
The number of divisions in the x direction.


divisionsY

@Editable(min=1.0,
          hgroup="d")
public int divisionsY
The number of divisions in the y direction.


material

@Editable(nullable=true)
public ConfigReference<MaterialConfig> material
The material for the quad.

Constructor Detail

GeneratedStaticConfig.Quad

public GeneratedStaticConfig.Quad()
Method Detail

generate

public StaticConfig.Resolved generate(GlContext ctx,
                                      int influenceFlags)
Description copied from class: GeneratedStaticConfig.Generator
(Re)generates the geometry.

Specified by:
generate in class GeneratedStaticConfig.Generator


Copyright © 2011. All Rights Reserved.