Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
0 registered members (), 16,232 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
draw_quad (undocumented features) #372584
06/02/11 20:07
06/02/11 20:07
Joined: Feb 2011
Posts: 135
Myrkling Offline OP
Member
Myrkling  Offline OP
Member

Joined: Feb 2011
Posts: 135
http://www.conitec.net/beta/draw_quad.htm

1) If the quad is larger than the bitmap, the bitmap gets tiled.
This useful feature is not documented, though.

2) About what point does the quad rotate?
It seems to rotate about the upper left corner of the viewport (intentional?).

Re: draw_quad (undocumented features) [Re: Myrkling] #372768
06/04/11 08:00
06/04/11 08:00
Joined: Jul 2000
Posts: 28,024
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 28,024
Frankfurt
We'll document the tiling. The rotation is about the center of the image.

Re: draw_quad (undocumented features) [Re: jcl] #372792
06/04/11 13:12
06/04/11 13:12
Joined: Feb 2011
Posts: 135
Myrkling Offline OP
Member
Myrkling  Offline OP
Member

Joined: Feb 2011
Posts: 135
The rotation is only about the center if the quad's position is 0/0.
When it's placed elsewhere, the rotation is offset:

Code:
#include <acknex.h>

void main() {
    while (1) {
        wait(1);
        draw_quad(NULL, vector(200, 200, 0), NULL, vector(128, 128, 0),
            NULL, COLOR_RED, 100, total_ticks);
    }
}



Last edited by Myrkling; 06/04/11 13:17. Reason: explanation was too ambiguous
Re: draw_quad (undocumented features) [Re: Myrkling] #372962
06/06/11 07:55
06/06/11 07:55
Joined: Jul 2000
Posts: 28,024
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 28,024
Frankfurt
Thanks for the info - the rotation center indeed was wrong due to a bug. This will be fixed in the next update.


Moderated by  aztec, Inestical, Matt_Coles, Tobias 

Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1