2022-01-20 21:58:50 +08:00
|
|
|
package io
|
|
|
|
|
2022-02-21 12:24:05 +08:00
|
|
|
import (
|
|
|
|
"time"
|
|
|
|
|
|
|
|
"edgaru089.ml/go/gl01/internal/util/itype"
|
|
|
|
)
|
2022-01-20 21:58:50 +08:00
|
|
|
|
|
|
|
var (
|
|
|
|
DisplaySize itype.Vec2i // Size of the window viewport in pixels.
|
2022-01-27 01:09:45 +08:00
|
|
|
|
2022-01-29 22:52:51 +08:00
|
|
|
ClearColor itype.Vec4f // Clear color of the renderer.
|
|
|
|
FogColor itype.Vec4f // Color of the fog. Changes if the player is e.g. under water
|
2022-01-29 22:29:27 +08:00
|
|
|
|
2022-01-27 01:09:45 +08:00
|
|
|
// Directions are not always normalized.
|
|
|
|
ViewPos, ViewDir itype.Vec3d // Position and Direction of the player view.
|
|
|
|
RenderPos, RenderDir itype.Vec3d // Position and Direction of view for the current render pass. Might be different for e.g. lighting passes
|
|
|
|
|
|
|
|
ShowDebugInfo bool // Show debug info (F3 screen)?
|
2022-02-21 12:24:05 +08:00
|
|
|
|
|
|
|
// Per-Frame Diagnostics information
|
|
|
|
Diagnostics struct {
|
|
|
|
CgoCalls int64 // Cgo calls in the last frame
|
|
|
|
Times struct { // Times spent
|
|
|
|
GUI, Logic, Render time.Duration
|
|
|
|
RenderPasses struct {
|
|
|
|
Depthmap,
|
|
|
|
Geometry,
|
|
|
|
SSAO,
|
|
|
|
Lighting,
|
|
|
|
Postfx time.Duration
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2022-01-20 21:58:50 +08:00
|
|
|
)
|