Here is my DBPro Example:
SYNC ON
SYNC RATE 60
SET WINDOW ON
SET DISPLAY MODE 800,600,32
POSITION LIGHT 0,20,70,-10
SET POINT LIGHT 0,20, 70, -50
POINT LIGHT 0,0,0,0
MAKE OBJECT BOX 1, 50, 1, 50
POSITION OBJECT 1, 0,-.5, 1
COLOR OBJECT 1, RGB(0,0,200)
SET SHADOW SHADING ON 1
MAKE OBJECT CUBE 2, 4
POSITION OBJECT 2, 0,6,0
COLOR OBJECT 2, RGB(200, 0,0)
SET SHADOW SHADING ON 2
POSITION CAMERA 12,30,25
POINT CAMERA 0,0,0
do
SYNC
loop
END
And my LightEngine 'equivalent':
using System;
using System.Collections.Generic;
using LightOrb.LightEngine;
using LightOrb.LightEngine.Basic2D;
using LightOrb.LightEngine.Basic3D;
using System.Drawing;
namespace GDK_Net1
{
class program : LightEngine
{
static void Main(string[] args)
{
authentic getKey = new authentic();
getKey.key();
LightCore.SyncOn();
LightCore.SyncRate(60);
LightLight light = new LightLight();
light.Position(20.0f, 70.0f, -10.0f);
light.SetPoint(20.0f, 70.0f, -50.0f);
light.Point(0.0f,0.0f,0.0f);
LightBox ground = new LightBox(50.0f, 1.0f, 50.0f);
ground.Position(0.0f, -0.5f, 1.0f);
ground.Color = Color.FromArgb(0,0,200);
ground.SetShadowShadingOn();
LightCube cube = new LightCube(4);
cube.Position(0.0f, 6.0f, 0.0f);
cube.Color = Color.FromArgb(200,0,0);
cube.SetShadowShadingOn();
LightCamera.Position(12.0f, 30.0f, 25.0f);
LightCamera.Point(0.0f, 0.0f, 0.0f);
while(LoopGDK)
{
LightCore.Sync();
}
}
}
}