mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-10 21:17:27 +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()
|
||
|
}
|