graphics: Add comments

This commit is contained in:
Hajime Hoshi 2017-09-16 15:49:29 +09:00
parent 803aa77c20
commit fc125eb531
2 changed files with 3 additions and 0 deletions

View File

@ -281,6 +281,7 @@ func newImageWithScreenFramebuffer(width, height int, offsetX, offsetY float64)
return i
}
// MaxImageSize represents the maximum width/height of an image.
const MaxImageSize = restorable.MaxImageSize
func checkSize(width, height int) {

View File

@ -37,6 +37,7 @@ type command interface {
Exec(indexOffsetInBytes int) error
}
// commandQueue is a command queue for drawing commands.
type commandQueue struct {
commands []command
vertices []float32
@ -44,6 +45,7 @@ type commandQueue struct {
m sync.Mutex
}
// theCommandQueue is the command queue for the current process.
var theCommandQueue = &commandQueue{}
func (q *commandQueue) appendVertices(vertices []float32) {