Adding modding folder with a hacked build.
This commit is contained in:
@@ -0,0 +1,90 @@
|
||||
package opengl
|
||||
|
||||
// OpenGL describes an Open GL interface usable for all environments of this
|
||||
// application.
|
||||
type OpenGL interface {
|
||||
ActiveTexture(texture uint32)
|
||||
AttachShader(program uint32, shader uint32)
|
||||
|
||||
BindAttribLocation(program uint32, index uint32, name string)
|
||||
BindBuffer(target uint32, buffer uint32)
|
||||
BindFramebuffer(target uint32, buffer uint32)
|
||||
BindRenderbuffer(target uint32, buffer uint32)
|
||||
BindSampler(unit uint32, sampler uint32)
|
||||
BindTexture(target uint32, texture uint32)
|
||||
BindVertexArray(array uint32)
|
||||
BlendEquation(mode uint32)
|
||||
BlendEquationSeparate(modeRGB uint32, modeAlpha uint32)
|
||||
BlendFunc(sfactor uint32, dfactor uint32)
|
||||
BlendFuncSeparate(srcRGB uint32, dstRGB uint32, srcAlpha uint32, dstAlpha uint32)
|
||||
BufferData(target uint32, size int, data interface{}, usage uint32)
|
||||
|
||||
CheckFramebufferStatus(target uint32) uint32
|
||||
|
||||
Clear(mask uint32)
|
||||
ClearColor(red float32, green float32, blue float32, alpha float32)
|
||||
|
||||
CompileShader(shader uint32)
|
||||
|
||||
CreateProgram() uint32
|
||||
CreateShader(shaderType uint32) uint32
|
||||
|
||||
DeleteBuffers(buffers []uint32)
|
||||
DeleteFramebuffers(buffers []uint32)
|
||||
DeleteProgram(program uint32)
|
||||
DeleteShader(shader uint32)
|
||||
DeleteTextures(textures []uint32)
|
||||
DeleteVertexArrays(arrays []uint32)
|
||||
Disable(capability uint32)
|
||||
|
||||
DrawArrays(mode uint32, first int32, count int32)
|
||||
DrawBuffers(buffers []uint32)
|
||||
DrawElements(mode uint32, count int32, elementType uint32, indices uintptr)
|
||||
|
||||
Enable(capability uint32)
|
||||
EnableVertexAttribArray(index uint32)
|
||||
|
||||
FramebufferRenderbuffer(target uint32, attachment uint32, renderbuffertarget uint32, renderbuffer uint32)
|
||||
FramebufferTexture(target uint32, attachment uint32, texture uint32, level int32)
|
||||
|
||||
GenerateMipmap(target uint32)
|
||||
GenBuffers(n int32) []uint32
|
||||
GenFramebuffers(n int32) []uint32
|
||||
GenRenderbuffers(n int32) []uint32
|
||||
GenTextures(n int32) []uint32
|
||||
GenVertexArrays(n int32) []uint32
|
||||
|
||||
GetAttribLocation(program uint32, name string) int32
|
||||
GetError() uint32
|
||||
GetIntegerv(name uint32, data *int32)
|
||||
GetShaderInfoLog(shader uint32) string
|
||||
GetShaderParameter(shader uint32, param uint32) int32
|
||||
GetProgramInfoLog(program uint32) string
|
||||
GetProgramParameter(program uint32, param uint32) int32
|
||||
GetUniformLocation(program uint32, name string) int32
|
||||
|
||||
IsEnabled(capability uint32) bool
|
||||
|
||||
LinkProgram(program uint32)
|
||||
|
||||
PixelStorei(name uint32, param int32)
|
||||
PolygonMode(face uint32, mode uint32)
|
||||
|
||||
ReadPixels(x int32, y int32, width int32, height int32, format uint32, pixelType uint32, pixels interface{})
|
||||
RenderbufferStorage(target uint32, internalFormat uint32, width int32, height int32)
|
||||
|
||||
Scissor(x, y int32, width, height int32)
|
||||
ShaderSource(shader uint32, source string)
|
||||
|
||||
TexImage2D(target uint32, level int32, internalFormat uint32, width int32, height int32,
|
||||
border int32, format uint32, xtype uint32, pixels interface{})
|
||||
TexParameteri(target uint32, pname uint32, param int32)
|
||||
|
||||
Uniform1i(location int32, value int32)
|
||||
Uniform4fv(location int32, value *[4]float32)
|
||||
UniformMatrix4fv(location int32, transpose bool, value *[16]float32)
|
||||
UseProgram(program uint32)
|
||||
|
||||
VertexAttribOffset(index uint32, size int32, attribType uint32, normalized bool, stride int32, offset int)
|
||||
Viewport(x int32, y int32, width int32, height int32)
|
||||
}
|
||||
Reference in New Issue
Block a user