How to delete texture

Started by
2 comments, last by Daivuk 21 years, 4 months ago
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)
Advertisement
glDeleteTextures(1, &textureID);

void glDeleteTextures(GLsizei n,const GLuint *textures);

hali
ho thanks.
My engine is now finished.
lol, no joke. A lot of work.

DUK engine

Troa Technologies.
(3d game development)

This topic is closed to new replies.

Advertisement