Documentation ¶
Index ¶
- type InitialConfig
- type Renderer
- func (r *Renderer) EnableObject()
- func (r *Renderer) GetSpeed() (x, y, z float32)
- func (r *Renderer) Release()
- func (r *Renderer) Render(this js.Value, args []js.Value) interface{}
- func (r *Renderer) SetModel(Colors []float32, Vertices []float32, Indices []uint32)
- func (r *Renderer) SetSize(height, width int)
- func (r *Renderer) SetSpeedX(x float32)
- func (r *Renderer) SetSpeedY(y float32)
- func (r *Renderer) SetSpeedZ(z float32)
- func (r *Renderer) SetZoom(currentZoom float32)
- func (r *Renderer) UpdateColorBuffer(buffer []float32)
- func (r *Renderer) UpdateFragmentShader(shaderCode string)
- func (r *Renderer) UpdateIndicesBuffer(buffer []uint32)
- func (r *Renderer) UpdateVertexShader(shaderCode string)
- func (r *Renderer) UpdateVerticesBuffer(buffer []float32)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InitialConfig ¶
type Renderer ¶
type Renderer struct { PositionMatrix js.Value ViewMatrix js.Value ModelMatrix js.Value // contains filtered or unexported fields }
func NewRenderer ¶
func NewRenderer(gl js.Value, config InitialConfig) (r Renderer, err error)
func (*Renderer) EnableObject ¶
func (r *Renderer) EnableObject()
func (*Renderer) UpdateColorBuffer ¶
func (*Renderer) UpdateFragmentShader ¶
func (*Renderer) UpdateIndicesBuffer ¶
func (*Renderer) UpdateVertexShader ¶
func (*Renderer) UpdateVerticesBuffer ¶
Click to show internal directories.
Click to hide internal directories.