Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ dmFXTexImage2D(3dm) — IRIX 6.5.3f

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

dmFXSetupInputImageBuffer(3dm)

dmFXIsGLExtensionSupported(3dm)



dmFXTexImage2D(3dm)                                        dmFXTexImage2D(3dm)



NAME
     dmFXTexImage2D - load an image for use as a texture for special effects


SYNOPSIS
     #include <dmedia/fxbuffer.h>

     DMstatus dmFXTexImage2D
           ( PRXScanlineBuffer source,
             DMboolean mipmap )


PARAMETERS
     source   The image buffer holding the image to be used as a texture.


     mipmap   If true, a mipmap will be generated so that the mipmapped
              texture modes can be used.


DESCRIPTION
     dmFXTexImage2D function loads the source image into texture memory.

     If the source image size is not a power of two, as is required by OpenGL,
     the image will be padded with transparent black pixels up to the next
     larger power of two.  The texture transform will be set up so that (0,0)
     is at the lower-left corner of the source image, and (width,height) is at
     the upper-right corner.  Because the image is padded, wrapped textures
     should not be used.

     If the mipmap flag is set, a mipmap will be generated so that mipmapped
     texture modes can be used.


SEE ALSO
     dmFXSetupInputImageBuffer(3dm), dmFXIsGLExtensionSupported(3dm).



















                                                                        Page 1



Typewritten Software • bear@typewritten.org • Edmonds, WA 98026