Fine-grained debug configs
Reported by lindsay.kay (at xeolabs) | June 22nd, 2010 @ 07:45 AM | in V0.7.6
Add ability to enable/disable various debugging aspects.
To begin with, we'll allow that for tracing calls on WebgL.
For example:
/* Set all debug settings in one shot:
*/
SceneJS.setDebugConfigs({
webgl: {
trace: true
}
});
/* Set a particular debug setting:
*/
SceneJS.setDebugConfigs("webgl.trace", true);
/* Get all config settings:
*/
var cfg = SceneJS.getDebugConfigs();
alert("WebGL trace enabled: " + cfg.webgl && cfg.webgl.trace);
/* Get the WebGL settings:
*/
cfg = SceneJS.getDebugConfigs("webgl");
alert("WebGL trace enabled: " + cfg && cfg.trace);
/* Get the WebGL trace setting:
*/
var trace = SceneJS.getDebugConfigs("webgl.trace");
alert("WebGL trace enabled: " + (trace == true)); // Might be undefined
Also support: traversal logging using info text on Nodes.
No comments found
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป
SceneJS provides easy access to WebGL through a simple and declarative JavaScript API. The SceneJS API is functional, which enables its scene definitions to be really compact and expressive, while hooking into other JavaScript code just that little bit more smoothly.