two texture questions
#1, what sizes are textures allowed to be. Is it any 2^n x 2^n ? or does it always have to be a square ? Meaning can I do 128x256 ?
#2, how do I remove textures from video memory ? Lets say I am changing levels and I want to clear my video memory of all the previous level''s textures. Is this handled automatically by the video card or do I have to manually do it ?
Thanks,
Nitzan
1: Textures don''t have to be square.
2: You delete them with glDeleteTextures. Any descent driver will clean up after you when the rendering context is destroyed, but it can''t do it in the middle of the program. After all, there''s no way for the driver to know when you don''t need it any more.
2: You delete them with glDeleteTextures. Any descent driver will clean up after you when the rendering context is destroyed, but it can''t do it in the middle of the program. After all, there''s no way for the driver to know when you don''t need it any more.
Thanks for the quick reply!
DO textures have to be 2^n or just multiples of 2 and of each other ? Meaning does 320x64 work ?
Thanks,
Nitzan
DO textures have to be 2^n or just multiples of 2 and of each other ? Meaning does 320x64 work ?
Thanks,
Nitzan
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement