Documentation
¶
Index ¶
- Variables
- func Clear(red, green, blue float32)
- func DrawCanvasRect(canvas *Canvas, left, top, width, height int, alphas []float32)
- func DrawColorRect1v(left, top, width, height int, color []float32)
- func DrawColorRect3f(left, top, width, height int, r, g, b float32)
- func DrawColorRect4f(left, top, width, height int, r, g, b, a float32)
- func DrawColorRect4v(left, top, width, height int, leftTopColor []float32, rightTopColor []float32, ...)
- func DrawTextureRect(texture *Texture, left, top, width, height int, alphas []float32)
- func DrawTextureRectUpsideDown(texture *Texture, left, top, width, height int, alphas []float32)
- func Init()
- func PopOrtho()
- func PopView()
- func PopViewport()
- func PushOrtho(width, height int)
- func PushView(width, height int)
- func PushViewport(width, height int)
- func Uninit()
- type Canvas
- type Texture
- type TextureMultiSampled
Constants ¶
This section is empty.
Variables ¶
View Source
var Const_3Ones = []float32{1, 1, 1}
View Source
var Const_3Zeroes = []float32{0, 0, 0}
View Source
var Const_4Ones = []float32{1, 1, 1, 1}
View Source
var Const_4Zeroes = []float32{0, 0, 0, 0}
Functions ¶
func DrawCanvasRect ¶
func DrawColorRect1v ¶
func DrawColorRect3f ¶
func DrawColorRect4f ¶
func ClearRect(
width, height int, red, green, blue float32 ) { g_colorRect.DrawSolid(0, 0, width, height, red, green, blue, (*gl.Float)(&g_projection[0])) }
func DrawColorRect4v ¶
func DrawTextureRect ¶
func PopViewport ¶
func PopViewport()
func PushViewport ¶
func PushViewport(width, height int)
Types ¶
type Texture ¶
type Texture struct { TextureId gl.Uint Width, Height int // contains filtered or unexported fields }
func NewTexture ¶
func NewTexture() *Texture
func (*Texture) Deactivate ¶
func (t *Texture) Deactivate()
func (*Texture) LoadBytes_RGBA ¶
type TextureMultiSampled ¶
type TextureMultiSampled struct { TextureId gl.Uint Width, Height int // contains filtered or unexported fields }
func NewTextureMultiSampled ¶
func NewTextureMultiSampled(width, height int) *TextureMultiSampled
func (*TextureMultiSampled) Activate ¶
func (t *TextureMultiSampled) Activate(texUnit gl.Enum)
func (*TextureMultiSampled) Deactivate ¶
func (t *TextureMultiSampled) Deactivate()
func (*TextureMultiSampled) Free ¶
func (t *TextureMultiSampled) Free()
Source Files
¶
Click to show internal directories.
Click to hide internal directories.