mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-25 19:28:57 +01:00
graphics: Add comments
This commit is contained in:
parent
803aa77c20
commit
fc125eb531
1
image.go
1
image.go
@ -281,6 +281,7 @@ func newImageWithScreenFramebuffer(width, height int, offsetX, offsetY float64)
|
|||||||
return i
|
return i
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// MaxImageSize represents the maximum width/height of an image.
|
||||||
const MaxImageSize = restorable.MaxImageSize
|
const MaxImageSize = restorable.MaxImageSize
|
||||||
|
|
||||||
func checkSize(width, height int) {
|
func checkSize(width, height int) {
|
||||||
|
@ -37,6 +37,7 @@ type command interface {
|
|||||||
Exec(indexOffsetInBytes int) error
|
Exec(indexOffsetInBytes int) error
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// commandQueue is a command queue for drawing commands.
|
||||||
type commandQueue struct {
|
type commandQueue struct {
|
||||||
commands []command
|
commands []command
|
||||||
vertices []float32
|
vertices []float32
|
||||||
@ -44,6 +45,7 @@ type commandQueue struct {
|
|||||||
m sync.Mutex
|
m sync.Mutex
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// theCommandQueue is the command queue for the current process.
|
||||||
var theCommandQueue = &commandQueue{}
|
var theCommandQueue = &commandQueue{}
|
||||||
|
|
||||||
func (q *commandQueue) appendVertices(vertices []float32) {
|
func (q *commandQueue) appendVertices(vertices []float32) {
|
||||||
|
Loading…
Reference in New Issue
Block a user