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!
[Implemented] MakeTexture(#ID, Image) command add
- Rook Zimbabwe
- Addict

- Posts: 4322
- Joined: Tue Jan 02, 2007 8:16 pm
- Location: Cypress TX
- Contact:
[Implemented] MakeTexture(#ID, Image) command add
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!
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
Until version 4.30 there were the function: TextureOutput()
http://www.purebasic.com/news55.php
why it was removed?
http://www.purebasic.com/news55.php
why it was removed?
PB 6.01 ― Win 10, 21H2 ― Ryzen 9 3900X, 32 GB ― NVIDIA GeForce RTX 3080 ― Vivaldi 6.0 ― www.unionbytes.de
Lizard - Script language for symbolic calculations and more ― Typeface - Sprite-based font include/module
Lizard - Script language for symbolic calculations and more ― Typeface - Sprite-based font include/module
Re: MakeTexture(#ID, Image) command add
Yes, Why ?why it was removed?
For me in game dev. it is a good command ...
Marc
-
DarkDragon
- Addict

- Posts: 2347
- Joined: Mon Jun 02, 2003 9:16 am
- Location: Germany
- Contact:
Re: MakeTexture(#ID, Image) command add
- 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
bye,
Daniel
Daniel
Re: MakeTexture(#ID, Image) command add
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.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
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


