Documentation
¶
Index ¶
- Constants
- func InitCore()
- type Degree
- type EmittedRenderState
- func (s EmittedRenderState) Orientation() EmittedRenderStateOrientation
- func (s EmittedRenderState) Position() EmittedRenderStatePosition
- func (s EmittedRenderState) SetTime(v uint64)
- func (s EmittedRenderState) SmoothedAngular() EmittedRenderStateSmoothedAngular
- func (s EmittedRenderState) Time() uint64
- type EmittedRenderStateOrientation
- func (s EmittedRenderStateOrientation) SetW(v float32)
- func (s EmittedRenderStateOrientation) SetX(v float32)
- func (s EmittedRenderStateOrientation) SetY(v float32)
- func (s EmittedRenderStateOrientation) SetZ(v float32)
- func (s EmittedRenderStateOrientation) W() float32
- func (s EmittedRenderStateOrientation) X() float32
- func (s EmittedRenderStateOrientation) Y() float32
- func (s EmittedRenderStateOrientation) Z() float32
- type EmittedRenderStatePosition
- type EmittedRenderStateSmoothedAngular
- func (s EmittedRenderStateSmoothedAngular) SetX(v float32)
- func (s EmittedRenderStateSmoothedAngular) SetY(v float32)
- func (s EmittedRenderStateSmoothedAngular) SetZ(v float32)
- func (s EmittedRenderStateSmoothedAngular) X() float32
- func (s EmittedRenderStateSmoothedAngular) Y() float32
- func (s EmittedRenderStateSmoothedAngular) Z() float32
- type EmittedRenderState_List
- type GameState
- type GameThreadParams
- type GameThreadSockets
- type InputKb
- func (s InputKb) A() bool
- func (s InputKb) D() bool
- func (s InputKb) Lalt() bool
- func (s InputKb) S() bool
- func (s InputKb) SetA(v bool)
- func (s InputKb) SetD(v bool)
- func (s InputKb) SetLalt(v bool)
- func (s InputKb) SetS(v bool)
- func (s InputKb) SetSpace(v bool)
- func (s InputKb) SetW(v bool)
- func (s InputKb) Space() bool
- func (s InputKb) W() bool
- type InputKb_List
- type InputMouse
- func (s InputMouse) Buttons() uint32
- func (s InputMouse) SetButtons(v uint32)
- func (s InputMouse) SetW(v float32)
- func (s InputMouse) SetX(v float32)
- func (s InputMouse) SetY(v float32)
- func (s InputMouse) SetZ(v float32)
- func (s InputMouse) W() float32
- func (s InputMouse) X() float32
- func (s InputMouse) Y() float32
- func (s InputMouse) Z() float32
- type InputMouse_List
- type InputState
- type OrientationHistory
- type Radian
- type RenderState
- type RenderStateMsg
- type RenderStateMsg_List
- type RenderThreadParams
- type RenderThreadSockets
- type SharedRenderState
- type State
- func (s State) ConfigLookAround() bool
- func (s State) Kb() bool
- func (s State) LookAround() StateLookAround
- func (s State) Mouse() bool
- func (s State) MouseReset() bool
- func (s State) Orientation() StateOrientation
- func (s State) SetConfigLookAround(v bool)
- func (s State) SetKb(v bool)
- func (s State) SetMouse(v bool)
- func (s State) SetMouseReset(v bool)
- func (s State) Which() State_Which
- type StateLookAround
- type StateOrientation
- func (s StateOrientation) SetW(v float32)
- func (s StateOrientation) SetX(v float32)
- func (s StateOrientation) SetY(v float32)
- func (s StateOrientation) SetZ(v float32)
- func (s StateOrientation) W() float32
- func (s StateOrientation) X() float32
- func (s StateOrientation) Y() float32
- func (s StateOrientation) Z() float32
- type State_List
- type State_Which
- type Stop
- type Stop_List
Constants ¶
View Source
const ( STATE_MOUSE State_Which = 0 STATE_KB = 1 STATE_MOUSERESET = 2 STATE_CONFIGLOOKAROUND = 3 )
View Source
const GAMEDELAY = time.Duration(time.Second / MAXFRAMERATE)
View Source
const GAMETICKFLOAT = float64(GAMEDELAY) / float64(time.Millisecond)
View Source
const MAXFRAMERATE = 60
View Source
const ORIENTATIONLOG int = 10
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Degree ¶
type Degree struct {
// contains filtered or unexported fields
}
func CreateDegree ¶
func (*Degree) ValueDegrees ¶
func (*Degree) ValueDegreesFloat ¶
func (*Degree) ValueRadian ¶
func (*Degree) ValueRadianFloat ¶
type EmittedRenderState ¶
func NewEmittedRenderState ¶
func NewEmittedRenderState(s *C.Segment) EmittedRenderState
func NewRootEmittedRenderState ¶
func NewRootEmittedRenderState(s *C.Segment) EmittedRenderState
func ReadRootEmittedRenderState ¶
func ReadRootEmittedRenderState(s *C.Segment) EmittedRenderState
func (EmittedRenderState) Orientation ¶
func (s EmittedRenderState) Orientation() EmittedRenderStateOrientation
func (EmittedRenderState) Position ¶
func (s EmittedRenderState) Position() EmittedRenderStatePosition
func (EmittedRenderState) SetTime ¶
func (s EmittedRenderState) SetTime(v uint64)
func (EmittedRenderState) SmoothedAngular ¶
func (s EmittedRenderState) SmoothedAngular() EmittedRenderStateSmoothedAngular
func (EmittedRenderState) Time ¶
func (s EmittedRenderState) Time() uint64
type EmittedRenderStateOrientation ¶
type EmittedRenderStateOrientation EmittedRenderState
func (EmittedRenderStateOrientation) SetW ¶
func (s EmittedRenderStateOrientation) SetW(v float32)
func (EmittedRenderStateOrientation) SetX ¶
func (s EmittedRenderStateOrientation) SetX(v float32)
func (EmittedRenderStateOrientation) SetY ¶
func (s EmittedRenderStateOrientation) SetY(v float32)
func (EmittedRenderStateOrientation) SetZ ¶
func (s EmittedRenderStateOrientation) SetZ(v float32)
func (EmittedRenderStateOrientation) W ¶
func (s EmittedRenderStateOrientation) W() float32
func (EmittedRenderStateOrientation) X ¶
func (s EmittedRenderStateOrientation) X() float32
func (EmittedRenderStateOrientation) Y ¶
func (s EmittedRenderStateOrientation) Y() float32
func (EmittedRenderStateOrientation) Z ¶
func (s EmittedRenderStateOrientation) Z() float32
type EmittedRenderStatePosition ¶
type EmittedRenderStatePosition EmittedRenderState
func (EmittedRenderStatePosition) SetX ¶
func (s EmittedRenderStatePosition) SetX(v float32)
func (EmittedRenderStatePosition) SetY ¶
func (s EmittedRenderStatePosition) SetY(v float32)
func (EmittedRenderStatePosition) X ¶
func (s EmittedRenderStatePosition) X() float32
func (EmittedRenderStatePosition) Y ¶
func (s EmittedRenderStatePosition) Y() float32
type EmittedRenderStateSmoothedAngular ¶
type EmittedRenderStateSmoothedAngular EmittedRenderState
func (EmittedRenderStateSmoothedAngular) SetX ¶
func (s EmittedRenderStateSmoothedAngular) SetX(v float32)
func (EmittedRenderStateSmoothedAngular) SetY ¶
func (s EmittedRenderStateSmoothedAngular) SetY(v float32)
func (EmittedRenderStateSmoothedAngular) SetZ ¶
func (s EmittedRenderStateSmoothedAngular) SetZ(v float32)
func (EmittedRenderStateSmoothedAngular) X ¶
func (s EmittedRenderStateSmoothedAngular) X() float32
func (EmittedRenderStateSmoothedAngular) Y ¶
func (s EmittedRenderStateSmoothedAngular) Y() float32
func (EmittedRenderStateSmoothedAngular) Z ¶
func (s EmittedRenderStateSmoothedAngular) Z() float32
type EmittedRenderState_List ¶
type EmittedRenderState_List C.PointerList
func NewEmittedRenderStateList ¶
func NewEmittedRenderStateList(s *C.Segment, sz int) EmittedRenderState_List
func (EmittedRenderState_List) At ¶
func (s EmittedRenderState_List) At(i int) EmittedRenderState
func (EmittedRenderState_List) Len ¶
func (s EmittedRenderState_List) Len() int
func (EmittedRenderState_List) ToArray ¶
func (s EmittedRenderState_List) ToArray() []EmittedRenderState
type GameThreadParams ¶
type GameThreadParams struct {
// contains filtered or unexported fields
}
type GameThreadSockets ¶
type GameThreadSockets struct {
// contains filtered or unexported fields
}
type InputKb_List ¶
type InputKb_List C.PointerList
func NewInputKbList ¶
func NewInputKbList(s *C.Segment, sz int) InputKb_List
func (InputKb_List) At ¶
func (s InputKb_List) At(i int) InputKb
func (InputKb_List) Len ¶
func (s InputKb_List) Len() int
func (InputKb_List) ToArray ¶
func (s InputKb_List) ToArray() []InputKb
type InputMouse ¶
func NewInputMouse ¶
func NewInputMouse(s *C.Segment) InputMouse
func NewRootInputMouse ¶
func NewRootInputMouse(s *C.Segment) InputMouse
func ReadRootInputMouse ¶
func ReadRootInputMouse(s *C.Segment) InputMouse
func (InputMouse) Buttons ¶
func (s InputMouse) Buttons() uint32
func (InputMouse) SetButtons ¶
func (s InputMouse) SetButtons(v uint32)
func (InputMouse) SetW ¶
func (s InputMouse) SetW(v float32)
func (InputMouse) SetX ¶
func (s InputMouse) SetX(v float32)
func (InputMouse) SetY ¶
func (s InputMouse) SetY(v float32)
func (InputMouse) SetZ ¶
func (s InputMouse) SetZ(v float32)
func (InputMouse) W ¶
func (s InputMouse) W() float32
func (InputMouse) X ¶
func (s InputMouse) X() float32
func (InputMouse) Y ¶
func (s InputMouse) Y() float32
func (InputMouse) Z ¶
func (s InputMouse) Z() float32
type InputMouse_List ¶
type InputMouse_List C.PointerList
func NewInputMouseList ¶
func NewInputMouseList(s *C.Segment, sz int) InputMouse_List
func (InputMouse_List) At ¶
func (s InputMouse_List) At(i int) InputMouse
func (InputMouse_List) Len ¶
func (s InputMouse_List) Len() int
func (InputMouse_List) ToArray ¶
func (s InputMouse_List) ToArray() []InputMouse
type InputState ¶
type InputState struct {
// contains filtered or unexported fields
}
type OrientationHistory ¶
type OrientationHistory struct {
// contains filtered or unexported fields
}
type Radian ¶
type Radian struct {
// contains filtered or unexported fields
}
func CreateRadian ¶
func (*Radian) ValueDegrees ¶
func (*Radian) ValueDegreesFloat ¶
func (*Radian) ValueRadian ¶
func (*Radian) ValueRadianFloat ¶
type RenderState ¶
type RenderState struct {
// contains filtered or unexported fields
}
type RenderStateMsg ¶
func NewRenderStateMsg ¶
func NewRenderStateMsg(s *C.Segment) RenderStateMsg
func NewRootRenderStateMsg ¶
func NewRootRenderStateMsg(s *C.Segment) RenderStateMsg
func ReadRootRenderStateMsg ¶
func ReadRootRenderStateMsg(s *C.Segment) RenderStateMsg
func (RenderStateMsg) FreeSpin ¶
func (s RenderStateMsg) FreeSpin() bool
func (RenderStateMsg) HeadTrigger ¶
func (s RenderStateMsg) HeadTrigger() bool
func (RenderStateMsg) SetFreeSpin ¶
func (s RenderStateMsg) SetFreeSpin(v bool)
func (RenderStateMsg) SetHeadTrigger ¶
func (s RenderStateMsg) SetHeadTrigger(v bool)
type RenderStateMsg_List ¶
type RenderStateMsg_List C.PointerList
func NewRenderStateMsgList ¶
func NewRenderStateMsgList(s *C.Segment, sz int) RenderStateMsg_List
func (RenderStateMsg_List) At ¶
func (s RenderStateMsg_List) At(i int) RenderStateMsg
func (RenderStateMsg_List) Len ¶
func (s RenderStateMsg_List) Len() int
func (RenderStateMsg_List) ToArray ¶
func (s RenderStateMsg_List) ToArray() []RenderStateMsg
type RenderThreadParams ¶
type RenderThreadParams struct {
// contains filtered or unexported fields
}
type RenderThreadSockets ¶
type RenderThreadSockets struct {
// contains filtered or unexported fields
}
type SharedRenderState ¶
type SharedRenderState struct {
// contains filtered or unexported fields
}
type State ¶
func NewRootState ¶
func ReadRootState ¶
func (State) ConfigLookAround ¶
func (State) LookAround ¶
func (s State) LookAround() StateLookAround
func (State) MouseReset ¶
func (State) Orientation ¶
func (s State) Orientation() StateOrientation
func (State) SetConfigLookAround ¶
func (State) SetMouseReset ¶
func (State) Which ¶
func (s State) Which() State_Which
type StateLookAround ¶
type StateLookAround State
func (StateLookAround) ManipulateObject ¶
func (s StateLookAround) ManipulateObject() bool
func (StateLookAround) SetManipulateObject ¶
func (s StateLookAround) SetManipulateObject(v bool)
type StateOrientation ¶
type StateOrientation State
func (StateOrientation) SetW ¶
func (s StateOrientation) SetW(v float32)
func (StateOrientation) SetX ¶
func (s StateOrientation) SetX(v float32)
func (StateOrientation) SetY ¶
func (s StateOrientation) SetY(v float32)
func (StateOrientation) SetZ ¶
func (s StateOrientation) SetZ(v float32)
func (StateOrientation) W ¶
func (s StateOrientation) W() float32
func (StateOrientation) X ¶
func (s StateOrientation) X() float32
func (StateOrientation) Y ¶
func (s StateOrientation) Y() float32
func (StateOrientation) Z ¶
func (s StateOrientation) Z() float32
type State_List ¶
type State_List C.PointerList
func NewStateList ¶
func NewStateList(s *C.Segment, sz int) State_List
func (State_List) At ¶
func (s State_List) At(i int) State
func (State_List) Len ¶
func (s State_List) Len() int
func (State_List) ToArray ¶
func (s State_List) ToArray() []State
type State_Which ¶
type State_Which uint16
Source Files
¶
Click to show internal directories.
Click to hide internal directories.