1 /* -*- Mode: C++; tab-width: 4; 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 WEBGLSHADERPRECISIONFORMAT_H_
7 #define WEBGLSHADERPRECISIONFORMAT_H_
9 #include "WebGLObjectModel.h"
15 class WebGLShaderPrecisionFormat MOZ_FINAL
16 : public WebGLContextBoundObject
19 WebGLShaderPrecisionFormat(WebGLContext
*context
, GLint rangeMin
, GLint rangeMax
, GLint precision
) :
20 WebGLContextBoundObject(context
),
27 JSObject
* WrapObject(JSContext
*cx
);
29 // WebIDL WebGLShaderPrecisionFormat API
30 GLint
RangeMin() const {
33 GLint
RangeMax() const {
36 GLint
Precision() const {
40 NS_INLINE_DECL_REFCOUNTING(WebGLShaderPrecisionFormat
)
43 // Private destructor, to discourage deletion outside of Release():
44 ~WebGLShaderPrecisionFormat()
53 } // namespace mozilla