![]() | |
![]() | ![]() |
Entire Class Index | Main Class Index | Cross Index | Global Index |
Image class in ClanLib.
Contained in: global
Derived from:
none
Derived by:
none
Group: Display (Display 2D)
#include <ClanLib/display.h>
public function member index: |
||
Static_init: |
||
static CL_Surface* | load | (const std::string& resource_id, CL_ResourceManager* manager); |
static CL_Surface* | create | (CL_SurfaceProvider* provider, bool delete_provider=false); |
static CL_Surface* | create_dynamic | (CL_SurfaceProvider* provider, bool delete_provider=false); |
Construction: |
||
CL_Surface | (); | |
CL_Surface | (CL_SurfaceProvider* provider, bool delete_provider = false, bool dynamic = false); | |
CL_Surface | (const std::string& resource_id, CL_ResourceManager* manager); | |
CL_Surface | (const std::string& filename, bool dynamic = false); | |
CL_Surface | (const CL_Surface& surface); | |
virtual | ~CL_Surface | (); |
Operations: |
||
operator | bool | () const; |
const CL_Surface& | operator = | (const CL_Surface& surf); |
void | reload | (); |
CL_SurfaceProvider* | get_provider | () const; |
void | put_screen | (int x, int y, int spr_no=0, CL_DisplayCard* card=NULL); |
void | put_screen | (int x, int y, float scale_x, float scale_y, int spr_no=0, CL_DisplayCard* card=NULL); |
void | put_screen | (int x, int y, int size_x, int size_y, int spr_no=0, CL_DisplayCard* card=NULL); |
void | put_target | (int x, int y, int spr_no, CL_Target* target); |
unsigned int | get_width | () const; |
unsigned int | get_height | () const; |
unsigned int | get_num_frames | () const; |
bool | is_video | (CL_DisplayCard* card = NULL) const; |
bool | is_loaded | (CL_DisplayCard* card = NULL) const; |
bool | convert_video | (CL_DisplayCard* card = NULL); |
bool | convert_system | (CL_DisplayCard* card = NULL); |
void | flush | (CL_DisplayCard* card = NULL); |
Implementation: |
||
CL_Surface | (class CL_Surface_Generic* impl); | |
provider - Image source.
delete_provider - If true, the surface will delete the provider when deleted itself.
dynamic - If true, a dynamic blitter will be chosen. If false, a caching blitter will be used.
Returns - The surface created.
provider - Image source.
delete_provider - If true, the surface will delete the provider when deleted itself.
Returns - The surface created.
provider - Image source.
delete_provider - If true, the surface will delete the provider when deleted itself.
Returns - The surface created.
Returns - Surface provider used by this surface.
x - x coordinate to draw surface.
y - y coordinate to draw surface.
size_x - width of the image when scaled.
size_y - height of the image when scaled.
spr_no - subsprite number to use.
card - Display card to be drawn onto. If NULL it will use the currently selected video card by CL_Display.
x - x coordinate to draw surface.
y - y coordinate to draw surface.
spr_no - subsprite number to use.
card - Display card to be drawn onto. If NULL it will use the currently selected video card by CL_Display.
x - x coordinate to draw surface.
y - y coordinate to draw surface.
scale_x - scale x multiplyer.
scale_y - scale y multiplyer.
spr_no - subsprite number to use.
card - Display card to be drawn onto. If NULL it will use the currently selected video card by CL_Display.
x - x coordinate to draw surface.
y - y coordinate to draw surface.
spr_no - subsprite number to use.
target - target.