1 /* -*- Mode: C++; tab-width: 20; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /* This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6 #ifndef GLCONTEXT_TYPES_H_
7 #define GLCONTEXT_TYPES_H_
10 #include "mozilla/TypedEnum.h"
17 MOZ_BEGIN_ENUM_CLASS(GLContextType
)
23 MOZ_END_ENUM_CLASS(GLContextType
)
25 MOZ_BEGIN_ENUM_CLASS(OriginPos
, uint8_t)
28 MOZ_END_ENUM_CLASS(OriginPos
)
32 // Constructs a zeroed object:
35 GLenum color_texInternalFormat
;
36 GLenum color_texFormat
;
38 GLenum color_rbFormat
;
47 struct PixelBufferFormat
49 // Constructs a zeroed object:
57 int ColorBits() const { return red
+ green
+ blue
; }
61 } /* namespace mozilla */
63 #endif /* GLCONTEXT_TYPES_H_ */