1 /** 2 * Copyright (C) 2009-2012 Klaus Reimer <k@ailis.de> 3 * See LICENSE.txt for licensing information 4 * 5 * @require threedee.js 6 */ 7 8 /** 9 * Constructs new render options. 10 * 11 * @constructor 12 * @class The render options 13 */ 14 threedee.RenderOptions = function() 15 { 16 // Empty 17 }; 18 19 /** 20 * If normals should be displayed. 21 * @type {boolean} 22 */ 23 threedee.RenderOptions.prototype.displayNormals = false; 24 25 /** 26 * If lighting is enabled. 27 * @type {boolean} 28 */ 29 threedee.RenderOptions.prototype.lighting = true; 30 31 /** 32 * If polygons should be filled. 33 * @type {boolean} 34 */ 35 threedee.RenderOptions.prototype.solid = true; 36 37 /** 38 * If backface culling should be performed. 39 * @type {boolean} 40 */ 41 threedee.RenderOptions.prototype.backfaceCulling = true; 42 43 /** 44 * If Z-sorting should be performed. 45 * @type {boolean} 46 */ 47 threedee.RenderOptions.prototype.sortZ = true; 48 49 /** 50 * If frames/s info should be gathered. 51 * @type {boolean} 52 */ 53 threedee.RenderOptions.prototype.fpsInfo = false; 54 55 /** 56 * If debugging info should be gathered. 57 * @type {boolean} 58 */ 59 threedee.RenderOptions.prototype.debugInfo = false; 60 61 /** 62 * If outline should be rendered when filling polygons. 63 * @type {boolean} 64 */ 65 threedee.RenderOptions.prototype.outline = true; 66 67 /** 68 * The outline color (null=fill color). 69 * @type {?string} 70 */ 71 threedee.RenderOptions.prototype.outlineColor = null; 72