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. // TrianglesPosition specifies Triangles with Position property.
//
// Default value for a position is (0, 0).
type TrianglesPosition interface { type TrianglesPosition interface {
Triangles Triangles
Position(i int) Vec Position(i int) Vec
} }
// TrianglesColor specifies Triangles with Color property. // TrianglesColor specifies Triangles with Color property.
//
// Default value for a color is the white color.
type TrianglesColor interface { type TrianglesColor interface {
Triangles Triangles
Color(i int) color.Color Color(i int) color.Color
@ -74,6 +78,8 @@ type TrianglesColor interface {
// TrianglesTexture specifies Triangles with Texture propery. // TrianglesTexture specifies Triangles with Texture propery.
// //
// Note that this represents texture coordinates, not an actual texture. // 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 { type TrianglesTexture interface {
Triangles Triangles
Texture(i int) Vec Texture(i int) Vec