gl

package
v0.0.0-...-9c16395 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2015 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

OpenGL-Bindings für das Zeichnen der Objekte

Index

Constants

View Source
const (
	ADD                      = 0x0104
	ARRAY_BUFFER_ARB         = 0x8892
	ARRAY_BUFFER_BINDING_ARB = 0x8894
	CLAMP                    = 0x2900
	CLAMP_TO_EDGE            = 0x812F
	CLIENT_ALL_ATTRIB_BITS   = 0xFFFFFFFF
	COLOR_ARRAY              = 0x8076
	COMPILE                  = 0x1300
	EXTENSIONS               = 0x1F03
	FLOAT                    = 0x1406
	LINEAR                   = 0x2601
	LINEAR_MIPMAP_NEAREST    = 0x2701
	MODULATE                 = 0x2100
	MODELVIEW                = 0x1700
	MODELVIEW_MATRIX         = 0x0BA6
	NORMAL_ARRAY             = 0x8075
	PROJECTION               = 0x1701
	PROJECTION_MATRIX        = 0x0BA7
	QUADS                    = 0x0007
	RGBA                     = 0x1908
	TEXTURE0                 = 0x84C0
	TEXTURE1                 = 0x84C1
	TEXTURE_2D               = 0x0DE1
	TEXTURE_COORD_ARRAY      = 0x8078
	TEXTURE_ENV              = 0x2300
	TEXTURE_ENV_MODE         = 0x2200
	TEXTURE_MAG_FILTER       = 0x2800
	TEXTURE_MIN_FILTER       = 0x2801
	TEXTURE_WRAP_S           = 0x2802
	TEXTURE_WRAP_T           = 0x2803
	TRIANGLES                = 0x0004
	UNSIGNED_BYTE            = 0x1401
	UNSIGNED_INT             = 0x1405
	VERTEX_ARRAY             = 0x8074
	VIEWPORT                 = 0x0BA2
)

Variables

This section is empty.

Functions

func ActiveTextureARB

func ActiveTextureARB(texture uint32)

func Begin

func Begin(mode uint32)

func BindBufferARB

func BindBufferARB(target uint32, buffer uint32)

func CallList

func CallList(list uint32)

func ClientActiveTextureARB

func ClientActiveTextureARB(texture uint32)

func Color4f

func Color4f(red float32, green float32, blue float32, alpha float32)

func DisableClientState

func DisableClientState(array uint32)

func DrawElements

func DrawElements(mode uint32, count int32, xtype uint32, indices unsafe.Pointer)

func EnableClientState

func EnableClientState(array uint32)

func End

func End()

func EndList

func EndList()

func GenLists

func GenLists(xrange int32) uint32

func GetError

func GetError() uint32

func GetFloatv

func GetFloatv(pname uint32, data *float32)

func GetIntegerv

func GetIntegerv(pname uint32, data *int32)

func GetString

func GetString(name uint32) *uint8

func GoStr

func GoStr(cstr *uint8) string

func InitOpenGL

func InitOpenGL() error

func LoadIdentity

func LoadIdentity()

func MatrixMode

func MatrixMode(mode uint32)

func NewList

func NewList(list uint32, mode uint32)

func NormalPointer

func NormalPointer(xtype uint32, stride int32, pointer unsafe.Pointer)

func Ortho

func Ortho(left float64, right float64, bottom float64, top float64, zNear float64, zFar float64)

func PopClientAttrib

func PopClientAttrib()

func PopMatrix

func PopMatrix()

func PushClientAttrib

func PushClientAttrib(mask uint32)

func PushMatrix

func PushMatrix()

func Rotatef

func Rotatef(angle float32, x float32, y float32, z float32)

func TexCoord2f

func TexCoord2f(s float32, t float32)

func TexCoordPointer

func TexCoordPointer(size int32, xtype uint32, stride int32, pointer unsafe.Pointer)

func TexEnvi

func TexEnvi(target uint32, pname uint32, param int32)

func TexParameteri

func TexParameteri(target uint32, pname uint32, param int32)

func Translatef

func Translatef(x float32, y float32, z float32)

func Vertex2f

func Vertex2f(x float32, y float32)

func VertexPointer

func VertexPointer(size int32, xtype uint32, stride int32, pointer unsafe.Pointer)

Types

This section is empty.

Jump to

Keyboard shortcuts

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