Conversation
|
|
||
| // Provides: resdl_SDL_GetNumVideoDisplays | ||
| function resdl_SDL_GetNumVideoDisplays() { | ||
| return 1; |
There was a problem hiding this comment.
Not sure if we can get the the number of displays via the web api. Are we OK with simply returning 1 here?
|
|
||
| // Provides: resdl_SDL_GetWindowPixelFormat | ||
| function resdl_SDL_GetWindowPixelFormat(_win) { | ||
| return "SDL_PIXELFORMAT_ARGB8888"; |
There was a problem hiding this comment.
Not sure what we'd like to return here? Some sort of Unknown tag perhaps?
There was a problem hiding this comment.
I wouldn't worry too much about getting this exactly right as I think the dummy stubs approach is fundamentally broken. There ought to be separate platform APIs for desktop, JS and mobile. More on that soon, but for now I'd suggest just going with whatever works short-term.
|
|
||
| // Provides: resdl_SDL_GetPixelFormatName | ||
| function resdl_SDL_GetPixelFormatName(value) { | ||
| return "resdl_SDL_GetPixelFormatName: Not implemented"; |
|
|
||
| // Provides: resdl_SDL_GetLinkedVersion | ||
| function resdl_SDL_GetLinkedVersion() { | ||
| return 1; |
|
|
||
| // Provides: resdl_SDL_GetScancodeFromName | ||
| function resdl_SDL_GetScancodeFromName() { | ||
| return "scancodeFromName"; |
There was a problem hiding this comment.
Both this and GetKeyFromName could probably be retrieved from the web api, I'd think!
There was a problem hiding this comment.
|
|
||
| // Provides: resdl_SDL_GetCompiledVersion | ||
| function resdl_SDL_GetCompiledVersion() { | ||
| return "resdl_SDL_GetCompiledVersion: Not implemented"; |
|
|
||
| // Provides: resdl_SDL_GetKeyFromName | ||
| function resdl_SDL_GetKeyFromName() { | ||
| return "keyFromname"; |
There was a problem hiding this comment.
No description provided.