CL_Texture::set_image - ClanLib Game SDK

Home | All Classes | Grouped Classes | Index | Search

# CL_Texture::set_image

Upload image to texture.

    	void set_image(
    		CL_PixelBuffer& image, int level = 0, int border = 0, int format = 0);

Parameters:

image
  Image to upload.
level
  Mipmap level-of-detail number.
border
  Border width of texture.
format
  Internal texture format of texture.

See also:

CL_Texture | CL_PixelBuffer

Questions or comments, write to the ClanLib mailing list.