diff options
author | Alon Zakai <alonzakai@gmail.com> | 2012-04-08 16:08:19 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2012-04-08 16:08:19 -0700 |
commit | a9feb9802616b71d6f334620fdb2487bb64676f3 (patch) | |
tree | 07b6aaff71ef7656beea77b38c3f7e2bf6e958cb /src/library_sdl.js | |
parent | 52fc56f0c99a3e87ae38da19b903630dc4262be9 (diff) |
beginning of SDL_GL_GetProcAddress
Diffstat (limited to 'src/library_sdl.js')
-rw-r--r-- | src/library_sdl.js | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/src/library_sdl.js b/src/library_sdl.js index e44795d2..672619ad 100644 --- a/src/library_sdl.js +++ b/src/library_sdl.js @@ -476,10 +476,6 @@ mergeInto(LibraryManager.library, { return -1; // -1 == all modes are ok. TODO }, - SDL_GL_SetAttribute: function(attr, value) { - // TODO - }, - SDL_SetVideoMode: function(width, height, depth, flags) { ['mousedown', 'mouseup', 'mousemove'].forEach(function(event) { Module['canvas'].addEventListener(event, SDL.receiveEvent, true); @@ -682,8 +678,6 @@ mergeInto(LibraryManager.library, { SDL.surfaces[surf].alpha = alpha; }, - SDL_GL_SwapBuffers: function() {}, - SDL_GetTicks: function() { return Math.floor(Date.now() - SDL.startTime); }, @@ -977,6 +971,18 @@ mergeInto(LibraryManager.library, { _boxRGBA(surf, x1, y1, x1, y1, r, g, b, a); }, + // GL + + SDL_GL_SetAttribute: function(attr, value) { + console.log('TODO: SDL_GL_SetAttribute'); + }, + + SDL_GL_GetProcAddress: function(name_) { + return GL.getProcAddress(Pointer_stringify(name_)); + }, + + SDL_GL_SwapBuffers: function() {}, + // Misc SDL_InitSubSystem: function(flags) { return 0 }, |