Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- static char xpm_data[] = {
- "/* XPM */"
- "24 20 3 1"
- " c None"
- ". c #3A32E4"
- "+ c #E43232"
- " "
- " .. "
- " .... "
- " ......++++++++ "
- " .........+++++++ "
- " ..........+++++++ "
- " ............++++++ "
- " .............++++++ "
- " ..............++++ "
- " +.............+++ "
- " ++.............++ "
- " +++.............+ "
- " +++++............. "
- " ++++++.............. "
- " ++++++++............ "
- " +++++++++........... "
- " +++++++++......... "
- " ++++++++++....... "
- " ++++++++++..... "
- " +++++++++ ... "};
- int main(int argc, char** argv){
- geInit();
- geCreateMainWindow("LibGE Win32 low profile", -1, -1, GE_WINDOW_FULLSCREEN);
- geDrawingMode(GE_DRAWING_MODE_2D);
- ge_Image* xpm = geLoadImage(geFileFromBuffer(xpm_data, sizeof(xpm_data)));
- while(1){
- geClearScreen();
- geDrawImage(100, 100, xpm);
- geSwapBuffers();
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment