Documentation ¶
Index ¶
- Constants
- type App
- type AppAudio
- type AppColor
- type AppGPU
- type AppGPUBuffer
- type AppGPUID
- type AppGPUMesh
- type AppGPUShader
- type AppGPUTexture
- type AppHID
- type AppHIDGamepad
- type AppHIDMouse
- type AppMesh
- type AppMob
- type AppOffset
- type AppRoom
- type AppRoomLayout
- type AppRoomNode
- type AppSpace
- type AppStage
- type AppStageCamera
- type AppStageLight
- type AppStageMob
- type AppStageRoom
- type AppStageStep
- type Builder
- type Middleware
Constants ¶
View Source
const ( HasPosition int = 1 << iota HasNormal HasTangent HasTexcoord0 HasBlendWeight0 HasWeightIndices0 HasTexture0 HasTexture1 HasTexture2 HasDoubleSided HasAlphaBlend )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type App ¶
type AppGPU ¶
type AppGPU struct { Shader []*AppGPUShader `json:"shader,omitempty"` Buffer []*AppGPUBuffer `json:"buffer,omitempty"` Texture []*AppGPUTexture `json:"texture,omitempty"` Mesh []*AppGPUMesh `json:"mesh,omitempty"` ID []*AppGPUID `json:"id,omitempty"` }
type AppGPUBuffer ¶
type AppGPUBuffer struct {
Embed int `json:"embed,omitempty"`
}
type AppGPUMesh ¶
type AppGPUMesh struct { Hint int `json:"hint"` // Input VertexBuffer0 []int `json:"vb0,omitempty"` // [buffer, offset, size], slot: 0, shaderLocation: 0, format: float32x3 (position) VertexBuffer1 []int `json:"vb1,omitempty"` // [buffer, offset, size], slot: 1, shaderLocation: 1, format: float32x3 (normal) VertexBuffer2 []int `json:"vb2,omitempty"` // [buffer, offset, size], slot: 2, shaderLocation: 2 VertexBuffer3 []int `json:"vb3,omitempty"` // [buffer, offset, size], slot: 3, shaderLocation: 3 VertexBuffer4 []int `json:"vb4,omitempty"` // [buffer, offset, size], slot: 4, shaderLocation: 4 VertexBuffer5 []int `json:"vb5,omitempty"` // [buffer, offset, size], slot: 5, shaderLocation: 5 IndexBuffer []int `json:"ib,omitempty"` // [buffer, offset, size], format: uint16 // Uniform Factor0 []float64 `json:"factor0,omitempty"` // [Color.r, Color.g, Color.b, Color.a] Factor1 []float64 `json:"factor1,omitempty"` // [Occlusion, Metallic, Roughness, unused] Factor2 []float64 `json:"factor2,omitempty"` // [Emissive.r, Emissive.g, Emissive.b, unused] Texture0 int `json:"texture0,omitempty"` // BaseColorTexture Texture1 int `json:"texture1,omitempty"` // ParameterTexture(OcclusionMetallicRoughness) Texture2 int `json:"texture2,omitempty"` // NormalTexture Count int `json:"count"` }
type AppGPUShader ¶
type AppGPUShader struct {
Embed int `json:"embed,omitempty"`
}
type AppGPUTexture ¶
type AppGPUTexture struct {
Embed int `json:"embed,omitempty"`
}
type AppHID ¶
type AppHID struct { Timer string `json:"timer"` Keyboard map[string]*string `json:"keyboard"` Mouse *AppHIDMouse `json:"mouse"` Gamepad *AppHIDGamepad `json:"gamepad"` }
type AppHIDGamepad ¶
type AppHIDMouse ¶
type AppRoom ¶
type AppRoom struct { Mesh []*AppMesh `json:"mesh"` Layout []*AppRoomLayout `json:"layout"` }
type AppRoomLayout ¶
type AppRoomLayout struct { Node []*AppRoomNode `json:"node"` Unit float32 `json:"unit"` Divisor int `json:"divisor"` Indices []int `json:"indices"` }
type AppRoomNode ¶
type AppStage ¶
type AppStage struct { Step []*AppStageStep `json:"step"` Room []*AppStageRoom `json:"room"` Mob []*AppStageMob `json:"mob"` Camera []*AppStageCamera `json:"camera"` Light []*AppStageLight `json:"light"` }
type AppStageCamera ¶
type AppStageLight ¶
type AppStageMob ¶
type AppStageRoom ¶
type AppStageStep ¶
type Middleware ¶
type Middleware struct { }
Click to show internal directories.
Click to hide internal directories.