21 lines
473 B
Go
21 lines
473 B
Go
package game
|
|
|
|
import (
|
|
"edgaru089.ink/go/gl01/internal/igwrap/backend"
|
|
"edgaru089.ink/go/gl01/internal/util/itype"
|
|
"github.com/go-gl/glfw/v3.3/glfw"
|
|
)
|
|
|
|
// ResizeDisplay resizes the size of the internal buffers dependent on the window size.
|
|
// It is called automatically most of the time.
|
|
func (g *Game) ResizeDisplay(newSize itype.Vec2i) {
|
|
|
|
}
|
|
|
|
// Render, called with a OpenGL context, renders the game.
|
|
func (g *Game) Render(win *glfw.Window) {
|
|
|
|
backend.Render(win)
|
|
|
|
}
|