mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-28 12:48:54 +01:00
17 lines
230 B
Go
17 lines
230 B
Go
|
package opengl
|
||
|
|
||
|
// #cgo LDFLAGS: -framework OpenGL
|
||
|
//
|
||
|
// #include <stdlib.h>
|
||
|
// #include <OpenGL/gl.h>
|
||
|
import "C"
|
||
|
|
||
|
func enableAlphaBlending() {
|
||
|
C.glEnable(C.GL_TEXTURE_2D)
|
||
|
C.glEnable(C.GL_BLEND)
|
||
|
}
|
||
|
|
||
|
func flush() {
|
||
|
C.glFlush()
|
||
|
}
|