Explorar el Código

zh doc: part translation for DataTexture.html

gogoend hace 5 años
padre
commit
75f0ecc881
Se han modificado 1 ficheros con 8 adiciones y 8 borrados
  1. 8 8
      docs/api/zh/textures/DataTexture.html

+ 8 - 8
docs/api/zh/textures/DataTexture.html

@@ -12,18 +12,18 @@
 
 		<h1>[name]</h1>
 
-		<p class="desc">Creates a texture directly from raw data, width and height.</p>
+		<p class="desc">从原始数据(raw data)、宽(width)、高(height)来直接创建一个纹理贴图。</p>
 
 
-		<h2>Constructor</h2>
+		<h2>构造函数</h2>
 
 		<h3>[name]( data, width, height, format, type, mapping, wrapS, wrapT, magFilter, minFilter, anisotropy )</h3>
 		<p>
-			The data argument must be an [link:https://developer.mozilla.org/en-US/docs/Web/API/ArrayBufferView ArrayBufferView].
-			Further parameters correspond to the properties inherited from [page:Texture], where both magFilter and minFilter default to THREE.NearestFilter. The properties flipY and generateMipmaps are intially set to false.
+			data 参数必须是一个 [link:https://developer.mozilla.org/en-US/docs/Web/API/ArrayBufferView ArrayBufferView] 。
+			其他参数对应于继承自 [page:Texture] 的属性,其中 magFilter 与 minFilter 默认为 THREE.NearestFilter。属性 flipY 和 generateMipmaps 初始设为 false。
 		</p>
 		<p>
-			The interpretation of the data depends on type and format:
+			数据的解释取决于type与format:
 			If the type is THREE.UnsignedByteType, a Uint8Array will be useful for addressing the texel data.
 			If the format is THREE.RGBAFormat, data needs four values for one texel; Red, Green, Blue and Alpha (typically the opacity). Similarly, THREE.RGBFormat specifies a format where only three values are used for each texel.<br />
 
@@ -59,7 +59,7 @@
 		var texture = new THREE.DataTexture( data, width, height, THREE.RGBFormat );
 		</code>
 
-		<h2>Properties</h2>
+		<h2>属性</h2>
 
 		<p>
 		See the base [page:Texture Texture] class for common properties.
@@ -70,13 +70,13 @@
 		Overridden with a record type holding data, width and height.
 		</p>
 
-		<h2>Methods</h2>
+		<h2>方法</h2>
 
 		<p>
 		See the base [page:Texture Texture] class for common methods.
 		</p>
 
-		<h2>Source</h2>
+		<h2>源码</h2>
 
 		<p>
 			[link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]