Hi.
Anyone knows how to destroy a texture and freeing it's memory that's created with glGenTextures ??
Hi.
Anyone knows how to destroy a texture and freeing it's memory that's created with glGenTextures ??
Amnoxx
Oh, and this code appears to be an approximate replacement for return(random() & 0x01);
Phoenix Wiki
http://www.phoenixlib.net/
Phoenix Forum
http://www.pascalgamedevelopment.com/viewforum.php?f=71
I'm not sure about this, but what if you would assign the value 0 to the texture variable?
Do it by the book, but be the author!
<br />
<br />Visit the Lion Productions website at:
<br />http://lionprod.f2o.org
I think glDeleteTextures does the trick:
Your array would contain IDs from glGenTextures for each texture to squish.Originally Posted by First page I found about it from google
"All paid jobs absorb and degrade the mind."
<br />-- Aristotle
okey, thanks, think it's works =)
Amnoxx
Oh, and this code appears to be an approximate replacement for return(random() & 0x01);
Phoenix Wiki
http://www.phoenixlib.net/
Phoenix Forum
http://www.pascalgamedevelopment.com/viewforum.php?f=71
For remove texture from memory use this:Originally Posted by AndreasL
glDeleteTextures(1, @texture);
C2D X6800, 4GBRAM, NV8800GTX, Vista x64 Ultimate
Bookmarks