Guevara-chan / Raylib-Forever

:.raylib headers for Nim anytime.:
https://guevara-chan.github.io/Raylib-Forever/main.html
75 stars 4 forks source link

Texture2D objects #1

Closed nucky9 closed 4 years ago

nucky9 commented 4 years ago

When loading textures via LoadTexture(), they load correctly into openGl, but the returned Texture2D object seems to be filled in randomly.

For instance:

import raylib

InitWindow(400, 400, "test")
let texBunny = LoadTexture("wabbit_alpha.png")
echo texBunny.id
echo texBunny.width
echo texBunny.height

outputs: 137438953475 4294967328 2

Sorry, should mention this is 1.04 with no extra compiler flags

Guevara-chan commented 4 years ago

Dunno how I missed those typing delirium. Fixed.