Documentation ¶
Index ¶
- Constants
- Variables
- func FragmentShader(s string) uint32
- func Move(x1, y1, x2, y2 float32) error
- func Program(fsh, vsh uint32) uint32
- func Screenshot(window mandala.Window) image.Image
- func Tap(x, y float32) error
- func VertexShader(s string) uint32
- type TestSuite
- func (t *TestSuite) AfterAll()
- func (t *TestSuite) BeforeAll()
- func (t *TestSuite) TestActionMove()
- func (t *TestSuite) TestActionUpDown()
- func (t *TestSuite) TestAudio()
- func (t *TestSuite) TestBasicCreationSequence()
- func (t *TestSuite) TestBasicExitSequence()
- func (t *TestSuite) TestDraw()
- func (t *TestSuite) TestResourceManager()
Constants ¶
View Source
const ( FRAMES_PER_SECOND = 15 GOPHER_PNG = "gopher.png" TIMEOUT = time.Second * 30 )
Variables ¶
View Source
var (
Width, Height int = 320, 480
)
Functions ¶
func FragmentShader ¶
Create a fragment shader from a string and return its reference.
func Screenshot ¶
Screenshot takes a screenshot of the current window and return a RGBA image.Image.
func VertexShader ¶
Create a vertex shader from a string and return its reference.
Types ¶
type TestSuite ¶
type TestSuite struct { prettytest.Suite // contains filtered or unexported fields }
func NewTestSuite ¶
func NewTestSuite() *TestSuite
func (*TestSuite) TestActionMove ¶
func (t *TestSuite) TestActionMove()
func (*TestSuite) TestActionUpDown ¶
func (t *TestSuite) TestActionUpDown()
func (*TestSuite) TestBasicCreationSequence ¶
func (t *TestSuite) TestBasicCreationSequence()
func (*TestSuite) TestBasicExitSequence ¶
func (t *TestSuite) TestBasicExitSequence()
func (*TestSuite) TestResourceManager ¶
func (t *TestSuite) TestResourceManager()
Click to show internal directories.
Click to hide internal directories.