net.dzzd.access
Interface IRender2DMode

All Known Subinterfaces:
IRender2D, IRender3D

public interface IRender2DMode

Used for accessing rendering mode.
Use this interface to enable/disable rendering features : light,material,texture etc....

Since:
1.0
Version:
1.0, 01/01/04
Author:
Bruno Augier
See Also:
IRender2D, DzzD

Method Summary
 void disableRender2DMode(int flag)
          Disable rendering features.
 void enableRender2DMode(int flag)
          Enable rendering features.
 IRender2DMode getRender2DMode()
          Gets the RenderMode interface for this Mesh3D.
 int getRender2DModeFlags()
          Gets rendering mode.
 void setRender2DModeFlags(int flag)
          Sets rendering mode.
 

Method Detail

enableRender2DMode

public void enableRender2DMode(int flag)
Enable rendering features.
to enable lighting and texture do : enableRender2DMode(DzzD.LIGHT|DzzD.TEXTURE)

Parameters:
flag - a bit mask representation of features to enable

disableRender2DMode

public void disableRender2DMode(int flag)
Disable rendering features.
to disable mipmapping do : disableRender2DMode(DzzD.MIPMAP)

Parameters:
flag - a bit mask representation of features to disable

setRender2DModeFlags

public void setRender2DModeFlags(int flag)
Sets rendering mode.
to enable lighting and disable all other features do : setRenderMode(DzzD.LIGHT)

Parameters:
flag - a bit mask representation of features enabled

getRender2DModeFlags

public int getRender2DModeFlags()
Gets rendering mode.

Returns:
flag a bit mask representation of features enabled

getRender2DMode

public IRender2DMode getRender2DMode()
Gets the RenderMode interface for this Mesh3D.
RenderMode is used to enable/disable rendering features : lighting,texture,mipmapping.

Returns:
RenderMode interface to control this Mesh3D rendering.