Example #1
0
        // --------------------------------------------------------------------

        public void Init(int w, int h, IntPtr handle)
        {
            OnyxInstance = Onyx3DEngine.Instance;
            OnyxInstance.MakeCurrent();

            mFrameBuffer = new FrameBuffer(w, h);

            InitializeBasicScene();
        }
Example #2
0
        // --------------------------------------------------------------------

        public void Render()
        {
            OnyxInstance.MakeCurrent();
            mFrameBuffer.Bind();
            OnyxInstance.Renderer.Render(Scene, Scene.ActiveCamera, mFrameBuffer.Width, mFrameBuffer.Height);
            if (DrawGrid)
            {
                OnyxInstance.Renderer.Render(mGridRenderer, Scene.ActiveCamera);
            }
            mFrameBuffer.Unbind();
        }