Graphics memory used?

BlitzMax Forums/BlitzMax Programming/Graphics memory used?

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Each Image in an anim image is an own image. So every one is part of an own square power of 2. BUT it is not scaled up as in old blitz. BM just creates a larger textures and modifies the UV to only show the really textured part in its original size.
There are 2 internal fields you can use to get the real size of the texture (imagewidth won't do it when I remember correctly). Alternatively you need to call a nextPow2 function as BM does when creating the texture buffers.