'\" t .\" Title: waffle_enum .\" Author: Chad Versace .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: 10/19/2017 .\" Manual: Waffle Manual .\" Source: waffle .\" Language: English .\" .TH "WAFFLE_ENUM" "3" "10/19/2017" "waffle" "Waffle Manual" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" waffle_enum, waffle_enum_to_string \- Listing of non\-error enums and associated utility functions .SH "SYNOPSIS" .sp .ft B .nf #include enum waffle_enum {\&.\&.\&.}; .fi .ft .HP \w'const\ char*\ waffle_enum_to_string('u .BI "const char* waffle_enum_to_string(int32_t\ " "e" ");" .SH "DESCRIPTION" .PP \fBwaffle_enum_to_string()\fR .RS 4 Convert an \fBwaffle_enum\fR token to a string\&. For example, convert \fBWAFFLE_DONT_CARE\fR to "WAFFLE_DONT_CARE"\&. Return null if the token is not a valid \fBwaffle_enum\fR\&. .sp This function always sets the error code to \fBWAFFLE_NO_ERROR\fR\&. It can be called before waffle has been successfully initialized with \fBwaffle_init\fR(3) .RE .PP \fBenum waffle_enum\fR .RS 4 For reference, below is the complete list of waffle\*(Aqs non\-error enums\&. .sp .if n \{\ .RS 4 .\} .nf 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, }; .fi .if n \{\ .RE .\} .sp .RE .SH "ISSUES" .PP Please report bugs or and feature requests to \m[blue]\fB\%https://github.com/waffle-gl/waffle/issues\fR\m[]\&. .SH "SEE ALSO" .PP \fBwaffle\fR(7) .SH "AUTHOR" .PP \fBChad Versace\fR <\&chad\&.versace@linux\&.intel\&.com\&> .RS 4 Maintainer .RE .SH "COPYRIGHT" .br Copyright \(co 2013 Intel .br .PP 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 \m[blue]\fB\%http://creativecommons.org.license/by-sa/3.0/us\fR\m[]\&. .sp