Gamestudio Links
Zorro Links
Newest Posts
Z9 getting Error 058
by k_ivan. 04/25/26 19:13
ZorroGPT
by TipmyPip. 04/25/26 16:09
Stooq now requires an API key
by jcl. 04/13/26 09:42
Strange "Alien" Skull created with >Knubber<
by NeoDumont. 04/10/26 18:58
400 free seamless texture pack downl. here !
by NeoDumont. 04/08/26 19:55
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
0 registered members (), 3,407 guests, and 11 spiders.
Key: Admin, Global Mod, Mod
Newest Members
valino, juergenwue, VladMak, Geir, ondrej
19209 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
D3DLesson4.c won't run #336733
08/05/10 21:38
08/05/10 21:38
Joined: Mar 2006
Posts: 3,538
WA, Australia
J
JibbSmart Offline OP
Expert
JibbSmart  Offline OP
Expert
J

Joined: Mar 2006
Posts: 3,538
WA, Australia
I've never noticed these before, or are they just new to A8? They're very useful, but D3DLesson4.c won't compile.

I'm using A8.02 Pro, and I get the following:
Code:
Error in line 169:
Can't initialize global structs in functions
<   D3DXVECTOR3* vEyePt = { x=0.0; y=3.0; z=-5.0; } >


Jibb


Formerly known as JulzMighty.
I made KarBOOM!
Re: D3DLesson4.c won't run [Re: JibbSmart] #336814
08/06/10 13:41
08/06/10 13:41
Joined: Jul 2000
Posts: 28,094
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 28,094
Frankfurt
Thanks! This will be fixed.

Move the vEyePt and the 2 following vectors out of the function and make them global - they can then be initialized this way.

Re: D3DLesson4.c won't run [Re: jcl] #336859
08/06/10 16:36
08/06/10 16:36
Joined: Mar 2006
Posts: 3,538
WA, Australia
J
JibbSmart Offline OP
Expert
JibbSmart  Offline OP
Expert
J

Joined: Mar 2006
Posts: 3,538
WA, Australia
Brillo. Thanks!

Jibb


Formerly known as JulzMighty.
I made KarBOOM!

Moderated by  jcl, Nems, Spirit, 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