mirror of
https://github.com/bloeys/nmage.git
synced 2025-12-29 05:18:21 +00:00
Enable blending by default
This commit is contained in:
@ -178,6 +178,9 @@ func initOpenGL() error {
|
||||
gl.CullFace(gl.BACK)
|
||||
gl.FrontFace(gl.CCW)
|
||||
|
||||
gl.Enable(gl.BLEND)
|
||||
gl.BlendFunc(gl.SRC_ALPHA, gl.ONE_MINUS_SRC_ALPHA)
|
||||
|
||||
gl.ClearColor(0, 0, 0, 1)
|
||||
return nil
|
||||
}
|
||||
|
||||
4
main.go
4
main.go
@ -18,6 +18,10 @@ import (
|
||||
"github.com/veandco/go-sdl2/sdl"
|
||||
)
|
||||
|
||||
//BUGS:
|
||||
// need to rebind the texutre if the texture (or any material values) change between draw calls
|
||||
// DT handling for when it is zero is wrong! (Gives 1000 DT)
|
||||
|
||||
//TODO: Tasks:
|
||||
// Build simple game
|
||||
// Integrate physx
|
||||
|
||||
Reference in New Issue
Block a user