private void Init(GtkGL.IGLObject glObject, GtkGL.EulerRotation rot)
        {
            this.eRot = rot;
            this.glObject = glObject;

            if(pressedConnected == false){
                this.Pressed += OnPressed;
                pressedConnected = true;
            }

            if(releasedConnected == false){
                this.Released += OnReleased;
                releasedConnected = true;
            }
        }
Beispiel #2
0
		public static GtkGL.GdkGLContext AttrlistShareNew(out int attrlist, GtkGL.GdkGLContext sharelist, int direct) {
			IntPtr raw_ret = gdk_gl_context_attrlist_share_new(out attrlist, sharelist == null ? IntPtr.Zero : sharelist.Handle, direct);
			GtkGL.GdkGLContext ret = raw_ret == IntPtr.Zero ? null : (GtkGL.GdkGLContext) GLib.Opaque.GetOpaque (raw_ret, typeof (GtkGL.GdkGLContext), false);
			return ret;
		}
 public ObjectRotationButton(Gtk.Widget widget, GtkGL.IGLObject glObject, GtkGL.EulerRotation rot)
     : base(widget)
 {
     Init(glObject, rot);
 }
Beispiel #4
0
 public void Rotate(GtkGL.EulerRotation er)
 {
     Rotate (er.ToQuaternion ());
 }
Beispiel #5
0
 public void Rotate(GtkGL.TransformationMatrix tm)
 {
     Rotate (tm.ToQuaternion ());
 }
Beispiel #6
0
        public void Rotate(GtkGL.Quaternion q)
        {
            Quat *= q;

            Console.WriteLine("q: "+Quat.ToString());
            // Tell our handlers that we have been updated
            if (Updated != null)
                Updated (this, null);
        }
 public void Rotate(GtkGL.TransformationMatrix tm)
 {
     TransMatrix *= tm;
     // Tell our handlers that we have been updated
       			if (Updated != null)
       			Updated (this, null);
 }
        public void Rotate(GtkGL.EulerRotation er)
        {
            ERot += er;

            // Tell our handlers that we have been updated
              			if (Updated != null)
              			Updated (this, null);
        }
        public void Rotate(GtkGL.Quaternion q)
        {
            Quat *= q;

            // Tell our handlers that we have been updated
              			if (Updated != null)
              			Updated (this, null);
        }
Beispiel #10
0
		public int MakeCurrent(GtkGL.GdkGLContext context) {
			int raw_ret = gdk_gl_pixmap_make_current(Handle, context == null ? IntPtr.Zero : context.Handle);
			int ret = raw_ret;
			return ret;
		}