add doc on default vertex properties values

This commit is contained in:
faiface 2017-01-12 13:50:06 +01:00
parent c12e7633a2
commit b610760f1c
1 changed files with 6 additions and 0 deletions

View File

@ -60,12 +60,16 @@ type Drawer interface {
}
// TrianglesPosition specifies Triangles with Position property.
//
// Default value for a position is (0, 0).
type TrianglesPosition interface {
Triangles
Position(i int) Vec
}
// TrianglesColor specifies Triangles with Color property.
//
// Default value for a color is the white color.
type TrianglesColor interface {
Triangles
Color(i int) color.Color
@ -74,6 +78,8 @@ type TrianglesColor interface {
// TrianglesTexture specifies Triangles with Texture propery.
//
// Note that this represents texture coordinates, not an actual texture.
//
// Default value for a texture is (-1, -1), which means 'no texture'.
type TrianglesTexture interface {
Triangles
Texture(i int) Vec