• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 //
2 // Copyright 2019 The ANGLE Project Authors. All rights reserved.
3 // Use of this source code is governed by a BSD-style license that can be
4 // found in the LICENSE file.
5 //
6 // gl_enum_utils.h:
7 //   Utility functions for converting GLenums to string.
8 
9 #ifndef LIBANGLE_GL_ENUM_UTILS_H_
10 #define LIBANGLE_GL_ENUM_UTILS_H_
11 
12 #include <ostream>
13 #include <string>
14 
15 #include "libANGLE/capture/gl_enum_utils_autogen.h"
16 
17 namespace gl
18 {
19 const char *GLbooleanToString(unsigned int value);
20 const char *GLenumToString(GLenumGroup enumGroup, unsigned int value);
21 std::string GLbitfieldToString(GLenumGroup enumGroup, unsigned int value);
22 void OutputGLenumString(std::ostream &out, GLenumGroup enumGroup, unsigned int value);
23 void OutputGLbitfieldString(std::ostream &out, GLenumGroup enumGroup, unsigned int value);
24 
25 extern const char kUnknownGLenumString[];
26 }  // namespace gl
27 
28 #endif  // LIBANGLE_GL_ENUM_UTILS_H_
29