Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

Daivuk

How to delete texture

This topic is 5867 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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)

Share this post


Link to post
Share on other sites
Advertisement
Guest Anonymous Poster
glDeleteTextures(1, &textureID);

Share this post


Link to post
Share on other sites
ho thanks.
My engine is now finished.
lol, no joke. A lot of work.

DUK engine

Troa Technologies.
(3d game development)

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!