Skip to content

Commit 8328880

Browse files
authored
Merge pull request #4731 from lasalvavida/core-webglconstants
Move WebGLConstants from Renderer to Core
2 parents 57d9453 + a2660db commit 8328880

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+173
-141
lines changed

CHANGES.md

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ Change Log
1010
* Fixed tooltips for gallery thumbnails in Sandcastle [#4702](https://github.com/AnalyticalGraphicsInc/cesium/pull/4702)
1111
* Fixed `Rectangle.union` to correctly account for rectangles that cross the IDL [#4732](https://github.com/AnalyticalGraphicsInc/cesium/pull/4732).
1212
* Fixed texture rotation for `RectangleGeometry` [#2737](https://github.com/AnalyticalGraphicsInc/cesium/issues/2737)
13+
* Added `WebGLConstants` enum. Previously, this was part of the private Renderer API. [#4731](https://github.com/AnalyticalGraphicsInc/cesium/pull/4731)
1314
* Fixed an bug that caused `GroundPrimitive` to render incorrectly on systems without the `WEBGL_depth_texture` extension. [#4747](https://github.com/AnalyticalGraphicsInc/cesium/pull/4747)
1415

1516
### 1.28 - 2016-12-01

Source/Core/ComponentDatatype.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
/*global define*/
22
define([
3-
'../Renderer/WebGLConstants',
43
'./defaultValue',
54
'./defined',
65
'./DeveloperError',
76
'./FeatureDetection',
8-
'./freezeObject'
7+
'./freezeObject',
8+
'./WebGLConstants'
99
], function(
10-
WebGLConstants,
1110
defaultValue,
1211
defined,
1312
DeveloperError,
1413
FeatureDetection,
15-
freezeObject) {
14+
freezeObject,
15+
WebGLConstants) {
1616
'use strict';
1717

1818
// Bail out if the browser doesn't support typed arrays, to prevent the setup function

Source/Core/IndexDatatype.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
/*global define*/
22
define([
3-
'../Renderer/WebGLConstants',
43
'./defined',
54
'./DeveloperError',
65
'./freezeObject',
7-
'./Math'
6+
'./Math',
7+
'./WebGLConstants'
88
], function(
9-
WebGLConstants,
109
defined,
1110
DeveloperError,
1211
freezeObject,
13-
CesiumMath) {
12+
CesiumMath,
13+
WebGLConstants) {
1414
'use strict';
1515

1616
/**

Source/Core/PixelFormat.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
/*global define*/
22
define([
3-
'../Renderer/WebGLConstants',
4-
'./freezeObject'
3+
'./freezeObject',
4+
'./WebGLConstants'
55
], function(
6-
WebGLConstants,
7-
freezeObject) {
6+
freezeObject,
7+
WebGLConstants) {
88
'use strict';
99

1010
/**

Source/Core/PrimitiveType.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
/*global define*/
22
define([
3-
'../Renderer/WebGLConstants',
4-
'./freezeObject'
3+
'./freezeObject',
4+
'./WebGLConstants'
55
], function(
6-
WebGLConstants,
7-
freezeObject) {
6+
freezeObject,
7+
WebGLConstants) {
88
'use strict';
99

1010
/**

Source/Renderer/WebGLConstants.js Source/Core/WebGLConstants.js

+7-4
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,15 @@ define([
66
'use strict';
77

88
/**
9-
* WebGL constants.
9+
* Enum containing WebGL Constant values by name.
10+
* for use without an active WebGL context, or in cases where certain constants are unavailable using the WebGL context
11+
* (For example, in [Safari 9]{@link https://github.com/AnalyticalGraphicsInc/cesium/issues/2989}).
1012
*
11-
* This file provides a workaround for Safari 9 where WebGL constants can't be accessed
12-
* through WebGLRenderingContext. See https://github.com/AnalyticalGraphicsInc/cesium/issues/2989
13+
* These match the constants from the [WebGL 1.0]{@link https://www.khronos.org/registry/webgl/specs/latest/1.0/}
14+
* and [WebGL 2.0]{@link https://www.khronos.org/registry/webgl/specs/latest/2.0/}
15+
* specifications.
1316
*
14-
* @private
17+
* @exports WebGLConstants
1518
*/
1619
var WebGLConstants = {
1720
DEPTH_BUFFER_BIT : 0x00000100,

Source/Core/WindingOrder.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
/*global define*/
22
define([
3-
'../Renderer/WebGLConstants',
4-
'./freezeObject'
3+
'./freezeObject',
4+
'./WebGLConstants'
55
], function(
6-
WebGLConstants,
7-
freezeObject) {
6+
freezeObject,
7+
WebGLConstants) {
88
'use strict';
99

1010
/**

0 commit comments

Comments
 (0)