Gamestudio Links
Zorro Links
Newest Posts
No connection to MT4
by JeyKey II. 11/22/26 10:49
MinMax function on History t6 file
by LucasJoshua. 11/21/26 14:28
What are you working on?
by rayp. 11/20/26 18:10
FXCM => AVA Trade Plugin???
by Martin_HH. 11/17/26 17:02
contractUpdate() is filtering if >2 rows
by mistery. 11/09/26 12:06
New Zorro version 3.15
by jcl. 11/09/26 09:24
Removing outliers from files
by jcl. 11/04/26 10:30
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
4 registered members (LoT, JeyKey II, LucasJoshua, TipmyPip), 35,114 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
EvanTJ, rht, MaliceTheMaker, Haitao_Ren, JimSimons
19250 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