Ryhthm game using raylib
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

21 lines
532 B

package render
import (
"image/color"
"time"
)
type Renderer interface {
Init() error
Deinit() error
AddDecoration(col, row uint16, content string, frames int)
RenderLoop(
delay time.Duration,
render func(startTime time.Time, duration time.Duration) bool,
// Ran after rendering all the ui, this will render again, so don't do much
// but print debug info
endRender func(renderDuration time.Duration),
)
Fill(row, column uint16, message string)
FillColor(row, column uint16, color color.RGBA, message string)
}