camera.go 439 B

123456789101112131415161718192021
  1. package gg
  2. import "surdeus.su/core/gg/mx"
  3. // The type describes what
  4. // a window camera object must implement.
  5. type Camera interface {
  6. // Get the matrice to apply
  7. // camera's features.
  8. GetRealMatrice(Context) mx.Matrice
  9. // The way to convert from real to absolute.
  10. GetAbsMatrice(Context) mx.Matrice
  11. // The shaders to apply on
  12. // everything on the camera.
  13. GetShaderOptions() *ShaderOptions
  14. GetAbsWinSize(Context) mx.Vector
  15. }