Stremik Posted June 22, 2003 Share Posted June 22, 2003 Good evening ladies and gentlemen! I'm trying to recreate an VEX light shader in VOPs but the shader needs a custom header files to be included. How do I do that in VOPs? Quote Link to comment Share on other sites More sharing options...
Wolfwood Posted June 22, 2003 Share Posted June 22, 2003 You could create a new VOP type. In the VEX Code Tab under Outer Code you would add your header #include "StremikSuperHeader.h" In order to avoid function name collisions, (among other things), make sure you add the "$" in front of your function name in the header file. vector $makeSpiffyColor( .... ... ... ) If you make a new VOP type for the sole purpose of adding a header make sure you check "Force Code Generation". jim. Quote Link to comment Share on other sites More sharing options...
Wolfwood Posted June 22, 2003 Share Posted June 22, 2003 On second thought, instead of using #include in the Outer VEX Code wouldn't it be better just to include the contents of your header in VOP Operator instead? That way you don't have to worry about the header file, its neatly placed inside the OTL. jim. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.