I have 1300 lines of code to generate the matrix for lispSM shadows and i'm trying to convert it to lite-c to spice up my shadows.

I'd like to define
typedef float VECTOR3D[3];
and
typedef VECTOR3D VECTOR3x8D[8];

as they are used all over the code. Now i could rewrite the whole code (change [0] with .x [1] with .y etc, create a struct for the VECTOR3x8D thingy, change code accordingly, etc. pp) or i could try to somehow get this working laugh

Even if not using it for the lispSM thing, i'm generally interisted in how to define a new type of array in lite-c as i think this is a nice thing to have laugh

[edit] tried it with (mresult[0])[0] and this seems to work (at least i get no errors on compiling). Have to test it a little more. Thanks so far! laugh

I'm still interisted in the #define method by Joey though


Shade-C EVO Lite-C Shader Framework