OpenGLGadget - drawing sprite (perfect pixel)

Share your advanced PureBasic knowledge/code with the community.
omnikam
User
User
Posts: 27
Joined: Sat Apr 15, 2017 10:58 am

Re: OpenGLGadget - drawing sprite (perfect pixel)

Post 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
omnikam
User
User
Posts: 27
Joined: Sat Apr 15, 2017 10:58 am

Re: OpenGLGadget - drawing sprite (perfect pixel)

Post by omnikam »

removed
Last edited by omnikam on Tue May 02, 2017 8:41 am, edited 1 time in total.
omnikam
User
User
Posts: 27
Joined: Sat Apr 15, 2017 10:58 am

Re: OpenGLGadget - drawing sprite (perfect pixel)

Post by omnikam »

removed
Last edited by omnikam on Tue May 02, 2017 8:40 am, edited 2 times in total.
omnikam
User
User
Posts: 27
Joined: Sat Apr 15, 2017 10:58 am

Re: OpenGLGadget - drawing sprite (perfect pixel)

Post by omnikam »

Removed
Post Reply