瀏覽代碼

CanvasRenderer: Parity with WebGLRenderer.

Mr.doob 10 年之前
父節點
當前提交
e84c46ef9d
共有 1 個文件被更改,包括 13 次插入1 次删除
  1. 13 1
      examples/js/renderers/CanvasRenderer.js

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

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