소스 검색

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 () {