示例#1
0
        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;
        }
示例#2
0
 public void ViewObject(CCamera.e_viewPosition side)
 {
     // set camera
     camera.targetObject(m_current_object, side);
 }