Browse Source

CanvasRenderer: Parity with WebGLRenderer.

Mr.doob 10 năm trước cách đây
mục cha
commit
e84c46ef9d

+ 13 - 1
examples/js/renderers/CanvasRenderer.js

@@ -144,7 +144,19 @@ THREE.CanvasRenderer = function ( parameters ) {
 	this.supportsVertexTextures = function () {};
 	this.supportsVertexTextures = function () {};
 	this.setFaceCulling = function () {};
 	this.setFaceCulling = function () {};
 
 
-	//
+	// API
+
+	this.getContext = function () {
+
+		return _context;
+
+	};
+
+	this.getContextAttributes = function () {
+
+		return _context.getContextAttributes();
+
+	};
 
 
 	this.getPixelRatio = function () {
 	this.getPixelRatio = function () {