08-30-2022, 05:07 AM
my two cents
here I see 2 kind of variable with the same name...
it is not a good practice to do this...
1 please use _Option Explicit, it saves your time and concentration at the price to declare every variables
2 correct the correlate data type as Spriggs pointed out (I fall often in this kind of misunderstandment because I use too few C language)
3 Does the raylib work like OpenGL (you must redraw everytime the screen)? Otherwise I should prefer to put out of the loop DO the calling for initialization and deallocation of resources OR to put a _LIMIT to the loop.
Good luck
Code: (Select All)
DIM SHARED tex AS fTexture
tex.id = 0
tex.xwidth = 50
tex.height = 50
tex.mipmaps = 0
tex.format = 0
tex& = LoadTexture("dw2.png")
here I see 2 kind of variable with the same name...
it is not a good practice to do this...
1 please use _Option Explicit, it saves your time and concentration at the price to declare every variables
2 correct the correlate data type as Spriggs pointed out (I fall often in this kind of misunderstandment because I use too few C language)
3 Does the raylib work like OpenGL (you must redraw everytime the screen)? Otherwise I should prefer to put out of the loop DO the calling for initialization and deallocation of resources OR to put a _LIMIT to the loop.
Good luck