Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions coresdk/src/coresdk/images.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,21 @@ namespace splashkit_lib
*/
bitmap load_bitmap(string name, string filename);

/**
* Loads and returns a bitmap. The supplied `image` is a base64 encoded
* .png file. The supplied `name` indicates the
* name to use to refer to this Bitmap in SplashKit. The `bitmap` can then
* be retrieved by passing this `name` to the `bitmap_named` function.
*
* @param name The name of the bitmap resource in SplashKit
* @param image The base64 encoded image
* @return The loaded bitmap
*
* @attribute class bitmap
* @attribute constructor true
*/
bitmap load_bitmap_base64(string name, const char * image);

/**
* Lets you test if bitmap value is valid. This will return true when it is a valid bitmap.
*
Expand Down Expand Up @@ -233,6 +248,15 @@ namespace splashkit_lib
*/
void draw_bitmap(string name, double x, double y, drawing_options opts);

/**
* Draw a pre-defined base64 encoded png file to centre of the the active window
* @param x the x location which represents where the bitmap
* will be drawn
* @param y the y location which represents where the bitmap
* will be drawn
*/
void draw_splash_screen(double x, double y);

/**
* Creates a new bitmap that you can draw to. Initially the bitmap will
* be transparent.
Expand Down