gg/camera.go

22 lines
439 B
Go
Raw Normal View History

2023-10-23 15:45:18 +03:00
package gg
2023-02-18 03:51:43 +03:00
2024-05-28 11:24:12 +03:00
import "surdeus.su/core/gg/mx"
2024-01-18 06:06:27 +03:00
2024-05-28 11:24:12 +03:00
// The type describes what
2024-06-01 16:07:28 +03:00
// a window camera object must implement.
2024-05-28 11:24:12 +03:00
type Camera interface {
// Get the matrice to apply
// camera's features.
GetRealMatrice(Context) mx.Matrice
2024-01-18 06:06:27 +03:00
2024-05-28 11:24:12 +03:00
// The way to convert from real to absolute.
GetAbsMatrice(Context) mx.Matrice
2024-01-18 06:06:27 +03:00
2024-05-28 11:24:12 +03:00
// The shaders to apply on
// everything on the camera.
GetShaderOptions() *ShaderOptions
2024-06-01 16:07:28 +03:00
GetAbsWinSize(Context) mx.Vector
2023-02-18 03:51:43 +03:00
}