How to delete texture
Ok, I made a 3D Engine with lightmap, everything and bla bla bla wada wada like QuakeI,II,III.
So you see that I know OpenGL.
But... it''s funny, I don''t know how to kill texture !?!
I change map in my console, ex: map Basement.uos, and I load all the thing for the next. Before, I need to kill my current map to free memory. So I delete all model, all wall, all light, but lightmap and Texture still here in the memory, I dont know how to delete them in OpenGL !? For each texture in my dynamic list i have the ID for binding it. So there is a function in opengl that kill the texture in memory?
exemple : gl_KillTexture(TexID);
???
Help please.. thanks.
DUK engine
Troa Technologies.
(3d game development)
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement