2
0
Эх сурвалжийг харах

CanvasRenderer: Parity with WebGLRenderer.

Mr.doob 10 жил өмнө
parent
commit
e84c46ef9d

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