Documentation ¶
Index ¶
- type Camera
- func (c *Camera) AspectRatio() float32
- func (c *Camera) AutoExposure() bool
- func (c *Camera) AutoFocus() bool
- func (c *Camera) Delete()
- func (c *Camera) Exposure() float32
- func (c *Camera) FoV() sprec.Angle
- func (c *Camera) FoVMode() graphics.FoVMode
- func (c *Camera) FocusRange() (float32, float32)
- func (c *Camera) MaximumExposure() float32
- func (c *Camera) MinimumExposure() float32
- func (c *Camera) SetAspectRatio(ratio float32)
- func (c *Camera) SetAutoExposure(enabled bool)
- func (c *Camera) SetAutoFocus(enabled bool)
- func (c *Camera) SetExposure(exposure float32)
- func (c *Camera) SetFoV(angle sprec.Angle)
- func (c *Camera) SetFoVMode(mode graphics.FoVMode)
- func (c *Camera) SetFocusRange(near, far float32)
- func (c *Camera) SetMaximumExposure(maxExposure float32)
- func (c *Camera) SetMinimumExposure(minExposure float32)
- type CubeTexture
- type Engine
- func (e *Engine) Create()
- func (e *Engine) CreateCubeTexture(definition graphics.CubeTextureDefinition) graphics.CubeTexture
- func (e *Engine) CreateMeshTemplate(definition graphics.MeshTemplateDefinition) graphics.MeshTemplate
- func (e *Engine) CreatePBRMaterial(definition graphics.PBRMaterialDefinition) graphics.Material
- func (e *Engine) CreateScene() graphics.Scene
- func (e *Engine) CreateTwoDTexture(definition graphics.TwoDTextureDefinition) graphics.TwoDTexture
- func (e *Engine) Destroy()
- type Light
- func (l *Light) Delete()
- func (l *Light) Intensity() sprec.Vec3
- func (l *Light) ReflectionTexture() graphics.CubeTexture
- func (l *Light) RefractionTexture() graphics.CubeTexture
- func (l *Light) SetIntensity(intensity sprec.Vec3)
- func (l *Light) SetReflectionTexture(texture graphics.CubeTexture)
- func (l *Light) SetRefractionTexture(texture graphics.CubeTexture)
- type LightMode
- type Material
- type Mesh
- type MeshTemplate
- type QuadMesh
- type Renderer
- type Scene
- func (s *Scene) CreateAmbientLight() graphics.AmbientLight
- func (s *Scene) CreateCamera() graphics.Camera
- func (s *Scene) CreateDirectionalLight() graphics.DirectionalLight
- func (s *Scene) CreateMesh(template graphics.MeshTemplate) graphics.Mesh
- func (s *Scene) Delete()
- func (s *Scene) Render(viewport graphics.Viewport, camera graphics.Camera)
- func (s *Scene) Sky() graphics.Sky
- type Sky
- type SkyboxMesh
- type SubMeshTemplate
- type TwoDTexture
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Camera ¶
func (*Camera) AspectRatio ¶
func (*Camera) AutoExposure ¶
func (*Camera) FocusRange ¶
func (*Camera) MaximumExposure ¶ added in v0.3.0
func (*Camera) MinimumExposure ¶ added in v0.3.0
func (*Camera) SetAspectRatio ¶
func (*Camera) SetAutoExposure ¶
func (*Camera) SetAutoFocus ¶
func (*Camera) SetExposure ¶
func (*Camera) SetFoVMode ¶
func (*Camera) SetFocusRange ¶
func (*Camera) SetMaximumExposure ¶ added in v0.3.0
func (*Camera) SetMinimumExposure ¶ added in v0.3.0
type CubeTexture ¶
type CubeTexture struct {
*opengl.CubeTexture
}
func (*CubeTexture) Delete ¶
func (t *CubeTexture) Delete()
type Engine ¶
type Engine struct {
// contains filtered or unexported fields
}
func (*Engine) CreateCubeTexture ¶
func (e *Engine) CreateCubeTexture(definition graphics.CubeTextureDefinition) graphics.CubeTexture
func (*Engine) CreateMeshTemplate ¶
func (e *Engine) CreateMeshTemplate(definition graphics.MeshTemplateDefinition) graphics.MeshTemplate
func (*Engine) CreatePBRMaterial ¶
func (e *Engine) CreatePBRMaterial(definition graphics.PBRMaterialDefinition) graphics.Material
func (*Engine) CreateScene ¶
func (*Engine) CreateTwoDTexture ¶
func (e *Engine) CreateTwoDTexture(definition graphics.TwoDTextureDefinition) graphics.TwoDTexture
type Light ¶
func (*Light) ReflectionTexture ¶
func (l *Light) ReflectionTexture() graphics.CubeTexture
func (*Light) RefractionTexture ¶
func (l *Light) RefractionTexture() graphics.CubeTexture
func (*Light) SetIntensity ¶
func (*Light) SetReflectionTexture ¶
func (l *Light) SetReflectionTexture(texture graphics.CubeTexture)
func (*Light) SetRefractionTexture ¶
func (l *Light) SetRefractionTexture(texture graphics.CubeTexture)
type MeshTemplate ¶
type MeshTemplate struct {
// contains filtered or unexported fields
}
func (*MeshTemplate) Delete ¶
func (t *MeshTemplate) Delete()
type QuadMesh ¶
type Scene ¶
type Scene struct {
// contains filtered or unexported fields
}
func (*Scene) CreateAmbientLight ¶
func (s *Scene) CreateAmbientLight() graphics.AmbientLight
func (*Scene) CreateCamera ¶
func (*Scene) CreateDirectionalLight ¶
func (s *Scene) CreateDirectionalLight() graphics.DirectionalLight
func (*Scene) CreateMesh ¶
func (s *Scene) CreateMesh(template graphics.MeshTemplate) graphics.Mesh
type Sky ¶
type Sky struct {
// contains filtered or unexported fields
}
func (*Sky) BackgroundColor ¶
func (*Sky) SetBackgroundColor ¶
func (*Sky) SetSkybox ¶
func (s *Sky) SetSkybox(skybox graphics.CubeTexture)
func (*Sky) Skybox ¶
func (s *Sky) Skybox() graphics.CubeTexture
type SkyboxMesh ¶
type SkyboxMesh struct { VertexBuffer *opengl.Buffer IndexBuffer *opengl.Buffer VertexArray *opengl.VertexArray Primitive uint32 IndexCount int32 IndexOffsetBytes int }
func (*SkyboxMesh) Allocate ¶
func (m *SkyboxMesh) Allocate()
func (*SkyboxMesh) Release ¶
func (m *SkyboxMesh) Release()
type SubMeshTemplate ¶
type SubMeshTemplate struct {
// contains filtered or unexported fields
}
type TwoDTexture ¶
type TwoDTexture struct {
*opengl.TwoDTexture
}
func (*TwoDTexture) Delete ¶
func (t *TwoDTexture) Delete()
Source Files ¶
Click to show internal directories.
Click to hide internal directories.