08-30-2022, 12:07 PM
You're using myTex incorrectly. You can't use the return from LoadTexture directly as a Texture "object". myTex& is a different variable from myTex. The ampersand (&) means LONG. So the IDE thinks you have an undeclared variable called myTex, which is a long. I'm going to have to look at that example and see what can be done. Even if you could use the struct in such a way, you'd be overwriting anything you set in the myTex declaration when you assigned it to the value of LoadTexture.
Ask me about Windows API and maybe some Linux stuff