Explorar o código

CanvasRenderer: Parity with WebGLRenderer.

Mr.doob %!s(int64=10) %!d(string=hai) anos
pai
achega
e84c46ef9d
Modificáronse 1 ficheiros con 13 adicións e 1 borrados
  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 () {