Documentation ¶
Index ¶
- type AttribLocation
- type BufferType
- type BufferUsageType
- type Context
- func (c *Context) BindTexture(t Texture)
- func (c *Context) BufferSubData(bufferType BufferType, data []float32)
- func (c *Context) DeleteFramebuffer(f Framebuffer)
- func (c *Context) DeleteShader(s Shader)
- func (c *Context) DeleteTexture(t Texture)
- func (c *Context) DisableVertexAttribArray(p Program, location string)
- func (c *Context) DrawElements(len int)
- func (c *Context) EnableVertexAttribArray(p Program, location string)
- func (c *Context) FillFramebuffer(f Framebuffer, r, g, b, a float64) error
- func (c *Context) Flush()
- func (c *Context) FramebufferPixels(f Framebuffer, width, height int) ([]uint8, error)
- func (c *Context) GlslHighpSupported() bool
- func (c *Context) NewBuffer(bufferType BufferType, v interface{}, bufferUsageType BufferUsageType)
- func (c *Context) NewFramebuffer(texture Texture) (Framebuffer, error)
- func (c *Context) NewProgram(shaders []Shader) (Program, error)
- func (c *Context) NewShader(shaderType ShaderType, source string) (Shader, error)
- func (c *Context) NewTexture(width, height int, pixels []uint8, filter FilterType) (Texture, error)
- func (c *Context) SetViewport(f Framebuffer, width, height int) error
- func (c *Context) UniformFloats(p Program, location string, v []float32)
- func (c *Context) UniformInt(p Program, location string, v int)
- func (c *Context) UseProgram(p Program)
- func (c *Context) VertexAttribPointer(p Program, location string, stride int, v uintptr)
- type FilterType
- type Framebuffer
- type Program
- type Shader
- type ShaderType
- type Texture
- type UniformLocation
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AttribLocation ¶ added in v1.1.0
type AttribLocation gl.AttribLocation
type BufferType ¶ added in v1.1.0
type BufferType int
type BufferUsageType ¶ added in v1.1.0
type BufferUsageType int
type Context ¶ added in v1.1.0
type Context struct { Nearest FilterType Linear FilterType VertexShader ShaderType FragmentShader ShaderType ArrayBuffer BufferType ElementArrayBuffer BufferType DynamicDraw BufferUsageType StaticDraw BufferUsageType // contains filtered or unexported fields }
func NewContext ¶ added in v1.1.0
func NewContext() *Context
func (*Context) BindTexture ¶ added in v1.1.0
func (*Context) BufferSubData ¶ added in v1.1.0
func (c *Context) BufferSubData(bufferType BufferType, data []float32)
func (*Context) DeleteFramebuffer ¶ added in v1.1.0
func (c *Context) DeleteFramebuffer(f Framebuffer)
func (*Context) DeleteShader ¶ added in v1.1.0
func (*Context) DeleteTexture ¶ added in v1.1.0
func (*Context) DisableVertexAttribArray ¶ added in v1.1.0
func (*Context) DrawElements ¶ added in v1.1.0
func (*Context) EnableVertexAttribArray ¶ added in v1.1.0
func (*Context) FillFramebuffer ¶ added in v1.1.0
func (c *Context) FillFramebuffer(f Framebuffer, r, g, b, a float64) error
func (*Context) FramebufferPixels ¶ added in v1.1.0
func (c *Context) FramebufferPixels(f Framebuffer, width, height int) ([]uint8, error)
func (*Context) GlslHighpSupported ¶ added in v1.1.0
func (*Context) NewBuffer ¶ added in v1.1.0
func (c *Context) NewBuffer(bufferType BufferType, v interface{}, bufferUsageType BufferUsageType)
func (*Context) NewFramebuffer ¶ added in v1.1.0
func (c *Context) NewFramebuffer(texture Texture) (Framebuffer, error)
func (*Context) NewProgram ¶ added in v1.1.0
func (*Context) NewShader ¶ added in v1.1.0
func (c *Context) NewShader(shaderType ShaderType, source string) (Shader, error)
func (*Context) NewTexture ¶ added in v1.1.0
func (*Context) SetViewport ¶ added in v1.1.0
func (c *Context) SetViewport(f Framebuffer, width, height int) error
func (*Context) UniformFloats ¶ added in v1.1.0
func (*Context) UniformInt ¶ added in v1.1.0
func (*Context) UseProgram ¶ added in v1.1.0
type FilterType ¶ added in v1.1.0
type FilterType int
type Framebuffer ¶
type Framebuffer int
type ShaderType ¶ added in v1.1.0
type ShaderType int
type UniformLocation ¶ added in v1.1.0
type UniformLocation gl.UniformLocation
Click to show internal directories.
Click to hide internal directories.