|
** NOTE **: This document is currently not complete. Please stick to the documentation, which comes with the distribution, while I have a look on improving help generation. Sorry for the inconvience. Table of contents:Constructors:c16_sprite_newc16_sprite_new_with_data c16_sprite_new_from_file Destructors:c16_sprite_freec16_sprite_free_wo_data Access functions:flagsc16_sprite_get_flagsc16_sprite_set_flags Count:c16_sprite_get_countc16_sprite_set_count Sprite Headers:c16_sprite_get_headersc16_sprite_set_headers c16_sprite_get_header_nth c16_sprite_set_header_nth Images:c16_sprite_get_imagesc16_sprite_set_images c16_sprite_get_image_nth c16_sprite_set_image_nth File access:c16_sprite_write_to_fileNAMEc16_sprite_new - Constructor.SYNOPSIS#include <c16/sprite.h>C16Sprite_p c16_sprite_new(void); DESCRIPTIONCreates a new instance of C16-Sprite class. Every member is set to 0 resp. NULL.RETURNSNULL on failure or pointer to object otherwise.NAMEc16_sprite_new_with_data - Constructor.SYNOPSIS#include <c16/sprite.h>C16Sprite_p c16_sprite_new_with_data ( C16SpriteTypeFlags, guint16, C16SpriteHeader_p *, C16Image_p * ); PARAMETERS
DESCRIPTIONCreates a new instance of C16-Sprite class with the given arguments set. Allocated memory should not be freed! c16_sprite_free takes this part.RETURNSNULL on failure or pointer to object otherwise.WARNINGThe arrays of the images resp. Headers must have at least as many elements as the number of images in the sprite.NAMEc16_sprite_new_from_file - Constructor.SYNOPSIS#include <c16/sprite.h>C16Sprite_p c16_sprite_new_from_file(guchar *); PARAMETERS
DESCRIPTIONCreates a new instance of C16-Sprites class with images and headers read from given .c16 file.RETURNSNULL on failure or pointer to object otherwise.NAMEc16_sprite_free - Destructor.SYNOPSIS#include <c16/sprite.h>void c16_sprite_free(C16Sprite_p); PARAMETERS
DESCRIPTIONFrees the given instance of C16-Sprite class with every data in it, ie. The headers, images, etc. Will also be freed with call to c16_image_free resp. C16_header_free.NAMEc16_sprite_free_wo_data - Destructor.SYNOPSIS#include <c16/sprite.h>void c16_sprite_free_wo_data(C16Sprite_p); PARAMETERS
DESCRIPTIONFrees the given instance of C16-Sprite class without the data in it, ie. The structure itself is freed, but contained pointers, like the header or image arrays, remain valid.NAMEc16_sprite_get_flags - Access function.SYNOPSIS#include <c16/sprite.h>guint32 c16_sprite_get_flags(C16Sprite_p); PARAMETERS
DESCRIPTIONGet the flags of given C16 object.NAMEc16_sprite_set_flags - Access function.SYNOPSIS#include <c16/sprite.h>void c16_sprite_set_flags ( C16Sprite_p, C16SpriteTypeFlags ); PARAMETERS
DESCRIPTIONSet the flags member of the given C16 object to the given value.NAMEc16_sprite_get_count - Access function.SYNOPSIS#include <c16/sprite.h>guint16 c16_sprite_get_count(C16Sprite_p); PARAMETERS
DESCRIPTIONGet the image count of given C16-object.NAMEc16_sprite_set_count - Access function.SYNOPSIS#include <c16/sprite.h>void c16_sprite_set_count ( C16Sprite_p, guint16 ); PARAMETERS
DESCRIPTIONSet the image count of given C16 object to the given value.WARNINGThis count is often used to determine the length of the header or image arrays.NAMEc16_sprite_get_headers - Access function.SYNOPSIS#include <c16/sprite.h>C16SpriteHeader_p *c16_sprite_get_headers(C16Sprite_p); PARAMETERS
DESCRIPTIONGet the array containing the header objects of given C16 sprite.NAMEc16_sprite_set_headers - Access function.SYNOPSIS#include <c16/sprite.h>void c16_sprite_set_headers ( C16Sprite_p, C16SpriteHeader_p * ); PARAMETERS
DESCRIPTIONSet the header array of given C16 object.WARNINGDo not free this array yourself. C16_sprite_free will do this for you.NAMEc16_sprite_get_header_nth - Access function.SYNOPSIS#include <c16/sprite.h>C16SpriteHeader_p c16_sprite_get_header_nth ( C16Sprite_p, guint16 ); PARAMETERS
DESCRIPTIONGet a particular header from the header array of a given sprite object.NAMEc16_sprite_set_header_nth - Access function.SYNOPSIS#include <c16/sprite.h>void c16_sprite_set_header_nth ( C16Sprite_p, guint16, C16SpriteHeader_p ); PARAMETERS
DESCRIPTIONSet a particular header in the header array of a given sprite object.NAMEc16_sprite_get_images - Access function.SYNOPSIS#include <c16/sprite.h>C16Image_p *c16_sprite_get_images(C16Sprite_p); PARAMETERS
DESCRIPTIONGet a get the array of images from a given sprite object.NAMEc16_sprite_set_images - Access function.SYNOPSIS#include <c16/sprite.h>void c16_sprite_set_images ( C16Sprite_p, C16Image_p * ); PARAMETERS
DESCRIPTIONSet the image array of a given sprite object.WARNINGDo not free the array yourself! c16_sprite_free will do this for you.NAMEc16_sprite_get_image_nth - Access function.SYNOPSIS#include <c16/sprite.h>C16Image_p c16_sprite_get_image_nth ( C16Sprite_p, guint16 ); PARAMETERS
DESCRIPTIONGet a particular image from the image array of a given sprite object.NAMEc16_sprite_set_image_nth - Access function.SYNOPSIS#include <c16/sprite.h>void c16_sprite_set_image_nth ( C16Sprite_p, guint16, C16Image_p ); PARAMETERS
DESCRIPTIONSet a particular image in the image array of a given sprite object.NAMEc16_sprite_write_to_file - Save function.SYNOPSIS#include <c16/sprite.h>gboolean c16_sprite_write_to_file ( C16Sprite_p, gchar * ); PARAMETERS
DESCRIPTIONWrite the given C16 object as file to disc.RETURNSTRUE on success, FALSE on failure.
Problems? Questions? Suggestions? |