Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move WebGLConstants from Renderer to Core #4731

Merged
merged 12 commits into from
Dec 13, 2016
Merged
1 change: 1 addition & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ Change Log
* Fixed tooltips for gallery thumbnails in Sandcastle [#4702](https:/AnalyticalGraphicsInc/cesium/pull/4702)
* Fixed `Rectangle.union` to correctly account for rectangles that cross the IDL [#4732](https:/AnalyticalGraphicsInc/cesium/pull/4732).
* Fixed texture rotation for `RectangleGeometry` [#2737](https:/AnalyticalGraphicsInc/cesium/issues/2737)
* Added `WebGLConstants` enum. Previously, this was part of the private Renderer API. [#4731](https:/AnalyticalGraphicsInc/cesium/pull/4731)
* Fixed an bug that caused `GroundPrimitive` to render incorrectly on systems without the `WEBGL_depth_texture` extension. [#4747](https:/AnalyticalGraphicsInc/cesium/pull/4747)

### 1.28 - 2016-12-01
Expand Down
8 changes: 4 additions & 4 deletions Source/Core/ComponentDatatype.js
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
/*global define*/
define([
'../Renderer/WebGLConstants',
'./defaultValue',
'./defined',
'./DeveloperError',
'./FeatureDetection',
'./freezeObject'
'./freezeObject',
'./WebGLConstants'
], function(
WebGLConstants,
defaultValue,
defined,
DeveloperError,
FeatureDetection,
freezeObject) {
freezeObject,
WebGLConstants) {
'use strict';

// Bail out if the browser doesn't support typed arrays, to prevent the setup function
Expand Down
8 changes: 4 additions & 4 deletions Source/Core/IndexDatatype.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
/*global define*/
define([
'../Renderer/WebGLConstants',
'./defined',
'./DeveloperError',
'./freezeObject',
'./Math'
'./Math',
'./WebGLConstants'
], function(
WebGLConstants,
defined,
DeveloperError,
freezeObject,
CesiumMath) {
CesiumMath,
WebGLConstants) {
'use strict';

/**
Expand Down
8 changes: 4 additions & 4 deletions Source/Core/PixelFormat.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
/*global define*/
define([
'../Renderer/WebGLConstants',
'./freezeObject'
'./freezeObject',
'./WebGLConstants'
], function(
WebGLConstants,
freezeObject) {
freezeObject,
WebGLConstants) {
'use strict';

/**
Expand Down
8 changes: 4 additions & 4 deletions Source/Core/PrimitiveType.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
/*global define*/
define([
'../Renderer/WebGLConstants',
'./freezeObject'
'./freezeObject',
'./WebGLConstants'
], function(
WebGLConstants,
freezeObject) {
freezeObject,
WebGLConstants) {
'use strict';

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,15 @@ define([
'use strict';

/**
* WebGL constants.
* Enum containing WebGL Constant values by name.
* for use without an active WebGL context, or in cases where certain constants are unavailable using the WebGL context
* (For example, in [Safari 9]{@link https:/AnalyticalGraphicsInc/cesium/issues/2989}).
*
* This file provides a workaround for Safari 9 where WebGL constants can't be accessed
* through WebGLRenderingContext. See https:/AnalyticalGraphicsInc/cesium/issues/2989
* These match the constants from the [WebGL 1.0]{@link https://www.khronos.org/registry/webgl/specs/latest/1.0/}
* and [WebGL 2.0]{@link https://www.khronos.org/registry/webgl/specs/latest/2.0/}
* specifications.
*
* @private
* @exports WebGLConstants
*/
var WebGLConstants = {
DEPTH_BUFFER_BIT : 0x00000100,
Expand Down
8 changes: 4 additions & 4 deletions Source/Core/WindingOrder.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
/*global define*/
define([
'../Renderer/WebGLConstants',
'./freezeObject'
'./freezeObject',
'./WebGLConstants'
], function(
WebGLConstants,
freezeObject) {
freezeObject,
WebGLConstants) {
'use strict';

/**
Expand Down
Loading