Home | All Classes | Grouped Classes | Index | Search

Class CL_Surface

Construct hardware accelerated (where available) 2D surface. More...

Derived from: none
Derived by: CL_OpenGLSurface
Group: Display (Display 2D)

#include <ClanLib/display.h>

Construction:

CL_Surface

Constructs a surface.

Attributes:

get_width

Returns the width.

get_height

Returns the height.

get_angle

Returns current angle in degrees.

get_scale

Returns scale for x and y.

get_alpha

Returns current alpha.

get_color

Returns current color.

get_blend_func

Returns blending functions.

get_alignment

Returns translation hotspot.

get_rotation_hotspot

Returns rotation hotspot.

get_pixeldata

Returns a pixelbuffer object for accessing surface data.

resource

Resource owning this surface, if any.

Operations:

operator =

Copy assignment operator.

bool

Return true if the CL_Surface is valid and useable

set_pixeldata

Uploads pixel data to surface.

draw

Stateful draw surface on graphic context.

draw_subpixel

setup_params

Utilities for building output data

setup_target_params

setup_draw_params

set_angle

Set absolute rotation angle in degrees.

set_angle_pitch

Set absolute rotation pitch angle in degrees.

set_angle_yaw

Set absolute rotation yaw angle in degrees.

rotate

Add angle in degrees to current angle.

rotate_pitch

Add angle in degrees to current pitch angle.

rotate_yaw

Add angle in degrees to current yaw angle.

set_scale

Set scale for x and y directions individually.

set_alpha

Sets transparency.

set_color

Sets the color.

set_blend_func

Sets blending functions.

set_blend_func_separate

Sets blending functions.

set_alignment

Sets translation hotspot.

set_rotation_hotspot

Sets rotation hotspot.

get_handle

impl

Detailed description:

!group=Display/Display 2D! !header=display.h!


Questions or comments, write to the
ClanLib mailing list.