modules/graphics/src/main/java/com/sun/prism/MeshView.java

Print this page




  29 
  30 /**
  31  * TODO: 3D - Need documentation
  32  * This class represents new retained mode rendering object
  33  * it has a { mesh, material, position, lights and other common rendering properties
  34  */
  35 public interface MeshView {
  36 
  37     public final static int CULL_NONE = CullFace.NONE.ordinal();
  38     public final static int CULL_BACK = CullFace.BACK.ordinal();
  39     public final static int CULL_FRONT = CullFace.FRONT.ordinal();
  40 
  41     public void setCullingMode(int mode);
  42 
  43     public void setMaterial(Material material);
  44 
  45     public void setWireframe(boolean wireframe);
  46 
  47     public void setAmbientLight(float r, float g, float b);
  48 
  49     public void setPointLight(int index,
  50             float x, float y, float z,
  51             float r, float g, float b, float w);
  52 
  53     public void render(Graphics g);
  54 }


  29 
  30 /**
  31  * TODO: 3D - Need documentation
  32  * This class represents new retained mode rendering object
  33  * it has a { mesh, material, position, lights and other common rendering properties
  34  */
  35 public interface MeshView {
  36 
  37     public final static int CULL_NONE = CullFace.NONE.ordinal();
  38     public final static int CULL_BACK = CullFace.BACK.ordinal();
  39     public final static int CULL_FRONT = CullFace.FRONT.ordinal();
  40 
  41     public void setCullingMode(int mode);
  42 
  43     public void setMaterial(Material material);
  44 
  45     public void setWireframe(boolean wireframe);
  46 
  47     public void setAmbientLight(float r, float g, float b);
  48 
  49     public void setPointLight(int index, float pixelScaleFactor,
  50             float x, float y, float z,
  51             float r, float g, float b, float w);
  52 
  53     public void render(Graphics g);
  54 }