本文整理汇总了Golang中golang.org/x/mobile/gl.Context.DeleteBuffer方法的典型用法代码示例。如果您正苦于以下问题:Golang Context.DeleteBuffer方法的具体用法?Golang Context.DeleteBuffer怎么用?Golang Context.DeleteBuffer使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类golang.org/x/mobile/gl.Context
的用法示例。
在下文中一共展示了Context.DeleteBuffer方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Golang代码示例。
示例1: onStop
//停止时触发,清理
func onStop(glctx gl.Context) {
glctx.DeleteProgram(program)
glctx.DeleteBuffer(positionbuf)
glctx.DeleteBuffer(colorbuf)
fps.Release()
images.Release()
}
示例2: onStop
func onStop(glctx gl.Context) {
glctx.DeleteProgram(program)
glctx.DeleteBuffer(buf)
fps.Release()
if statusPainter != nil {
statusPainter.Release()
}
images.Release()
}
示例3: appStop
// Use this to exit your game safely
// It will automatically unload all your assets and dispose the stage
// Schedule an exit from the application. On android, this will cause a call to pause() and dispose() some time in the future,
// it will not immediately finish your application.
// On iOS this should be avoided in production as it breaks Apples guidelines
func appStop(glctx gl.Context) {
println("Exiting")
running = false
if currentScene.OnPause != nil {
currentScene.OnPause(currentScene)
soundsPlayer.Close()
}
glctx.DeleteProgram(program)
glctx.DeleteBuffer(buf)
fps.Release()
images.Release()
}
示例4: Delete
func (buf *floatBuffer) Delete(ctx gl.Context) {
ctx.DeleteBuffer(buf.Buffer)
}
示例5: onStop
func onStop(glctx gl.Context) {
glctx.DeleteProgram(program)
glctx.DeleteBuffer(buf)
fps.Release()
images.Release()
}
示例6: DestroyKey
// DestroyKey cleans up any resources for the key when destorying the key.
func (k *PianoKey) DestroyKey(glctx gl.Context) {
glctx.DeleteBuffer(k.glBuf)
al.DeleteSources(k.soundSources...)
al.DeleteBuffers(k.soundBuffers)
al.CloseDevice()
}
示例7: Delete
func (buf Buffer) Delete(ctx gl.Context) {
ctx.DeleteBuffer(buf.Buffer)
// buf.Update = nil
}