Gamestudio Links
Zorro Links
Newest Posts
ZorroGPT
by TipmyPip. 11/19/25 10:10
MRC.c and WFO
by 11honza11. 11/18/25 15:22
webGL
by Ice2642. 11/17/25 21:27
Camera always moves upwards?
by NeoDumont. 11/17/25 09:56
Future of ZorroHFT
by TipmyPip. 11/16/25 13:52
COT Download with Quandl does not work
by Petra. 11/15/25 09:35
Training with the R bridge does not work
by Petra. 11/15/25 09:31
Zorro 2.70
by jcl. 11/15/25 08:43
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
3 registered members (Quad, AndrewAMD, TipmyPip), 5,904 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
SkinnyApe, tritom, sheliepaley, Blueguy, blobplayintennis
19179 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
structs? #143897
07/27/07 20:49
07/27/07 20:49
Joined: Oct 2002
Posts: 8,939
planet.earth
ello Offline OP
Senior Expert
ello  Offline OP
Senior Expert

Joined: Oct 2002
Posts: 8,939
planet.earth
do they work as in HLSL?

Re: structs? [Re: ello] #143898
07/27/07 22:24
07/27/07 22:24
Joined: Jan 2007
Posts: 63
Oregon
mbartman Offline
Junior Member
mbartman  Offline
Junior Member

Joined: Jan 2007
Posts: 63
Oregon
I'm not familiar with HLSL so I don't know how similar it is to C, but if you look in your manual under 'structs', it breaks it all down for you.


Michael Bartman A6/A7 Commercial Edition Programmer By Nature
Re: structs? [Re: mbartman] #143899
07/28/07 22:35
07/28/07 22:35
Joined: Jan 2002
Posts: 4,225
Germany / Essen
Uhrwerk Offline
Expert
Uhrwerk  Offline
Expert

Joined: Jan 2002
Posts: 4,225
Germany / Essen
It's quite easy, though I don't know how they are in defined in HLSL... It's the following way:

typedef struct NameOfTheStruct
{
int aMemberOfTheStruct
char* aCharArrayPointerOfTheStruct
float WhateverOtherMembers you want
} NameOfTheStruct;


Always learn from history, to be sure you make the same mistakes again...
Re: structs? [Re: Uhrwerk] #143900
07/29/07 00:52
07/29/07 00:52
Joined: Mar 2006
Posts: 3,538
WA, Australia
J
JibbSmart Offline
Expert
JibbSmart  Offline
Expert
J

Joined: Mar 2006
Posts: 3,538
WA, Australia
don't forget the semicolons between different member definitions

julz


Formerly known as JulzMighty.
I made KarBOOM!
Re: structs? [Re: JibbSmart] #143901
07/29/07 12:59
07/29/07 12:59
Joined: Jan 2002
Posts: 4,225
Germany / Essen
Uhrwerk Offline
Expert
Uhrwerk  Offline
Expert

Joined: Jan 2002
Posts: 4,225
Germany / Essen
Would be a good idea, indeed...


Always learn from history, to be sure you make the same mistakes again...

Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

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