home *** CD-ROM | disk | FTP | other *** search
- #ifndef RENDERHOOKS_H
- #define RENDERHOOKS_H
- /*
- ** $VER: renderhooks.h 15.0 (14.12.96)
- **
- ** render.library definitions for callback hooks
- **
- ** © 1996 TEK neosçientists
- */
-
-
-
- #ifndef EXEC_TYPES_H
- #include <exec/types.h>
- #endif
-
- #ifndef UTILITY_HOOKS_H
- #include <utility/hooks.h>
- #endif
-
- /******************************************************************************
-
- Progress Hook Message
-
- Whenever your progress hook is called, your function
- receives a pointer to this structure in a1. Check the
- message type and proceed accordingly.
-
- Also, you get a pointer to the object of concern in a2.
- Warning: This is intended for identification only. You
- are NOT allowed to perform operations inside your hook
- function that could modify this object. If you try to
- do so, your code will run into a deadlock.
-
- Your progress hook has to return TRUE or FALSE
- for continuation respective abortion.
-
- ******************************************************************************/
-
- struct RND_ProgressMessage
- {
- ULONG RND_PMsg_type; /* type of message, see below */
- ULONG RND_PMsg_count; /* number to be displayed... */
- ULONG RND_PMsg_total; /* ...inside this range of numbers */
- };
-
- /******************************************************************************
-
- Types of progress messages
-
- Neither depend on a certain number of calls nor on
- calls in a specific order. It's up to the library
- to decide
- - how often to call your progress hook
- - in what order to submit different types of messages
- - in what step rate to call your progress hook
- - whether to call your progress hook at all
-
- ******************************************************************************/
-
- /* number of lines added to a histogram.
- a2 is a pointer to the histogram. */
-
- #define PMSGTYPE_LINES_ADDED 1
-
-
- /* number of colors chosen during quantization.
- a2 is a pointer to the histogram. */
-
- #define PMSGTYPE_COLORS_CHOSEN 2
-
-
- /* number of histogram entries adapted to the palette.
- a2 is a pointer to the histogram. */
-
- #define PMSGTYPE_COLORS_ADAPTED 3
-
-
- /* number of lines rendered to a palette.
- a2 is a pointer to the palette. */
-
- #define PMSGTYPE_LINES_RENDERED 4
-
-
- /* number of lines converted.
- a2 is NULL. */
-
- #define PMSGTYPE_LINES_CONVERTED 5
-
-
- /*****************************************************************************/
-
- #endif
-