kBessa
Just downloaded and messed around with LightEngine in VB.NET
heres a simple spinning cube code sample since it differs from the chm example (its using a module for the main code, not a class, and it doesnt Inherit le, obviously)
Imports CDarkGDK
Imports LightOrb.LightEngine
Imports LightOrb.LightEngine.Basic3D
Module modMain
Sub Main()
CDarkGDK.InitDarkGDK(sKEY)
SetupGUI()
'//le cube
Dim oCube As New LightCube(2.0F)
oCube.Position(0.0F, 0.0F, 0.0F)
While oDBP.LoopGDK
oCube.Rotate(oCube.AngleX, oCube.AngleY + 0.5F, oCube.AngleZ)
oDBCore.Sync()
End While
End Sub
Private Sub SetupGUI()
oDBDisplay.SetWindowTitle("DGDK.NET Light Engine Test")
oDBDisplay.SetDisplayMode(1024, 768, 32)
oDBDisplay.SetWindowPosition(250, 128)
oDBCamera.AutoCamOff()
oDBCore.SyncOn()
oDBCamera.BackdropOn()
oDBCamera.ColorBackdrop(oDB2D.RGBC(0, 0, 0))
oDBCamera.PositionCamera(0.0F, 5.0F, -10.0F)
oDBCamera.PointCamera(0.0F, 0.0F, 0.0F)
End Sub
End Module
Works a treat. I then looked up if LightCube exposed the internal ID property (because that would be useful as a keying mechanism for adding groups of objects to strongly typed Generics Collections), which it did (cheers), but then I noticed its not read-only
. Was that intentional or an oversight? Just curious.
anyways, good work
My DBP plugins page is now hosted [href]
here[/href]