DOKK / manpages / debian 10 / libwaffle-doc / waffle_enum.3.en
WAFFLE_ENUM(3) Waffle Manual WAFFLE_ENUM(3)

waffle_enum, waffle_enum_to_string - Listing of non-error enums and associated utility functions

#include <waffle.h>
enum waffle_enum {...};

const char* waffle_enum_to_string(int32_t e);

waffle_enum_to_string()

Convert an waffle_enum token to a string. For example, convert WAFFLE_DONT_CARE to "WAFFLE_DONT_CARE". Return null if the token is not a valid waffle_enum.

This function always sets the error code to WAFFLE_NO_ERROR. It can be called before waffle has been successfully initialized with waffle_init(3)

enum waffle_enum

For reference, below is the complete list of waffle's non-error enums.

enum waffle_enum {

// ------------------------------------------------------------------
// Generic
// ------------------------------------------------------------------
WAFFLE_DONT_CARE = -1,
WAFFLE_NONE = 0,
// ------------------------------------------------------------------
// For waffle_init()
// ------------------------------------------------------------------
WAFFLE_PLATFORM = 0x0010,
WAFFLE_PLATFORM_ANDROID = 0x0011,
WAFFLE_PLATFORM_CGL = 0x0012,
WAFFLE_PLATFORM_GLX = 0x0013,
WAFFLE_PLATFORM_WAYLAND = 0x0014,
WAFFLE_PLATFORM_X11_EGL = 0x0015,
WAFFLE_PLATFORM_GBM = 0x0016,
WAFFLE_PLATFORM_WGL = 0x0017,
// ------------------------------------------------------------------
// For waffle_config_choose()
// ------------------------------------------------------------------
WAFFLE_CONTEXT_API = 0x020a,
WAFFLE_CONTEXT_OPENGL = 0x020b,
WAFFLE_CONTEXT_OPENGL_ES1 = 0x020c,
WAFFLE_CONTEXT_OPENGL_ES2 = 0x020d,
WAFFLE_CONTEXT_OPENGL_ES3 = 0x0214,
WAFFLE_CONTEXT_MAJOR_VERSION = 0x020e,
WAFFLE_CONTEXT_MINOR_VERSION = 0x020f,
WAFFLE_CONTEXT_PROFILE = 0x0210,
WAFFLE_CONTEXT_CORE_PROFILE = 0x0211,
WAFFLE_CONTEXT_COMPATIBILITY_PROFILE = 0x0212,
WAFFLE_RED_SIZE = 0x0201,
WAFFLE_GREEN_SIZE = 0x0202,
WAFFLE_BLUE_SIZE = 0x0203,
WAFFLE_ALPHA_SIZE = 0x0204,
WAFFLE_DEPTH_SIZE = 0x0205,
WAFFLE_STENCIL_SIZE = 0x0206,
WAFFLE_SAMPLE_BUFFERS = 0x0207,
WAFFLE_SAMPLES = 0x0208,
WAFFLE_DOUBLE_BUFFERED = 0x0209,
WAFFLE_ACCUM_BUFFER = 0x0213,
// ------------------------------------------------------------------
// For waffle_dl_sym()
// ------------------------------------------------------------------
WAFFLE_DL_OPENGL = 0x0301,
WAFFLE_DL_OPENGL_ES1 = 0x0302,
WAFFLE_DL_OPENGL_ES2 = 0x0303, };

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

waffle(7)

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.

10/19/2017 waffle