Page 2 of 2

Re: OpenGLGadget - drawing sprite (perfect pixel)

Posted: Mon Apr 17, 2017 8:18 pm
by omnikam
Samuel wrote:This works for me.

Code: Select all

Image2 = CatchImage(#PB_Any, ?Logo)
The number you were using to identify your image was 0, but then you were storing the data label instead of the image identifier. I use #PB_Any because it will return an auto generated number that is not already in use.

This code should work as well, but it's one extra line of work.

Code: Select all

CatchImage(0, ?Logo)
Image2 = 0
If you still can't get it to work. Then maybe your image path is incorrect because of wrong default directory.
Yes you were right :D my syntax was wrong, corrected it with your suggestions and everything is working as is
Thank you Samuel, you have been a wonderful help :D

Re: OpenGLGadget - drawing sprite (perfect pixel)

Posted: Sun Apr 23, 2017 4:02 pm
by omnikam
removed

Re: OpenGLGadget - drawing sprite (perfect pixel)

Posted: Mon Apr 24, 2017 12:10 am
by omnikam
removed

Re: OpenGLGadget - drawing sprite (perfect pixel)

Posted: Mon Apr 24, 2017 4:50 am
by omnikam
Removed