Documentation ¶
Overview ¶
Package samples exposes functions for building simple GLES command streams.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClearBackbuffer ¶
func ClearBackbuffer(ctx context.Context, cb gles.CommandBuilder, ml *device.MemoryLayout) (cmds []api.Cmd, red, green, blue, black api.CmdID)
ClearBackbuffer returns the command list needed to create a context then clear, sequentially the backbuffer to red, green, blue and black.
func DrawTexturedSquare ¶
func DrawTexturedSquare(ctx context.Context, cb gles.CommandBuilder, sharedContext bool, ml *device.MemoryLayout) (cmds []api.Cmd, draw api.CmdID, swap api.CmdID)
DrawTexturedSquare returns the command list needed to create a context then draw a textured square.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.