Gamestudio Links
Zorro Links
Newest Posts
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (AndrewAMD), 1,014 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 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: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
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: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
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 | chip programmers | 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