Bercon
09-05-2008, 03:41 PM
What do I have to do to get shader compiled as C++ to work?
Here is a test shader, compiling it with VS2005 as C it works, if I switch to C++ it doesn't.
#include "shader.h"
DLLEXPORT int color_test_texture_version(void) {
return(1);
}
DLLEXPORT miBoolean color_test_texture (miColor *result, miState *state, void *params) {
result->r = 1.0;
result->g = 0.5;
result->b = 0.25;
result->a = 1.0;
return miTRUE;
}
Is there some specific setting I have to turn on or what?
Here is a test shader, compiling it with VS2005 as C it works, if I switch to C++ it doesn't.
#include "shader.h"
DLLEXPORT int color_test_texture_version(void) {
return(1);
}
DLLEXPORT miBoolean color_test_texture (miColor *result, miState *state, void *params) {
result->r = 1.0;
result->g = 0.5;
result->b = 0.25;
result->a = 1.0;
return miTRUE;
}
Is there some specific setting I have to turn on or what?
