OChess v0.0.2
Programmer's Manual
|
How to access to the embbeded binary data. More...
Functions | |
wxBitmap | LoadPNG (std::string icon, wxSize size) |
Load an icon from embedded binary resources and rescale it to a specified size. More... | |
wxBitmap | LoadPNG (std::string icon) |
Load an icon from embedded binary resources. More... | |
How to access to the embbeded binary data.
Binary resources are generated into the binary_data.hpp file using the tools/embbeded.sh
script. Here are the various functions used to access to them.
wxBitmap LoadPNG | ( | std::string | icon | ) |
Load an icon from embedded binary resources.
icon |
wxBitmap LoadPNG | ( | std::string | icon, |
wxSize | size | ||
) |
Load an icon from embedded binary resources and rescale it to a specified size.
icon | The icon name |
size | Scale the icon to the specified size |