Page 1 of 1

dshader_t

Posted: Mon May 19, 2008 11:38 pm
by chacham15
Based on looking at hexdumps dsurface_t should be of the following form:

typedef struct dshader_s {
char resourcename[64];
int surfaceflags;
int contentflags;
int dummy; // I still dont know what this is
char filename[64];
} dshader_t;

Just thought I'd share.

-chacham15

Posted: Tue May 20, 2008 2:03 pm
by Rookie One.pl
Thanks, dude, but we've got it already. ;) That filename part is either the image pointed at by the qer_editorimage shader param (i.e. the image to be shown in Radiant texture browser) or the filename of the image of the first stage in the shader. Either way, OpenMoHAA doesn't make any use of it, as it just loads the shader.

Posted: Tue May 20, 2008 6:56 pm
by chacham15
I was just letting you know since its marked in the file as 'dummy' (and also as ints)

700 typedef struct {
701 char shader[MAX_QPATH];
702 int surfaceFlags;
703 int contentFlags;
704
705 int dummy[17];
706 } dshader_t;

-chacham15

Posted: Tue May 20, 2008 7:51 pm
by Rookie One.pl
OK, thanks for your input. :)