|
| GLContext (GLContext&& src) noexcept |
|
GLContext& | operator= (GLContext&& src) noexcept |
|
| ~GLContext () noexcept override |
|
GdkGLContext* | gobj () |
| Provides access to the underlying C GObject. More...
|
|
const GdkGLContext* | gobj () const |
| Provides access to the underlying C GObject. More...
|
|
GdkGLContext* | gobj_copy () |
| Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs. More...
|
|
Glib::RefPtr< Display > | get_display () |
| Retrieves the Gdk::Display the context is created for. More...
|
|
Glib::RefPtr< const Display > | get_display () const |
| Retrieves the Gdk::Display the context is created for. More...
|
|
Glib::RefPtr< Surface > | get_surface () |
| Retrieves the Gdk::Surface used by the context. More...
|
|
Glib::RefPtr< const Surface > | get_surface () const |
| Retrieves the Gdk::Surface used by the context. More...
|
|
Glib::RefPtr< GLContext > | get_shared_context () |
| Retrieves the Gdk::GLContext that this context share data with. More...
|
|
Glib::RefPtr< const GLContext > | get_shared_context () const |
| Retrieves the Gdk::GLContext that this context share data with. More...
|
|
void | get_version (int& major, int& minor) const |
| Retrieves the OpenGL version of the context. More...
|
|
bool | is_legacy () const |
| Whether the Gdk::GLContext is in legacy mode or not. More...
|
|
void | get_required_version (int& major, int& minor) const |
| Retrieves the major and minor version requested by calling gdk_gl_context_set_required_version(). More...
|
|
void | set_required_version (int major, int minor) |
| Sets the major and minor version of OpenGL to request. More...
|
|
bool | get_debug_enabled () const |
| Retrieves the value set using gdk_gl_context_set_debug_enabled(). More...
|
|
void | set_debug_enabled (bool enabled=true) |
| Sets whether the Gdk::GLContext should perform extra validations and run time checking. More...
|
|
bool | get_forward_compatible () const |
| Retrieves the value set using gdk_gl_context_set_forward_compatible(). More...
|
|
void | set_forward_compatible (bool compatible=true) |
| Sets whether the Gdk::GLContext should be forward compatible. More...
|
|
void | set_use_es (bool use_es=true) |
| Requests that GDK create an OpenGL ES context instead of an OpenGL one, if the platform and windowing system allows it. More...
|
|
void | unset_use_es () |
| Undo a previous call to set_use_es(). More...
|
|
bool | get_use_es () const |
| Checks whether the context is using an OpenGL or OpenGL ES profile. More...
|
|
bool | realize () |
| Realizes the given Gdk::GLContext. More...
|
|
void | make_current () |
| Makes the context the current one. More...
|
|
Glib::PropertyProxy_ReadOnly< Glib::RefPtr< GLContext > > | property_shared_context () const |
| The Gdk::GLContext that this context is sharing data with, or nullptr More...
|
|
| DrawContext (DrawContext&& src) noexcept |
|
DrawContext& | operator= (DrawContext&& src) noexcept |
|
| ~DrawContext () noexcept override |
|
GdkDrawContext* | gobj () |
| Provides access to the underlying C GObject. More...
|
|
const GdkDrawContext* | gobj () const |
| Provides access to the underlying C GObject. More...
|
|
GdkDrawContext* | gobj_copy () |
| Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs. More...
|
|
Glib::RefPtr< Display > | get_display () |
| Retrieves the Gdk::Display the context is created for. More...
|
|
Glib::RefPtr< const Display > | get_display () const |
| Retrieves the Gdk::Display the context is created for. More...
|
|
Glib::RefPtr< Surface > | get_surface () |
| Retrieves the Gdk::Surface used by the context. More...
|
|
Glib::RefPtr< const Surface > | get_surface () const |
| Retrieves the Gdk::Surface used by the context. More...
|
|
void | begin_frame (const ::Cairo::RefPtr< const ::Cairo::Region >& region) |
| Indicates that you are beginning the process of redrawing region on the context's surface. More...
|
|
void | end_frame () |
| Ends a drawing operation started with begin_frame() and makes the drawing available on screen. More...
|
|
bool | is_in_frame () const |
| Returns true if context is in the process of drawing to its surface after a call to begin_frame() and not yet having called end_frame(). More...
|
|
::Cairo::RefPtr< const ::Cairo::Region > | get_frame_region () const |
| Retrieves the region that is currently in the process of being repainted. More...
|
|
Glib::PropertyProxy_ReadOnly< Glib::RefPtr< Display > > | property_display () const |
| The Gdk::Display used to create the Gdk::DrawContext. More...
|
|
Glib::PropertyProxy_ReadOnly< Glib::RefPtr< Surface > > | property_surface () const |
| The Gdk::Surface the context is bound to. More...
|
|
| Object (const Object &)=delete |
|
Object & | operator= (const Object &)=delete |
|
| Object (Object &&src) noexcept |
|
Object & | operator= (Object &&src) noexcept |
|
void * | get_data (const QueryQuark &key) |
|
void | set_data (const Quark &key, void *data) |
|
void | set_data (const Quark &key, void *data, DestroyNotify notify) |
|
void | remove_data (const QueryQuark &quark) |
|
void * | steal_data (const QueryQuark &quark) |
|
Glib::RefPtr< Glib::Object > | wrap (GObject *object, bool take_copy=false) |
|
| ObjectBase (const ObjectBase &)=delete |
|
ObjectBase & | operator= (const ObjectBase &)=delete |
|
void | set_property_value (const Glib::ustring &property_name, const Glib::ValueBase &value) |
|
void | get_property_value (const Glib::ustring &property_name, Glib::ValueBase &value) const |
|
void | set_property (const Glib::ustring &property_name, const PropertyType &value) |
|
void | get_property (const Glib::ustring &property_name, PropertyType &value) const |
|
PropertyType | get_property (const Glib::ustring &property_name) const |
|
sigc::connection | connect_property_changed (const Glib::ustring &property_name, const sigc::slot< void()> &slot) |
|
sigc::connection | connect_property_changed (const Glib::ustring &property_name, sigc::slot< void()> &&slot) |
|
void | freeze_notify () |
|
void | thaw_notify () |
|
virtual void | reference () const |
|
virtual void | unreference () const |
|
GObject * | gobj () |
|
const GObject * | gobj () const |
|
GObject * | gobj_copy () const |
|
| trackable () noexcept |
|
| trackable (const trackable &src) noexcept |
|
| trackable (trackable &&src) noexcept |
|
| ~trackable () |
|
void | add_destroy_notify_callback (notifiable *data, func_destroy_notify func) const |
|
void | notify_callbacks () |
|
trackable & | operator= (const trackable &src) |
|
trackable & | operator= (trackable &&src) noexcept |
|
void | remove_destroy_notify_callback (notifiable *data) const |
|
A Gdk::GLContext is an OpenGL context abstraction.
It's a low-level object, used to implement high-level objects such as Gtk::GLArea on the GTK+ level.
- Since gtkmm 3.18:
bool Gdk::GLContext::is_legacy |
( |
| ) |
const |
Whether the Gdk::GLContext is in legacy mode or not.
The Gdk::GLContext must be realized before calling this function.
When realizing a GL context, GDK will try to use the OpenGL 3.2 core profile; this profile removes all the OpenGL API that was deprecated prior to the 3.2 version of the specification. If the realization is successful, this function will return false
.
If the underlying OpenGL implementation does not support core profiles, GDK will fall back to a pre-3.2 compatibility profile, and this function will return true
.
You can use the value returned by this function to decide which kind of OpenGL API to use, or whether to do extension discovery, or what kind of shader programs to load.
- Returns
true
if the GL context is in legacy mode.