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

NAME

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

SYNOPSIS

10       #include <waffle.h>
11
12       enum waffle_enum {...};
13
14
15       const char* waffle_enum_to_string(int32_t e);
16

DESCRIPTION

18       waffle_enum_to_string()
19           Convert an waffle_enum token to a string. For example, convert
20           WAFFLE_DONT_CARE to "WAFFLE_DONT_CARE". Return null if the token is
21           not a valid waffle_enum.
22
23           This function always sets the error code to WAFFLE_NO_ERROR. It can
24           be called before waffle has been successfully initialized with
25           waffle_init(3)
26
27       enum waffle_enum
28           For reference, below is the complete list of waffle's non-error
29           enums.
30
31
32               enum waffle_enum {
33                   // ------------------------------------------------------------------
34                   // Generic
35                   // ------------------------------------------------------------------
36
37                   WAFFLE_DONT_CARE                                            = -1,
38                   WAFFLE_NONE                                                 =  0,
39
40                   // ------------------------------------------------------------------
41                   // For waffle_init()
42                   // ------------------------------------------------------------------
43
44                   WAFFLE_PLATFORM                                             = 0x0010,
45                       WAFFLE_PLATFORM_ANDROID                                 = 0x0011,
46                       WAFFLE_PLATFORM_CGL                                     = 0x0012,
47                       WAFFLE_PLATFORM_GLX                                     = 0x0013,
48                       WAFFLE_PLATFORM_WAYLAND                                 = 0x0014,
49                       WAFFLE_PLATFORM_X11_EGL                                 = 0x0015,
50                       WAFFLE_PLATFORM_GBM                                     = 0x0016,
51                       WAFFLE_PLATFORM_WGL                                     = 0x0017,
52
53                   // ------------------------------------------------------------------
54                   // For waffle_config_choose()
55                   // ------------------------------------------------------------------
56
57                   WAFFLE_CONTEXT_API                                          = 0x020a,
58                       WAFFLE_CONTEXT_OPENGL                                   = 0x020b,
59                       WAFFLE_CONTEXT_OPENGL_ES1                               = 0x020c,
60                       WAFFLE_CONTEXT_OPENGL_ES2                               = 0x020d,
61                       WAFFLE_CONTEXT_OPENGL_ES3                               = 0x0214,
62
63                   WAFFLE_CONTEXT_MAJOR_VERSION                                = 0x020e,
64                   WAFFLE_CONTEXT_MINOR_VERSION                                = 0x020f,
65
66                   WAFFLE_CONTEXT_PROFILE                                      = 0x0210,
67                       WAFFLE_CONTEXT_CORE_PROFILE                             = 0x0211,
68                       WAFFLE_CONTEXT_COMPATIBILITY_PROFILE                    = 0x0212,
69
70                   WAFFLE_RED_SIZE                                             = 0x0201,
71                   WAFFLE_GREEN_SIZE                                           = 0x0202,
72                   WAFFLE_BLUE_SIZE                                            = 0x0203,
73                   WAFFLE_ALPHA_SIZE                                           = 0x0204,
74
75                   WAFFLE_DEPTH_SIZE                                           = 0x0205,
76                   WAFFLE_STENCIL_SIZE                                         = 0x0206,
77
78                   WAFFLE_SAMPLE_BUFFERS                                       = 0x0207,
79                   WAFFLE_SAMPLES                                              = 0x0208,
80
81                   WAFFLE_DOUBLE_BUFFERED                                      = 0x0209,
82
83                   WAFFLE_ACCUM_BUFFER                                         = 0x0213,
84
85                   // ------------------------------------------------------------------
86                   // For waffle_dl_sym()
87                   // ------------------------------------------------------------------
88
89                   WAFFLE_DL_OPENGL                                            = 0x0301,
90                   WAFFLE_DL_OPENGL_ES1                                        = 0x0302,
91                   WAFFLE_DL_OPENGL_ES2                                        = 0x0303,
92               };
93
94
95
96

ISSUES

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

SEE ALSO

102       waffle(7)
103

AUTHOR

105       Chad Versace <chad.versace@linux.intel.com>
106           Maintainer
107
109       Copyright © 2013 Intel
110
111       This manual page is licensed under the Creative Commons
112       Attribution-ShareAlike 3.0 United States License (CC BY-SA 3.0). To
113       view a copy of this license, visit
114       http://creativecommons.org.license/by-sa/3.0/us.
115
116
117
118
119waffle                            07/27/2019                    WAFFLE_ENUM(3)
Impressum