Having just read kBessa\\\\\\\'s comments on \\\\\\\"integrating ModDGDK into the interop dll\\\\\\\" I was a little concerned with the fact I\\\\\\\'ve renamed the objects in my projects.
IE. I\\\\\\\'ve put all the DGDK objects into a single class (this way I benefit from VB.NET Intellisense dropdown menus).
I\\\\\\\'m wondering if this might now cause a problem with future versions of DGDK.NET.
Public Class ClsDGDK
Public App As New DGDKLib.dgdkApp
Public Animation As New DGDKLib.dgdkAnimation
Public D2 As New DGDKLib.dgdkBasic2D
Public D3 As New DGDKLib.dgdkBasic3D
Public Bitmap As New DGDKLib.dgdkBitmap
Public Camera As New DGDKLib.dgdkCamera
Public Core As New DGDKLib.dgdkCore
Public Display As New DGDKLib.dgdkDisplay
Public File As New DGDKLib.dgdkFile
Public FTP As New DGDKLib.dgdkFTP
Public Image As New DGDKLib.dgdkImage
Public Input As New DGDKLib.dgdkInput
Public Light As New DGDKLib.dgdkLight
Public Matrix As New DGDKLib.dgdkMatrix
Public MemBlock As New DGDKLib.dgdkMemblock
Public Multiplayer As New DGDKLib.dgdkMultiplayer
Public Music As New DGDKLib.dgdkMusic
Public Particles As New DGDKLib.dgdkParticles
Public Sound As New DGDKLib.dgdkSound
Public Sprite As New DGDKLib.dgdkSprite
Public Sys As New DGDKLib.dgdkSystem
Public Terrain As New DGDKLib.dgdkTerrain
Public Text As New DGDKLib.dgdkText
Public World As New DGDKLib.dgdkWorld
Public Math As New DGDKLib.dgdk3DMaths
Public ODE As ODEPhysicsNET.CODEPlugin
Public oDGDKGlobals As New CDGDKGlobals
Public Sub New(ByVal strKey As String, ByVal strData As String)
Dim hProcess As IntPtr = System.Diagnostics.Process.GetCurrentProcess.Handle
Try
App.InitializeGDK(hProcess.ToInt32, strData, strKey)
Catch ex As Exception
MsgBox(ex.Message, MsgBoxStyle.Critical, \\\\\\\"Critical Error\\\\\\\")
Throw New Exception(\\\\\\\"Failiure to initialise engine\\\\\\\")
End Try
\\\\\\\' Used for plugins
With oDGDKGlobals
.m_pDGDK3DMaths = Math
.m_pDGDKAnimation = Animation
.m_pDGDKBasic2D = D2
.m_pDGDKBasic3D = D3
.m_pDGDKBitmap = Bitmap
.m_pDGDKCamera = Camera
.m_pDGDKCore = Core
.m_pDGDKDisplay = Display
.m_pDGDKFile = File
.m_pDGDKFTP = FTP
.m_pDGDKImage = Image
.m_pDGDKInput = Input
.m_pDGDKLight = Light
.m_pDGDKMatrix = Matrix
.m_pDGDKMemblock = MemBlock
.m_pDGDKMultiplayer = Multiplayer
.m_pDGDKMusic = Music
.m_pDGDKParticles = Particles
.m_pDGDKSound = Sound
.m_pDGDKSprite = Sprite
.m_pDGDKSystem = Sys
.m_pDGDKTerrain = Terrain
.m_pDGDKText = Text
.m_pDGDKWorld = World
End With
ODE = New ODEPhysicsNET.CODEPlugin(oDGDKGlobals)
End Sub
End Class
Public Module ModDGDK
Public DD As ClsDGDK
Public DarkImages As DarkImageArray
Public Sub InitDD(ByVal strKey As String, ByVal strData As String)
DD = New ClsDGDK(strKey, strData)
DarkImages = New DarkImageArray
End Sub
End Module