[Implemented] MakeTexture(#ID, Image) command add

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
User avatar
Rook Zimbabwe
Addict
Addict
Posts: 4322
Joined: Tue Jan 02, 2007 8:16 pm
Location: Cypress TX
Contact:

[Implemented] MakeTexture(#ID, Image) command add

Post 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! :mrgreen:
Binarily speaking... it takes 10 to Tango!!!

Image
http://www.bluemesapc.com/
User avatar
STARGÅTE
Addict
Addict
Posts: 2227
Joined: Thu Jan 10, 2008 1:30 pm
Location: Germany, Glienicke
Contact:

Re: MakeTexture(#ID, Image) command add

Post by STARGÅTE »

Until version 4.30 there were the function: TextureOutput()
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 moreTypeface - Sprite-based font include/module
marc_1024
User
User
Posts: 10
Joined: Thu Feb 17, 2011 3:24 pm

Re: MakeTexture(#ID, Image) command add

Post by marc_1024 »

why it was removed?
Yes, Why ?
For me in game dev. it is a good command ...

Marc
DarkDragon
Addict
Addict
Posts: 2344
Joined: Mon Jun 02, 2003 9:16 am
Location: Germany
Contact:

Re: MakeTexture(#ID, Image) command add

Post by DarkDragon »

  1. This command would tell people that its okay to change textures with the CPU, but its definately not!
  2. There's a better alternative for animated textures: material scripts or shaders
bye,
Daniel
User avatar
Guimauve
Enthusiast
Enthusiast
Posts: 742
Joined: Wed Oct 22, 2003 2:51 am
Location: Canada

Re: MakeTexture(#ID, Image) command add

Post by Guimauve »

DarkDragon wrote:
  1. This command would tell people that its okay to change textures with the CPU, but its definately not!
  2. 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
Post Reply