~mmach/netext73/webkit2gtk

« back to all changes in this revision

Viewing changes to Source/ThirdParty/ANGLE/src/libANGLE/gl_enum_utils.h

  • Committer: mmach
  • Date: 2023-06-16 17:21:37 UTC
  • Revision ID: netbit73@gmail.com-20230616172137-2rqx6yr96ga9g3kp
1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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/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_