samples

package
v1.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 8, 2018 License: Apache-2.0 Imports: 5 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL