Skip to content

Commit

Permalink
Merge pull request #4731 from lasalvavida/core-webglconstants
Browse files Browse the repository at this point in the history
Move WebGLConstants from Renderer to Core
  • Loading branch information
pjcozzi authored Dec 13, 2016
2 parents 57d9453 + a2660db commit 8328880
Show file tree
Hide file tree
Showing 46 changed files with 173 additions and 141 deletions.
1 change: 1 addition & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ Change Log
* Fixed tooltips for gallery thumbnails in Sandcastle [#4702](https://github.com/AnalyticalGraphicsInc/cesium/pull/4702)
* Fixed `Rectangle.union` to correctly account for rectangles that cross the IDL [#4732](https://github.com/AnalyticalGraphicsInc/cesium/pull/4732).
* Fixed texture rotation for `RectangleGeometry` [#2737](https://github.com/AnalyticalGraphicsInc/cesium/issues/2737)
* Added `WebGLConstants` enum. Previously, this was part of the private Renderer API. [#4731](https://github.com/AnalyticalGraphicsInc/cesium/pull/4731)
* 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)

### 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://github.com/AnalyticalGraphicsInc/cesium/issues/2989}).
*
* This file provides a workaround for Safari 9 where WebGL constants can't be accessed
* through WebGLRenderingContext. See https://github.com/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

0 comments on commit 8328880

Please sign in to comment.