<commit_before><!DOCTYPE html>
<html lang="en">
	<head>
		<meta charset="utf-8" />
		<base href="../../" />
		<script src="list.js"></script>
		<script src="page.js"></script>
		<link type="text/css" rel="stylesheet" href="page.css" />
	</head>
	<body>
		<h1>[name]</h1>

		<div class="desc">
			Class for loading a [page:Texture texture].
			This uses the [page:ImageLoader] internally for loading files.
		</div>

		<h2>Example</h2>

		<code>
		var texture = new THREE.TextureLoader().load( 'textures/land_ocean_ice_cloud_2048.jpg' );

		// immediately use the texture for material creation
		var material = new THREE.MeshBasicMaterial( { map: texture } );
		</code>

		[example:webgl_geometry_cube geometry / cube]

		<h2>Example with Callbacks</h2>

		<code>
		// instantiate a loader
		var loader = new THREE.TextureLoader();

		// load a resource
		loader.load(
			// resource URL
			'textures/land_ocean_ice_cloud_2048.jpg',
			// Function when resource is loaded
			function ( texture ) {
				// in this example we create the material when the texture is loaded
				var material = new THREE.MeshBasicMaterial( {
					map: texture
				 } );
			},
			// Function called when download progresses
			function ( xhr ) {
				console.log( ( xhr.loaded / xhr.total * 100 ) + '% loaded' );
			},
			// Function called when download errors
			function ( xhr ) {
				console.error( 'An error happened' );
			}
		);
		</code>

		<h2>Constructor</h2>

		<h3>[name]( [page:LoadingManager manager] )</h3>
		<div>
		[page:LoadingManager manager] — The [page:LoadingManager loadingManager] for the loader to use. Default is [page:LoadingManager THREE.DefaultLoadingManager].<br /><br />

		Creates a new [name].
		</div>


		<h2>Properties</h2>

		<h3>[property:String crossOrigin]</h3>
		<div>
		If set, assigns the [link:https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_settings_attributes crossOrigin]
	 attribute of the image to the value of *crossOrigin*, prior to starting the load. Default is *undefined*.
		</div>


		<h3>[property:LoadingManager manager]</h3>
		<div>
			The [page:LoadingManager loadingManager]  the loader is using. Default is [page:DefaultLoadingManager].
		</div>

		<h3>[property:String path]</h3>
		<div>The base path from which files will be loaded. See [page:.setPath]. Default is *undefined*.</div>

<commit_msg>document lack of xhr progress in TextureLoader<commit_after><!DOCTYPE html>
<html lang="en">
	<head>
		<meta charset="utf-8" />
		<base href="../../" />
		<script src="list.js"></script>
		<script src="page.js"></script>
		<link type="text/css" rel="stylesheet" href="page.css" />
	</head>
	<body>
		<h1>[name]</h1>

		<div class="desc">
			Class for loading a [page:Texture texture].
			This uses the [page:ImageLoader] internally for loading files.
		</div>

		<h2>Example</h2>

		<code>
		var texture = new THREE.TextureLoader().load( 'textures/land_ocean_ice_cloud_2048.jpg' );

		// immediately use the texture for material creation
		var material = new THREE.MeshBasicMaterial( { map: texture } );
		</code>

		[example:webgl_geometry_cube geometry / cube]

		<h2>Example with Callbacks</h2>

		<code>
		// instantiate a loader
		var loader = new THREE.TextureLoader();

		// load a resource
		loader.load(
			// resource URL
			'textures/land_ocean_ice_cloud_2048.jpg',
			// Function when resource is loaded
			function ( texture ) {
				// in this example we create the material when the texture is loaded
				var material = new THREE.MeshBasicMaterial( {
					map: texture
				 } );
			},
			// Function called when download progresses
			function ( xhr ) {
				console.log( ( xhr.loaded / xhr.total * 100 ) + '% loaded' );
			},
			// Function called when download errors
			function ( xhr ) {
				console.error( 'An error happened' );
			}
		);
		</code>

		Please note that XHR progress events are not triggered as of Three.js version 88. If you need XHR progress events, you may wish to use Three.js version 83 or [link:https://github.com/mrdoob/three.js/issues/10439#issuecomment-275785639 use one of these loaders].

		<h2>Constructor</h2>

		<h3>[name]( [page:LoadingManager manager] )</h3>
		<div>
		[page:LoadingManager manager] — The [page:LoadingManager loadingManager] for the loader to use. Default is [page:LoadingManager THREE.DefaultLoadingManager].<br /><br />

		Creates a new [name].
		</div>


		<h2>Properties</h2>

		<h3>[property:String crossOrigin]</h3>
		<div>
		If set, assigns the [link:https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_settings_attributes crossOrigin]
	 attribute of the image to the value of *crossOrigin*, prior to starting the load. Default is *undefined*.
		</div>


		<h3>[property:LoadingManager manager]</h3>
		<div>
			The [page:LoadingManager loadingManager]  the loader is using. Default is [page:DefaultLoadingManager].
		</div>

		<h3>[property:String path]</h3>
		<div>The base path from which files will be loaded. See [page:.setPath]. Default is *undefined*.</div>


{'fraction_non_alphanumeric': 0.13824237560192618, 'fraction_numerical': 0.01565008025682183, 'mean_word_length': 3.548357664233577, 'pattern_counts': {'":': 0, '<': 95, '<?xml version=': 0, '>': 95, 'https://': 3, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6700954', 'n_tokens_mistral': 1863, 'n_tokens_neox': 1583, 'n_words': 467}