PEXBeginRendering - Begin Rendering (5.0)


Synopsis

 
   void PEXBeginRendering(
        Display *display,
        Drawable drawable,
        PEXRenderer renderer
   )
 

Arguments

display
A pointer to a display structure returned by a successful XOpenDisplay call.

drawable
The resource identifier of a drawable.

renderer
The resource identifier of a renderer.

Returns

None.

Description

Invoke PEXBeginRendering to initialize the specified renderer and to bind the specified drawable to it.

Subsequent output primitive commands sent to the renderer produce output to the specified drawable until the renderer receives a PEXEndRendering request or a PEXBindDrawableToRenderer request. The renderer's pipeline state is initialized to the values in its pipeline context, or to default values if there is no pipeline context. This function sets the renderer's state to PEXRendering and sets its current path to <0,0>. If the renderer's clear image attribute is True, then the renderer initializes the drawable's image buffer to the renderer's current background color within the areas defined by the clip list. If the renderer's clear Z attribute is True, then the renderer initializes the Z-buffer with the value in the clear Z value attribute and within the areas defined by the clip list. If the renderer's clear alpha attribute is True, then the renderer clears the alpha buffer to the values specified in the renderer's background color within areas defined by the clip list.

If the renderer's state is PEXRendering, PEXPicking, or PEXMultipassRendering when this request is received, then the implementation performs the above operations, but also generates an error. The new renderer state is then PEXRendering.

Errors

BadAlloc
The implementation failed to allocate the resource.

BadDrawable
The specified drawable resource identifier is invalid.

BadMatch
The specified drawable is unsupported, or the specified renderer resource was not created with a compatible drawable.

BadPEXRenderer
The specified renderer resource identifier is invalid.

BadPEXRendererState
The specified renderer is in state PEXRendering, PEXPicking, PEXMultipassRendering.

See Also

For a list of all Renderer functions and related topics, see Rendering.