Documentation ¶
Index ¶
- Constants
- func ErrorCode[E ProdError](err E) int
- func RenderAll(objs []Renderable)
- func ScreenSpaceOcclusion[T SceneObject](x T) float32
- type Box
- type Collection
- type InternalError
- type InvalidPassword
- type NotFound
- type PolyPlane
- type ProdError
- type Renderable
- type SceneObject
- type Sphere
- type Timeout
- type Torus
Constants ¶
View Source
const ( CodeNotFound = 1001 CodeInvalidPassword = 1002 CodeTimeout = 1003 CodeInternalError = 9999 )
Variables ¶
This section is empty.
Functions ¶
func ScreenSpaceOcclusion ¶
func ScreenSpaceOcclusion[T SceneObject](x T) float32
ScreenSpaceOcclusion uses the typeset (SceneObject) to limit the type of Renderable supported by this function
Types ¶
type Collection ¶
type Collection struct {
// contains filtered or unexported fields
}
func (Collection) Render ¶
func (coll Collection) Render()
type InternalError ¶ added in v0.0.5
type InternalError struct{}
func (InternalError) Code ¶ added in v0.0.5
func (_ InternalError) Code() int
func (InternalError) Error ¶ added in v0.0.5
func (_ InternalError) Error() string
type InvalidPassword ¶ added in v0.0.5
type InvalidPassword struct{}
func (InvalidPassword) Code ¶ added in v0.0.5
func (_ InvalidPassword) Code() int
func (InvalidPassword) Error ¶ added in v0.0.5
func (_ InvalidPassword) Error() string
type ProdError ¶ added in v0.0.5
type ProdError interface { NotFound | InvalidPassword | Timeout | InternalError Error() string Code() int }
ProdError defines the error typeset
type SceneObject ¶
SceneObject defines the typeset
Click to show internal directories.
Click to hide internal directories.