core

package module
v0.0.0-...-710e814 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 24, 2014 License: MIT Imports: 15 Imported by: 1

README

go-es_core

(https://github.com/fire/go-es_core/)

This is a rewrite of the es_core C++ application by Timothee Besset. It is currently abandoned.

Artifacts

go-es_core depends on llcoi, SDL2 and nanomsg.

bin
Run\Bin\*.dll
Run\Bin\Release\*.dll
C:\MinGW\bin\libgcc_s_sjlj-1.dll
C:\MinGW\bin\libstdc++-6.dll
src\github.com\fire\go-es_core\README.md
src\github.com\fire\go-es_core\LICENSE
Teamcity dependencies
es_core :: Nanomsg :: Nanomsg 
bin => Run/bin
include => Run/include
lib/*.a => Run/lib

es_core :: SDL2 :: SDL Binaries 
bin => Run/bin
include => Run/include
lib => Run/lib

llcoi :: llcoi 
bin => Run/bin
include => Run/include
lib => Run/lib

Git clone

git clone https://github.com/fire/go-es_core.git

Teamcity environmental variables

CPATH	 %system.teamcity.build.workingDir%/Run/include
GOPATH  %system.teamcity.build.workingDir%	
LIBRARY_PATH  %system.teamcity.build.workingDir%/Run/lib
env.PATH  %env.PATH%;C:\tools\git\cmd

Install go-es_core

go get -u github.com/fire/go-es_core/es_core
go install github.com/fire/go-es_core/es_core

Documentation

Index

Constants

View Source
const (
	STATE_MOUSE            State_Which = 0
	STATE_KB                           = 1
	STATE_MOUSERESET                   = 2
	STATE_CONFIGLOOKAROUND             = 3
)
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

func InitCore

func InitCore()

Types

type Degree

type Degree struct {
	// contains filtered or unexported fields
}

func CreateDegree

func CreateDegree(deg float32) Degree

func (*Degree) Add

func (deg *Degree) Add(real float32)

func (*Degree) Mul

func (deg *Degree) Mul(real float32)

func (*Degree) ValueDegrees

func (deg *Degree) ValueDegrees() Degree

func (*Degree) ValueDegreesFloat

func (deg *Degree) ValueDegreesFloat() float32

func (*Degree) ValueRadian

func (deg *Degree) ValueRadian() Radian

func (*Degree) ValueRadianFloat

func (deg *Degree) ValueRadianFloat() float32

type EmittedRenderState

type EmittedRenderState C.Struct

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 (EmittedRenderState) Position

func (EmittedRenderState) SetTime

func (s EmittedRenderState) SetTime(v uint64)

func (EmittedRenderState) SmoothedAngular

func (EmittedRenderState) Time

func (s EmittedRenderState) Time() uint64

type EmittedRenderStateOrientation

type EmittedRenderStateOrientation EmittedRenderState

func (EmittedRenderStateOrientation) SetW

func (EmittedRenderStateOrientation) SetX

func (EmittedRenderStateOrientation) SetY

func (EmittedRenderStateOrientation) SetZ

func (EmittedRenderStateOrientation) W

func (EmittedRenderStateOrientation) X

func (EmittedRenderStateOrientation) Y

func (EmittedRenderStateOrientation) Z

type EmittedRenderStatePosition

type EmittedRenderStatePosition EmittedRenderState

func (EmittedRenderStatePosition) SetX

func (EmittedRenderStatePosition) SetY

func (EmittedRenderStatePosition) X

func (EmittedRenderStatePosition) Y

type EmittedRenderStateSmoothedAngular

type EmittedRenderStateSmoothedAngular EmittedRenderState

func (EmittedRenderStateSmoothedAngular) SetX

func (EmittedRenderStateSmoothedAngular) SetY

func (EmittedRenderStateSmoothedAngular) SetZ

func (EmittedRenderStateSmoothedAngular) X

func (EmittedRenderStateSmoothedAngular) Y

func (EmittedRenderStateSmoothedAngular) Z

type EmittedRenderState_List

type EmittedRenderState_List C.PointerList

func NewEmittedRenderStateList

func NewEmittedRenderStateList(s *C.Segment, sz int) EmittedRenderState_List

func (EmittedRenderState_List) At

func (EmittedRenderState_List) Len

func (s EmittedRenderState_List) Len() int

func (EmittedRenderState_List) ToArray

type GameState

type GameState struct {
	// contains filtered or unexported fields
}

type GameThreadParams

type GameThreadParams struct {
	// contains filtered or unexported fields
}

type GameThreadSockets

type GameThreadSockets struct {
	// contains filtered or unexported fields
}

type InputKb

type InputKb C.Struct

func NewInputKb

func NewInputKb(s *C.Segment) InputKb

func NewRootInputKb

func NewRootInputKb(s *C.Segment) InputKb

func ReadRootInputKb

func ReadRootInputKb(s *C.Segment) InputKb

func (InputKb) A

func (s InputKb) A() bool

func (InputKb) D

func (s InputKb) D() bool

func (InputKb) Lalt

func (s InputKb) Lalt() bool

func (InputKb) S

func (s InputKb) S() bool

func (InputKb) SetA

func (s InputKb) SetA(v bool)

func (InputKb) SetD

func (s InputKb) SetD(v bool)

func (InputKb) SetLalt

func (s InputKb) SetLalt(v bool)

func (InputKb) SetS

func (s InputKb) SetS(v bool)

func (InputKb) SetSpace

func (s InputKb) SetSpace(v bool)

func (InputKb) SetW

func (s InputKb) SetW(v bool)

func (InputKb) Space

func (s InputKb) Space() bool

func (InputKb) W

func (s InputKb) W() bool

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

type InputMouse C.Struct

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 CreateRadian(rad float32) Radian

func (*Radian) ValueDegrees

func (rad *Radian) ValueDegrees() Degree

func (*Radian) ValueDegreesFloat

func (rad *Radian) ValueDegreesFloat() float32

func (*Radian) ValueRadian

func (rad *Radian) ValueRadian() Radian

func (*Radian) ValueRadianFloat

func (rad *Radian) ValueRadianFloat() float32

type RenderState

type RenderState struct {
	// contains filtered or unexported fields
}

type RenderStateMsg

type RenderStateMsg C.Struct

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 (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

type State C.Struct

func NewRootState

func NewRootState(s *C.Segment) State

func NewState

func NewState(s *C.Segment) State

func ReadRootState

func ReadRootState(s *C.Segment) State

func (State) ConfigLookAround

func (s State) ConfigLookAround() bool

func (State) Kb

func (s State) Kb() bool

func (State) LookAround

func (s State) LookAround() StateLookAround

func (State) Mouse

func (s State) Mouse() bool

func (State) MouseReset

func (s State) MouseReset() bool

func (State) Orientation

func (s State) Orientation() StateOrientation

func (State) SetConfigLookAround

func (s State) SetConfigLookAround(v bool)

func (State) SetKb

func (s State) SetKb(v bool)

func (State) SetMouse

func (s State) SetMouse(v bool)

func (State) SetMouseReset

func (s State) SetMouseReset(v bool)

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

type Stop

type Stop C.Struct

func NewRootStop

func NewRootStop(s *C.Segment) Stop

func NewStop

func NewStop(s *C.Segment) Stop

func ReadRootStop

func ReadRootStop(s *C.Segment) Stop

func (Stop) SetStop

func (s Stop) SetStop(v bool)

func (Stop) Stop

func (s Stop) Stop() bool

type Stop_List

type Stop_List C.PointerList

func NewStopList

func NewStopList(s *C.Segment, sz int) Stop_List

func (Stop_List) At

func (s Stop_List) At(i int) Stop

func (Stop_List) Len

func (s Stop_List) Len() int

func (Stop_List) ToArray

func (s Stop_List) ToArray() []Stop

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL