1WAFFLE_MAKE_CURRENT(3)           Waffle Manual          WAFFLE_MAKE_CURRENT(3)
2
3
4

NAME

6       waffle_make_current - Bind a context for rendering
7

SYNOPSIS

9       #include <waffle.h>
10
11
12       bool waffle_make_current(struct waffle_display *display,
13                                struct waffle_window *window,
14                                struct waffle_context *context);
15

DESCRIPTION

17       waffle_make_current()
18           Bind the given window and context for rendering on the current
19           thread.  window and context must both have been created on the
20           given display. To unbind the current context without binding a new
21           one, set window and context to NULL.
22
23           This function is analogous to glXMakeCurrent(3), eglMakeCurrent(3),
24           and [NSOpenGLContext makeCurrentContext].
25

RETURN VALUE

27       Functions whose return type is bool return true on success and false on
28       failure. Functions whose return type is a pointer return NULL on
29       failure. Use waffle_error_get_info(3) to get information about any
30       errors.
31

ERRORS

33       See waffle_error(3) for the complete list of waffle's error codes.
34
35       No errors are specific to any functions listed in this manual page.
36

ISSUES

38       Please report bugs or and feature requests to
39       https://github.com/waffle-gl/waffle/issues.
40

SEE ALSO

42       waffle(7)
43

AUTHOR

45       Chad Versace <chad.versace@linux.intel.com>
46           Maintainer
47
49       Copyright © 2013 Intel
50
51       This manual page is licensed under the Creative Commons
52       Attribution-ShareAlike 3.0 United States License (CC BY-SA 3.0). To
53       view a copy of this license, visit
54       http://creativecommons.org.license/by-sa/3.0/us.
55
56
57
58
59waffle                            07/15/2018            WAFFLE_MAKE_CURRENT(3)
Impressum