waffle_make_current man page

waffle_make_current — Bind a context for rendering

Synopsis

#include <waffle.h>

bool waffle_make_current(struct waffle_display *display, struct waffle_window *window, struct waffle_context *context);

Description

waffle_make_current()

Bind the given window and context for rendering on the current thread. window and context must both have been created on the given display. To unbind the current context without binding a new one, set window and context to NULL.

This function is analogous to glXMakeCurrent(3), eglMakeCurrent(3), and [NSOpenGLContext makeCurrentContext].

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.

Issues

Please report bugs or and feature requests to https://github.com/waffle-gl/waffle/iss….

See Also

waffle(7)

Author

Chad Versace <chad.versace@linux.intel.com>

Maintainer

Referenced By

waffle(7).

02/29/2016 waffle Waffle Manual