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

hide privates #6654

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 12 additions & 22 deletions src/framework/components/camera/component.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,40 +62,18 @@ class CameraComponent extends Component {
*/
onPostRender = null;

/**
* A counter of requests of depth map rendering.
*
* @type {number}
* @private
*/
_renderSceneDepthMap = 0;

/**
* A counter of requests of color map rendering.
*
* @type {number}
* @private
*/
_renderSceneColorMap = 0;

/** @private */
_sceneDepthMapRequested = false;

/** @private */
_sceneColorMapRequested = false;

/** @private */
_priority = 0;

/**
* Layer id at which the postprocessing stops for the camera.
*
* @type {number}
* @private
*/
_disablePostEffectsLayer = LAYERID_UI;

/** @private */
_camera = new Camera();

/**
Expand Down Expand Up @@ -606,6 +584,12 @@ class CameraComponent extends Component {
return this._camera.rect;
}

/**
* A counter of requests of color map rendering.
*
* @type {number}
* @private
*/
set renderSceneColorMap(value) {
if (value && !this._sceneColorMapRequested) {
this.requestSceneColorMap(true);
Expand All @@ -620,6 +604,12 @@ class CameraComponent extends Component {
return this._renderSceneColorMap > 0;
}

/**
* A counter of requests of depth map rendering.
*
* @type {number}
* @private
*/
set renderSceneDepthMap(value) {
if (value && !this._sceneDepthMapRequested) {
this.requestSceneDepthMap(true);
Expand Down