net.jinx.video.multimodel
Class Scale
java.lang.Object
net.jinx.video.multimodel.Scale
- All Implemented Interfaces:
- Transform, MultipassVisible, Visible
public class Scale
- extends java.lang.Object
- implements Transform, MultipassVisible
Constructor Summary |
Scale(Visible child,
java.lang.String var,
float[] scale)
|
Method Summary |
void |
deinit(Context opt)
Deinitializes this Visible, disposing of any resources that it may be
using. |
void |
draw(Context opt)
Renders this Visible to glDrawable. |
void |
drawPass(Context opt,
Pass pass)
|
void |
init(Context opt)
Initializes this Visible, preparing it for rendering. |
void |
transform(net.jinx.db.Hierarchy h)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Scale
public Scale(Visible child,
java.lang.String var,
float[] scale)
- Parameters:
scale
- if any element is zero, the corresponding axis is ignored
for scaling. Otherwise, these operate as a scaling factor.
transform
public void transform(net.jinx.db.Hierarchy h)
- Specified by:
transform
in interface Transform
init
public void init(Context opt)
- Description copied from interface:
Visible
- Initializes this Visible, preparing it for rendering. If this Visible
contains other Visibles, then their init methods MUST be called
first. This is essential for DisplayList objects to function properly
and efficiently.
- Specified by:
init
in interface Visible
- Parameters:
opt
- describes the rendering options that are being used.
draw
public void draw(Context opt)
- Description copied from interface:
Visible
- Renders this Visible to glDrawable.
- Specified by:
draw
in interface Visible
- Parameters:
opt
- describes the rendering options that are being used.
drawPass
public void drawPass(Context opt,
Pass pass)
- Specified by:
drawPass
in interface MultipassVisible
deinit
public void deinit(Context opt)
- Description copied from interface:
Visible
- Deinitializes this Visible, disposing of any resources that it may be
using. If this Visible contains other Visibles, then their deinit
methods MUST be called last. This is important for display lists.
- Specified by:
deinit
in interface Visible
- Parameters:
opt
- describes the rendering options that are being used.