enesim  0.0.23.1
Drawinglibrary
Functions
Displacement Map
Renderer

Renderer that displays source pixels using a map image inherits from \1. More...

Functions

EAPI Enesim_Rendererenesim_renderer_dispmap_new (void)
EAPI void enesim_renderer_dispmap_map_surface_set (Enesim_Renderer *r, Enesim_Surface *map)
 Sets the map surface to use for displacing the source surface .
EAPI Enesim_Surfaceenesim_renderer_dispmap_map_surface_get (Enesim_Renderer *r)
 Sets the map surface to use for displacing the source surface .
EAPI void enesim_renderer_dispmap_source_surface_set (Enesim_Renderer *r, Enesim_Surface *src)
 Sets the source surface that will be displaced using the map surface .
EAPI Enesim_Surfaceenesim_renderer_dispmap_source_surface_get (Enesim_Renderer *r)
 Gets the source surface that will be displaced using the map surface .
EAPI void enesim_renderer_dispmap_factor_set (Enesim_Renderer *r, double factor)
 Sets the factor of displacement for the displacement renderer .
EAPI double enesim_renderer_dispmap_factor_get (Enesim_Renderer *r)
 Gets the factor of displacement for the displacement renderer .
EAPI void enesim_renderer_dispmap_x_channel_set (Enesim_Renderer *r, Enesim_Channel channel)
 Sets the channel to use as the x coordinate displacement .
EAPI void enesim_renderer_dispmap_y_channel_set (Enesim_Renderer *r, Enesim_Channel channel)
 Sets the channel to use as the y coordinate displacement .

Detailed Description

Renderer that displays source pixels using a map image inherits from \1.


Function Documentation

Creates a new displacement map renderer

Returns:
The renderer

Sets the map surface to use for displacing the source surface .

Parameters:
[in]rThe displacement map renderer
[in]mapThe surface map [Transfer full]

Sets the map surface to use for displacing the source surface .

Parameters:
[in]rThe displacement map renderer
Returns:
The surface map [Transfer full]

Sets the source surface that will be displaced using the map surface .

Parameters:
[in]rThe displacement map renderer
[in]srcThe source surface to displace

Gets the source surface that will be displaced using the map surface .

Parameters:
[in]rThe displacement map renderer
Returns:
The source surface
EAPI void enesim_renderer_dispmap_factor_set ( Enesim_Renderer r,
double  factor 
)

Sets the factor of displacement for the displacement renderer .

Parameters:
[in]rThe displacement map renderer
[in]factorThe factor to use

Gets the factor of displacement for the displacement renderer .

Parameters:
[in]rThe displacement map renderer
Returns:
The factor to use

Sets the channel to use as the x coordinate displacement .

Parameters:
[in]rThe displacement map renderer
[in]channelThe channel to use

Sets the channel to use as the y coordinate displacement .

Parameters:
[in]rThe displacement map renderer
[in]channelThe channel to use
 All Data Structures Variables