aboutsummaryrefslogtreecommitdiff
path: root/src/library_sdl.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/library_sdl.js')
-rw-r--r--src/library_sdl.js18
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 },