home << prev next >> contents  


Light Map Functions

    miImg_image *mi_lightmap_edit(
        void               **handle,
        miTag              tag)

This function is used by lightmap shader to begin writing to the writable texture tag. It must have been defined in the scene with the writable keyword and was probably passed to the lightmap shader using a texture parameter. This function clears the texture, and returns an image pointer that can be used to write pixels with functions like mi_img_put_color. The handle is returned as an opaque pointer that should be passed to mi_lightmap_edit_end.

    void mi_lightmap_edit_end(
        void               *handle)

Completes writing to the writable texture handle, which must have been previously created with mi_lightmap_edit. The texture is written to disk.

home << prev next >> contents  


Copyright © 1986-2007 by mental images GmbH