|
|
Re: structs?
[Re: ello]
#143898
07/27/07 22:24
07/27/07 22:24
|
Joined: Jan 2007
Posts: 63 Oregon
mbartman
Junior Member
|
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
Expert
|
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...
|
|
|
|
|
|