mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-24 02:38:53 +01:00
internal/graphicsdriver/opengl/gles: remove unused functions
This commit is contained in:
parent
c5fb6fa23f
commit
fad9f1592c
@ -60,7 +60,6 @@ type gl struct {
|
||||
getProgramParameter js.Value
|
||||
getShaderInfoLog js.Value
|
||||
getShaderParameter js.Value
|
||||
getShaderPrecisionFormat js.Value
|
||||
getUniformLocation js.Value
|
||||
isContextLost js.Value
|
||||
isFramebuffer js.Value
|
||||
@ -137,7 +136,6 @@ func (c *context) newGL(v js.Value) *gl {
|
||||
getProgramParameter: v.Get("getProgramParameter").Call("bind", v),
|
||||
getShaderInfoLog: v.Get("getShaderInfoLog").Call("bind", v),
|
||||
getShaderParameter: v.Get("getShaderParameter").Call("bind", v),
|
||||
getShaderPrecisionFormat: v.Get("getShaderPrecisionFormat").Call("bind", v),
|
||||
getUniformLocation: v.Get("getUniformLocation").Call("bind", v),
|
||||
isContextLost: v.Get("isContextLost").Call("bind", v),
|
||||
isFramebuffer: v.Get("isFramebuffer").Call("bind", v),
|
||||
|
@ -245,13 +245,6 @@ func (DefaultContext) GetShaderiv(dst []int32, shader uint32, pname uint32) {
|
||||
C.glGetShaderiv(C.GLuint(shader), C.GLenum(pname), (*C.GLint)(unsafe.Pointer(&dst[0])))
|
||||
}
|
||||
|
||||
func (DefaultContext) GetShaderPrecisionFormat(shadertype uint32, precisiontype uint32) (rangeLow, rangeHigh, precision int) {
|
||||
var r [2]int32
|
||||
var p int32
|
||||
C.glGetShaderPrecisionFormat(C.GLenum(shadertype), C.GLenum(precisiontype), (*C.GLint)(unsafe.Pointer(&r[0])), (*C.GLint)(unsafe.Pointer(&p)))
|
||||
return int(r[0]), int(r[1]), int(p)
|
||||
}
|
||||
|
||||
func (DefaultContext) GetUniformLocation(program uint32, name string) int32 {
|
||||
s := C.CString(name)
|
||||
defer C.free(unsafe.Pointer(s))
|
||||
|
@ -230,10 +230,6 @@ func (g *GomobileContext) GetShaderiv(dst []int32, shader uint32, pname uint32)
|
||||
dst[0] = int32(g.ctx.GetShaderi(gl.Shader{Value: shader}, gl.Enum(pname)))
|
||||
}
|
||||
|
||||
func (g *GomobileContext) GetShaderPrecisionFormat(shadertype uint32, precisiontype uint32) (rangeLow, rangeHigh, precision int) {
|
||||
return g.ctx.GetShaderPrecisionFormat(gl.Enum(shadertype), gl.Enum(precisiontype))
|
||||
}
|
||||
|
||||
func (g *GomobileContext) GetUniformLocation(program uint32, name string) int32 {
|
||||
return g.ctx.GetUniformLocation(gmProgram(program), name).Value
|
||||
}
|
||||
|
@ -57,7 +57,6 @@ type Context interface {
|
||||
GetProgramiv(dst []int32, program uint32, pname uint32)
|
||||
GetShaderInfoLog(shader uint32) string
|
||||
GetShaderiv(dst []int32, shader uint32, pname uint32)
|
||||
GetShaderPrecisionFormat(shadertype uint32, precisiontype uint32) (rangeLow, rangeHigh, precision int)
|
||||
GetUniformLocation(program uint32, name string) int32
|
||||
IsFramebuffer(framebuffer uint32) bool
|
||||
IsProgram(program uint32) bool
|
||||
|
Loading…
Reference in New Issue
Block a user