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
|
|
|
|
// a camera object must implement.
|
|
|
|
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
|
2023-02-18 03:51:43 +03:00
|
|
|
}
|
|
|
|
|