|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface VertexShader
This interface defines an object which selects colors for vertices. Objects implementing this interface are passed to a ViewerCanvas to tell it how to render a surface interactively.
Method Summary | |
---|---|
void |
getColor(int face,
int vertex,
RGBColor color)
Select the color for a vertex. |
void |
getTextureSpec(TextureSpec spec)
Get the texture properties of the surface. |
boolean |
isUniformFace(int face)
Get whether a particular face should be rendered with a single uniform color. |
boolean |
isUniformTexture()
Get whether this shader represents a uniform texture. |
Method Detail |
---|
void getColor(int face, int vertex, RGBColor color)
face
- the index of the triangle being renderedvertex
- the index of the vertex to colorcolor
- the vertex color will be returned in this objectboolean isUniformFace(int face)
face
- the index of the triangle being renderedboolean isUniformTexture()
void getTextureSpec(TextureSpec spec)
spec
- the surface properties will be returned in this object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |