This shows you the differences between two versions of the page.
mgl:functionreferenceimages [2009/06/10 18:21] |
mgl:functionreferenceimages [2009/11/04 17:32] |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== Texture functions used for displaying images ====== | ====== Texture functions used for displaying images ====== | ||
- | |||
===== mglCreateTexture: Create a texture from a matrix ===== | ===== mglCreateTexture: Create a texture from a matrix ===== | ||
Line 16: | Line 15: | ||
mglBltTexture(texture,[0 0]); | mglBltTexture(texture,[0 0]); | ||
mglFlush; | mglFlush; | ||
+ | |||
+ | When you are done using a texture, you may want to free its memory using mglDeleteTexture. | ||
===== mglBltTexture: Draw the texture to the screen ===== | ===== mglBltTexture: Draw the texture to the screen ===== | ||
Line 62: | Line 63: | ||
mglFlush; | mglFlush; | ||
mglDeleteTexture(texture); | mglDeleteTexture(texture); | ||
- | |||
- |