Original Post
Hi, the Effect.FromFile() method takes an argument called includeFile:
C#
public static Effect FromFile(
Device device,
string sourceDataFile,
Include includeFile,
string skipConstants,
ShaderFlags flags,
EffectPool pool
);
C++
public:
static Effect^ FromFile(
Device^ device,
String^ sourceDataFile,
Include^ includeFile,
String^ skipConstants,
ShaderFlags flags,
EffectPool^ pool
);
The Include class is an abstract class so I have to use my own derived class. So far, I understand this concept, but how do I write my own Include class? I have to override the Open() method, so what should this method do? Can anyone help me on how to implement my own Include class? Thanks, Christian