diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/library_gl.js | 22 | ||||
-rw-r--r-- | src/library_sdl.js | 21 |
2 files changed, 42 insertions, 1 deletions
diff --git a/src/library_gl.js b/src/library_gl.js index 23be9b7a..c153a181 100644 --- a/src/library_gl.js +++ b/src/library_gl.js @@ -2137,6 +2137,8 @@ var LibraryGL = { _glVertex3f({{{ makeGetValue('p', '0', 'float') }}}, {{{ makeGetValue('p', '4', 'float') }}}, 0); }, + glVertex2i: function() { throw 'glVertex2i: TODO' }, + glTexCoord2i: function(u, v) { #if ASSERTIONS assert(GL.immediate.mode >= 0); // must be in begin/end @@ -2152,6 +2154,8 @@ var LibraryGL = { _glTexCoord2i({{{ makeGetValue('v', '0', 'float') }}}, {{{ makeGetValue('v', '4', 'float') }}}); }, + glTexCoord4f: function() { throw 'glTexCoord4f: TODO' }, + glColor4f: function(r, g, b, a) { r = Math.max(Math.min(r, 1), 0); g = Math.max(Math.min(g, 1), 0); @@ -2226,6 +2230,8 @@ var LibraryGL = { _glColor4f({{{ makeGetValue('p', '0', 'float') }}}, {{{ makeGetValue('p', '4', 'float') }}}, {{{ makeGetValue('p', '8', 'float') }}}, {{{ makeGetValue('p', '12', 'float') }}}); }, + glColor4ubv: function() { throw 'glColor4ubv not implemented' }, + glFogf: function(pname, param) { // partial support, TODO switch(pname) { case 0x0B63: // GL_FOG_START @@ -2521,6 +2527,22 @@ var LibraryGL = { _glOrtho(left, right, bottom, top, -1, 1); }, + glDrawBuffer: function() { throw 'glDrawBuffer: TODO' }, + glReadBuffer: function() { throw 'glReadBuffer: TODO' }, + + glLightfv: function() { throw 'glLightfv: TODO' }, + glLightModelfv: function() { throw 'glLightModelfv: TODO' }, + glMaterialfv: function() { throw 'glMaterialfv: TODO' }, + + glTexGeni: function() { throw 'glTexGeni: TODO' }, + glTexGenfv: function() { throw 'glTexGenfv: TODO' }, + glTexEnvi: function() { throw 'glTexEnvi: TODO' }, + glTexEnvfv: function() { throw 'glTexEnvfv: TODO' }, + + glTexImage1D: function() { throw 'glTexImage1D: TODO' }, + glTexCoord3f: function() { throw 'glTexCoord3f: TODO' }, + glGetTexLevelParameteriv: function() { throw 'glGetTexLevelParameteriv: TODO' }, + // signatures of simple pass-through functions, see later glActiveTexture__sig: 'vi', glEnableVertexAttribArray__sig: 'vi', diff --git a/src/library_sdl.js b/src/library_sdl.js index b2ca338b..712ec290 100644 --- a/src/library_sdl.js +++ b/src/library_sdl.js @@ -1371,6 +1371,7 @@ var LibrarySDL = { }, Mix_LoadMUS: 'Mix_LoadWAV_RW', + Mix_LoadMUS_RW: 'Mix_LoadWAV_RW', Mix_FreeMusic: 'Mix_FreeChunk', @@ -1575,7 +1576,25 @@ var LibrarySDL = { SDL_CreateThread: function() { throw 'SDL threads cannot be supported in the web platform because they assume shared state. See emscripten_create_worker etc. for a message-passing concurrency model that does let you run code in another thread.' - } + }, + + SDL_WaitThread: function() { throw 'SDL_WaitThread' }, + SDL_GetThreadID: function() { throw 'SDL_GetThreadID' }, + SDL_ThreadID: function() { throw 'SDL_ThreadID' }, + SDL_AllocRW: function() { throw 'SDL_AllocRW: TODO' }, + SDL_FreeRW: function() { throw 'SDL_FreeRW: TODO' }, + SDL_CondBroadcast: function() { throw 'SDL_CondBroadcast: TODO' }, + SDL_CondWaitTimeout: function() { throw 'SDL_CondWaitTimeout: TODO' }, + SDL_WM_ToggleFullScreen: function() { throw 'SDL_WM_ToggleFullScreen: TODO' }, + + Mix_SetPostMix: function() { throw 'Mix_SetPostMix: TODO' }, + Mix_QuerySpec: function() { throw 'Mix_QuerySpec: TODO' }, + Mix_FadeInChannelTimed: function() { throw 'Mix_FadeInChannelTimed' }, + Mix_FadeOutChannel: function() { throw 'Mix_FadeOutChannel' }, + + Mix_Linked_Version: function() { throw 'Mix_Linked_Version: TODO' }, + SDL_CreateRGBSurfaceFrom: function() { throw 'SDL_CreateRGBSurfaceFrom: TODO' }, + SDL_SaveBMP_RW: function() { throw 'SDL_SaveBMP_RW: TODO' }, }; autoAddDeps(LibrarySDL, '$SDL'); |