GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
WAFFLE_DL(3) Waffle Manual WAFFLE_DL(3)

waffle_dl, waffle_dl_can_open, waffle_dl_sym - platform-independent interface to dynamic libraries

#include <waffle.h>

bool waffle_dl_can_open(int32_t dl);

void* waffle_dl_sym(int32_t dl, const char* symbol);

The waffle_dl functions provide a platform-independent interface for dynamic OpenGL libraries. For each function, the parameter dl must be one of:
WAFFLE_DL_OPENGL
WAFFLE_DL_OPENGL_ES1
WAFFLE_DL_OPENGL_ES2
WAFFLE_DL_OPENGL_ES3

For example, on Linux, the WAFFLE_DL_* enums map to libGL.so.1, libGLESv1_CM.so.1, libGLESv2.so.2, and libGLESv2.so.2, respectively.

waffle_dl_can_open()

Test if a dynamic library can be opened.

waffle_dl_sym()

Get a symbol from a dynamic library.

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.

If waffle fails to find the requested library on the system, then WAFFLE_ERROR_UNSUPPORTED_ON_PLATFORM is emitted.

See waffle_error(3) for the complete list of waffle's error codes.

Please report bugs or and feature requests to https://gitlab.freedesktop.org/mesa/waffle/issues.

waffle(7), waffle_get_proc_address(3)

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

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.

06/07/2022 waffle

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.