Diggsey,
I have been going at this 3 ways.
1) I have created a library D3DFunc.lib which I have been trying to wrap in the same way as the DarkGDK libraries are wrapped to create DarkGDK.Net. This fails because I am unable to compile any Plugin project that includes my library.
2) I have created a VB.net plugin using slimDX for all the directX functionality I need. This works but I would need to supply the slimDX redistributable and I seem to have a problem running any app that uses my plugin on 2 other PC's I have tested on.
3) My current attempt is to add all my plugin code into the Plugin template created by Paul. The problem here is that I want to be able to create a class called D3DFunc that has other namespaces for things like Text functions, 2D & 3D functions etc.
if I have a class setup like this
public ref class D3DFunc : public CDGDKPlugin
{
public:
D3DFunc( CDGDKGlobals^ oGlobals )
: CDGDKPlugin( oGlobals )
{
}
};
I can create an instance in VB like this.
Dim oD3DFunc As New D3DFunc(DGDKPlugins.CDarkGDK.GetDarkGDKGlobals())
But I want to be able to have all my 2d Drawing functions in their own namespace like this.
oD3DFunc.Draw2D.BatchDot.AddDot(1, 1, Drawing.Color.AliceBlue)
But I have no idea how to make this. If you can shed any light on how I should code this in my plugin I would be very happy.