public View() { InitializeComponent(); // Initialize NIFAPI NIFAPI.Create(this.Handle); // Get DC handle (you've to release it) m_hdc = GL.GetDC(this.Handle); // Create camera camera = new CCamera(); // init vars last_mouse_position = new Point(0,0); m_current_object = new IntPtr(0); mf_rotation = 0; mb_rotation = true; mn_gl_list = 0; mb_delta_camera = true; }
public void ViewObject(CCamera.e_viewPosition side) { // set camera camera.targetObject(m_current_object, side); }