CAPS Universe documentation  1.0.4
All you need to know to be successful
Functions

How to start the engine and stop it again. More...

Functions

void caps_librstr_init (void)
 
struct caps_rasterizercaps_rstr_create (void)
 
void caps_rstr_destroy (struct caps_rasterizer *rstr)
 

Detailed Description

You need a rasterizing engine for the livetime of your printer driver.

Your main loop can look like this

Function Documentation

◆ caps_librstr_init()

void caps_librstr_init ( void  )

Initialize the library prior use

Note
This function can be called multiple times.

◆ caps_rstr_create()

struct caps_rasterizer * caps_rstr_create ( void  )

Create a new rasterizer engine

Returns
Rasterizer engine
Note
Does not return in case of memory failure
Postcondition
Needs to be freed via caps_rstr_destroy() on termination

◆ caps_rstr_destroy()

void caps_rstr_destroy ( struct caps_rasterizer rstr)

Destroy a rasterizer engine and free all resources

Parameters
[in]rstrThe rasterizer engine from a previous caps_rstr_create() call