Page 1 of 1
					
				[Implemented] MakeTexture(#ID, Image) command add
				Posted: Mon Feb 07, 2011 9:16 pm
				by Rook Zimbabwe
				Use TextureOutput()
If only there was a way to use the images you have already included IN your program as textures instead of having to load them each time. This would be a good thing IMHO!  

 
			 
			
					
				Re: MakeTexture(#ID, Image) command add
				Posted: Mon Feb 07, 2011 11:22 pm
				by STARGĂ…TE
				Until version 4.30 there were the function: TextureOutput()
http://www.purebasic.com/news55.php
why it was removed?
 
			 
			
					
				Re: MakeTexture(#ID, Image) command add
				Posted: Fri Feb 18, 2011 9:50 am
				by marc_1024
				why it was removed?
Yes, Why ?
For me in game dev. it is a good command ...
Marc
 
			 
			
					
				Re: MakeTexture(#ID, Image) command add
				Posted: Fri Feb 18, 2011 4:14 pm
				by DarkDragon
				-  This command would tell people that its okay to change textures with the CPU, but its definately not!
 
-  There's a better alternative for animated textures: material scripts or shaders
 
 
			 
			
					
				Re: MakeTexture(#ID, Image) command add
				Posted: Wed Feb 23, 2011 3:38 am
				by Guimauve
				DarkDragon wrote:-  This command would tell people that its okay to change textures with the CPU, but its definately not!
 
-  There's a better alternative for animated textures: material scripts or shaders
 
 
I agree with you but only for the texture animation part. Without the possibility to draw on the texture the static procedural texture generation (the texture will remain the same) are no longer possible. The only workaround it's to draw an image, save the image on disk somewhere, load the texture, then delete the image file. This is not a very elegant solution.
Even if it's not a best solution, the abilities to draw on the texture output are a very important feature to create the texture on the fly. 
Best regards.
Guimauve