feat(engine): add LoadImageFromMemory()
This commit is contained in:
parent
5b54466018
commit
93736e060e
1 changed files with 7 additions and 0 deletions
7
engine/graphics/image.go
Normal file
7
engine/graphics/image.go
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
package graphics
|
||||
|
||||
import rl "github.com/gen2brain/raylib-go/raylib"
|
||||
|
||||
func LoadImageFromMemory(typ string, data []byte) *rl.Image {
|
||||
return rl.LoadImageFromMemory(typ, data, int32(len(data)))
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue