table of contents
WAFFLE_MAKE_CURRENT(3) | Waffle Manual | WAFFLE_MAKE_CURRENT(3) |
NAME¶
waffle_make_current, waffle_get_current_display, waffle_get_current_window, waffle_get_current_context - set and get resources current to the thread
SYNOPSIS¶
#include <waffle.h>
bool waffle_make_current(struct waffle_display *display, struct waffle_window *window, struct waffle_context *context);
struct waffle_display *waffle_get_current_display(void);
struct waffle_window *waffle_get_current_window(void);
struct waffle_context *waffle_get_current_context(void);
DESCRIPTION¶
waffle_make_current()
This function is analogous to glXMakeCurrent(3), eglMakeCurrent(3), and [NSOpenGLContext makeCurrentContext].
waffle_get_current_display()
This function is analogous to glXGetCurrentDisplay(3) and eglGetCurrentDisplay(3).
waffle_get_current_window()
This function is analogous to glXGetCurrentDrawable(3) and eglGetCurrentSurface(3).
waffle_get_current_context()
This function is analogous to glXGetCurrentContext(3) and eglGetCurrentContext(3).
RETURN VALUE¶
Functions whose return type is bool return true on success and false on failure. Functions whose return type is a pointer return NULL on failure. Use waffle_error_get_info(3) to get information about any errors.
ERRORS¶
See waffle_error(3) for the complete list of waffle's error codes.
No errors are specific to any functions listed in this manual page.
BUGS¶
Mixing calls to waffle_make_current() and the native platform's MakeCurrent() on the same thread do not interact well. After calling the native platform's MakeCurrent(), future Waffle function calls on the same thread are likely to behave incorrectly.
ISSUES¶
Please report bugs or and feature requests to https://gitlab.freedesktop.org/mesa/waffle/issues.
SEE ALSO¶
AUTHOR¶
Chad Versace <chad.versace@linux.intel.com>
COPYRIGHT¶
Copyright © 2013 Intel
This manual page is licensed under the Creative Commons Attribution-ShareAlike 3.0 United States License (CC BY-SA 3.0). To view a copy of this license, visit http://creativecommons.org.license/by-sa/3.0/us.
08/09/2024 | waffle |