// -------------------------------------------------------------------- public void Init(int w, int h, IntPtr handle) { OnyxInstance = Onyx3DEngine.Instance; OnyxInstance.MakeCurrent(); mFrameBuffer = new FrameBuffer(w, h); InitializeBasicScene(); }
// -------------------------------------------------------------------- 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(); }