Documentation ¶
Overview ¶
Package vpwire implements basic wireframe rendering, mostly for testing purposes.
Index ¶
Constants ¶
const DemoHeight int = 900
DemoHeight is the height used for demo/test rendering.
const DemoWidth int = 1600
DemoWidth is the width used for demo/test rendering.
const PackageCopyright = "Copyright (C) 2015, 2016 Christian Mauduit <ufoot@ufoot.org>" // PackageCopyright set by version.sh
PackageCopyright contains a short copyright notice.
const PackageEmail = "ufoot@ufoot.org" // PackageEmail set by version.sh
PackageEmail contains a contact email for the package.
const PackageLicense = "GNU GPL v3" // PackageLicense set by version.sh
PackageLicense contains a short license information.
const PackageName = "Vapor Toolkit" // PackageName set by version.sh
PackageName contains a readable name of the package, suitable for display.
const PackageTarname = "vapor" // PackageTarname set by version.sh
PackageTarname contains a short name of the package, suitable for a filename.
const PackageURL = "https://github.com/ufoot/vapor" // PackageURL set by version.sh
PackageURL contains the address of the project homepage.
const VersionMajor = 0 // VersionMajor set by version.sh
VersionMajor is the project major version.
const VersionMinor = 4 // VersionMinor set by version.sh
VersionMinor is the project minor version.
const VersionStamp = "c6a4298" // VersionStamp set by version.sh
VersionStamp is the project stamp, possibly changes for each build.
Variables ¶
This section is empty.
Functions ¶
func F64Demo ¶
F64Demo draws a line for demo purposes, creates an image on the fly, with default point-of-view, perspective and other parameters, can typically be used for testing, not testing this package, but possibly testing out point transformations functions (Bezier curves is an example).
Types ¶
type DrawMode ¶
type DrawMode int
DrawMode defines how to draw stuff, including lines. Inspired from OpenGL GL_POINTS, GL_LINES or GL_TRIANGLES.
const ( // DrawPoints causes all points to be drawn individually, as points. DrawPoints DrawMode = iota // DrawLines is used to to draw lines with odd index points considered // as the begin point of line number index/2 and even index points considered // as the end point of line (index-1)/2. DrawLines // DrawTriangles groups points by pack of three, and then draws a triangle // joining these three points. DrawTriangles )