mirror of
				https://github.com/godotengine/godot.git
				synced 2025-10-31 05:31:01 +00:00 
			
		
		
		
	Add static methods for creating Image and ImageTexture
This commit is contained in:
		
							parent
							
								
									ca18a02e00
								
							
						
					
					
						commit
						d2900429e8
					
				
					 42 changed files with 117 additions and 243 deletions
				
			
		|  | @ -841,9 +841,5 @@ Ref<Texture2D> CurvePreviewGenerator::generate(const Ref<Resource> &p_from, cons | |||
| 
 | ||||
| 		prev_y = y; | ||||
| 	} | ||||
| 
 | ||||
| 	Ref<ImageTexture> ptex = Ref<ImageTexture>(memnew(ImageTexture)); | ||||
| 
 | ||||
| 	ptex->create_from_image(img_ref); | ||||
| 	return ptex; | ||||
| 	return ImageTexture::create_from_image(img_ref); | ||||
| } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 kobewi
						kobewi