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
1 registered members (TipmyPip), 18,631 guests, and 7 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
SDK Questions #212509
06/22/08 17:38
06/22/08 17:38
Joined: Dec 2003
Posts: 521
LazyDog Offline OP
User
LazyDog  Offline OP
User

Joined: Dec 2003
Posts: 521
for the following matrix functions, what is the actual type that float* (for the matrix)
is pointing to in your c++ code? is it an array of 16 items (4x4) defined as float?

// float 4x4 matrix math
EXT float* F(mat_identity)(float*);
EXT float* F(mat_inverse)(float*,float*);
EXT float* F(mat_multiply)(float*,float*);
EXT float* F(mat_scale)(float*,var,var,var);
EXT float* F(mat_set)(float*,float*);
EXT float* F(mat_transpose)(float*,float*);

should VECTOR* xy be defined as COLOR* color instead for the following?
EXT var F(draw_text)(char* text,var,var,VECTOR* xy);
(the manual defines the above as VECTOR* color, should it also be COLOR* color)?


www.LazyDogSoftware.com
Delphi SDK Homepage

A7 Pro 780
Delphi 5 through 2010
Re: SDK Questions [Re: LazyDog] #212591
06/23/08 08:36
06/23/08 08:36
Joined: Jul 2000
Posts: 28,024
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 28,024
Frankfurt
Correct, a matrix is an array of 16 floats.

Also correct were a COLOR* for draw_text. It does not matter technically because a VECTOR* is the same as a COLOR*, but it's misleading and I'll change that.


Moderated by  old_bill, 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