Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK / Draw section of image

Author
Message
Ian G
16
Years of Service
User Offline
Joined: 3rd Jun 2008
Location: SSM, Canada
Posted: 7th Apr 2009 00:52
I am trying to draw only a portion of an image to the screen in my program. There are no functions in GDK (or DBP) that I am aware of however to do such a thing. Is there any way I can easily do this without a lot of fairly complex programming (such as manually writing to the screen)? I can't pre-calculate the images because the area that is being drawn will change every loop (plus I am drawing multiple times per loop). Any insight into this problem would be greatly appreciated.
Lilith
16
Years of Service
User Offline
Joined: 12th Feb 2008
Location: Dallas, TX
Posted: 7th Apr 2009 01:00
void dbSetSpriteTextureCoord ( int iSprite, int iVertex, float fU, float fV )

Lilith, Night Butterfly
I'm not a programmer but I play one in the office
Ian G
16
Years of Service
User Offline
Joined: 3rd Jun 2008
Location: SSM, Canada
Posted: 7th Apr 2009 05:06
forgot about that one. Thanks, it's working perfectly

Login to post a reply

Server time is: 2024-11-25 14:42:56
Your offset time is: 2024-11-25 14:42:56