Using SDL2 WinRT with SDL2_gfx |
DLudwig
|
I haven't specifically tried running SDL_gfx on WinRT, or doing any work to get it running there. Most of my own work has limited to official SDL satellite libraries, of which I don't believe SDL_gfx is one. I wouldn't be surprised if it could be made to run on WinRT with little effort, perhaps just creating MSVC projects for it, or even including its sources directly in an app. I haven't used it in years though, and my knowledge of it was somewhat limited. I'm not sure how portable it is. Generally speaking though, if a library's API calls are limited to ANSI C and SDL calls, getting something running on WinRT is a matter of setting up projects in MSVC, and occasionally hand-editing some config files, or setting up some preprocessor #defines.
|
|||||||||||
|
Meldryt
|
couldnt include the gfx library in my WinRT project, so i copied the relevant draw functions in my class. problem solved.
|
|||||||||||
|
DLudwig
|
This is good to know. Thanks for the info! |
|||||||||||||
|
Meldryt
|
update: tried to include only the header and class files in my project. it works for the emulator.
when i compile for device i get this error: SDL2_gfxPrimitives.cpp(1770): error C3861: '__emit': identifier not found |
|||||||||||
|
DLudwig
|
Odd. Can you compile the file a C code, rather than C++? I'm able to compile SDL2_gfxPrimitives for device/ARM, but only when compiling it as C code. When I compile as C++, I get the same error. -- David L. |
|||||||||||||
|
Meldryt
|
yes i can compile with c code. should keep it as .c file...
|
|||||||||||
|