Prepare NSView/OpenGL Canvas (to speed up rendering on [mac]OS[X]

This avoids Coregraphics (cairo_quartz_surface..) competely.
The openGL texture bypasses CG's slow argb_image and CGSColorMask
methods.
This commit is contained in:
Robin Gareus 2017-03-19 22:40:58 +01:00
parent 7d41e542fe
commit c371fc5115
5 changed files with 331 additions and 1 deletions

View file

@ -215,6 +215,8 @@ public:
bool on_enter_notify_event (GdkEventCrossing*);
bool on_leave_notify_event (GdkEventCrossing*);
void on_realize ();
bool button_handler (GdkEventButton *);
bool motion_notify_handler (GdkEventMotion *);
bool deliver_event (GdkEvent *);
@ -249,6 +251,8 @@ private:
bool really_start_tooltip_timeout ();
bool _in_dtor;
void* _nsglview;
};
/** A GTK::Alignment with a GtkCanvas inside it plus some Gtk::Adjustments for