Beispiel #1
0
        protected override void OnLoad(EventArgs e)
        {
            base.OnLoad(e);
            world = WorldRenderer.Create(ColladaGeometry.LoadDAE("Assets/room.dae"));
            Box   = PhysicsObjectRenderer.Create(ColladaGeometry.LoadDAE("Assets/box.dae"));

            Box.BuildDisplayList();

            InitializeOpenGL();

            Mouse.ButtonDown += MouseClick;
            //build the world
            world.BuildDisplayList();
            world.AddToPhysics(physics_world);
            icons[0] = ImageLoader.LoadTexture("Assets/InterfaceTextures/AI Spawn.png");
            icons[1] = ImageLoader.LoadTexture("Assets/InterfaceTextures/Camera.png");
            icons[2] = ImageLoader.LoadTexture("Assets/InterfaceTextures/Physics Spawn.png");
            icons[3] = ImageLoader.LoadTexture("Assets/InterfaceTextures/Waypoint Logo.png");
        }