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
4 registered members (NewbieZorro, Grant, TipmyPip, AndrewAMD), 12,885 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
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