902aa7fa5eMerging r5780 through r5786 from trunk to ogl-es branch Note: EGL context manager continues to ignore calls trying to change the context. So no multithreading support for that one so far.
cutealien
2019-03-14 23:03:26 +0000
990d475fbbMerging r5686 through r5778 from trunk to ogl-es branch (part 2) (was in wrong folder in last commit, so only source folder got checked in). Also adapt ES1 and ES2 driver to remove texture from OGL texture cache (that was fixed in GL driver in the parts that got merged).
cutealien
2019-02-27 20:30:26 +0000
d236d99c6cMerging r5686 through r5778 from trunk to ogl-es branch.
cutealien
2019-02-27 20:20:38 +0000
0f217d3c5aFix paths in android example documentation.
cutealien
2019-01-17 23:21:30 +0000
202977fe38Merging r5679 through r5685 from trunk to ogl-es branch - Fix several problems with SMaterial serialization. - SMaterial.ZWriteFineControl only using 1 bit now. - Remove compile warnings. - Switch Irrlicht to 8 textures per Material as default by increasing value of _IRR_MATERIAL_MAX_TEXTURES_.
cutealien
2019-01-17 23:15:56 +0000
ac376727d0Merging r5678 from trunk to ogl-es branch - Add global variable MATERIAL_MAX_TEXTURES_USED for texture limit - COpenGLCoreFeature::TextureUnit renamed to COpenGLCoreFeature::MaxTextureUnits Drivers for ES1, ES2 and WebGL also adapted.
cutealien
2019-01-17 23:11:18 +0000
dad0695522Merging r5673 through r5677 from trunk to ogl-es branch: - OpenGL driver no longer changes active texture as often when it doesn't have to do anything with the texture. - setMaterial no longer changes texture-matrices in GL and D3D9 when no texture-pointer is set. - No longer overwrite memory when compiling with _IRR_MATERIAL_MAX_TEXTURES_ set to a value > 8 - Checking TextureMatrix pointer before de-allocating. - Create pdb file also in release in vs2010 project file.
cutealien
2019-01-17 22:52:49 +0000
021839deeeMerging r5664 through r5672 from trunk to ogl-es: - Allow to create images with floating point formats. - No longer set world transform twice in CMeshSceneNode. - Add IMaterialRenderer::getShaderConstantSetCallBack to allow access to user provided shader callbacks. - Reset blend and alphatest states in GL and GLSL shader materials. - Fix memory leak in OpenGL for automatic generated rendertarget depthbuffer textures. - Remove .aps file from source control. - Get rid of compile warnings in CAnimatedMeshHalfLife.cpp
cutealien
2019-01-17 22:47:46 +0000
00c13a165bAdd comment (thx @DevSH for hint about glCopyTexImage2D)
cutealien
2018-11-25 23:19:58 +0000
252abab03dMerging r5652 through r5663 from trunk to ogl-es. This is mostly about cubemap changes. ES drivers compile, but not tested if cubemaps work with them.
cutealien
2018-11-25 15:44:47 +0000
60708ed1cbMerging r5650 through r5651 from trunk to ogl-es
cutealien
2018-10-29 21:37:01 +0000
5a4274203bMerging r5623 through r5649 from trunk to ogl-es
cutealien
2018-10-29 21:25:43 +0000
59699aa05cAdded Default-value for ISceneNode->Name so the code won't crash if someone tries to compare it with empty...
dbocksteger
2018-10-04 07:34:28 +0000
4ea4f3be95Make it easier to enable support for compiling emscripten to wasm. Add some documentation.
cutealien
2018-08-18 19:50:51 +0000
b69f9f387aCheck-in correct html for emscripten example. Sorry, I never noticed that one was missing and it instead had a useless tutorial.hmtl in the folder :-(
cutealien
2018-08-17 10:56:13 +0000
bdb412cd44Merge revisions r5604 through r5621 from trunk to ogl-es.
cutealien
2018-06-17 20:01:00 +0000
67d3ffbc1fMerge revisions r5598 through r5602 from trunk to ogl-es.
cutealien
2018-02-18 16:06:44 +0000
a54461fc10Fix compiling with _IRR_COMPILE_WITH_WEBGL1_ disabled. Thx@ hissingshark for reporting.
cutealien
2018-01-09 20:54:41 +0000
248526d9d5Apply fix from r5595 to correct LastMaterial in OpenGLDriver to the OGL ES drivers.
cutealien
2017-12-31 20:51:50 +0000
e3d6a907ffMerge revisions r5570 through r5596 from trunk to ogl-es
cutealien
2017-12-31 20:48:18 +0000
68480aacc7ECF_D16 is only available in WebGL with WEBGL_depth_texture extension. Add some more debug output to opengl texture in debug when things go wrong.
cutealien
2017-11-07 22:19:39 +0000
12323e4115Merge revisions r5568 from trunk to ogl-es
cutealien
2017-11-06 14:40:56 +0000
87db86ddfdMerge revisions r5554 through r5566 from trunk to ogl-es
cutealien
2017-11-06 14:27:34 +0000
56317e5278Get 24bit/32bit rendertarget textures working in WebGL. WEBGL_depth_texture doesn't use same symbols as OES_packed_depth_stencil & OES_depth32 and also does not allow attaching depth and stencil buffers to RTT like other GL versions.
cutealien
2017-10-30 16:08:23 +0000
54ba627a72Separate es2 and WebGL extension handlers. Should allow to get RTT's with depht buffers > 16bit to work. While names of WebGL extensions are 90% identical to ES2, at some point the WebGL committee seems to have decided that it's better to give new names to the same stuff (RTT's with depth-buffer for example, but I'm sure they had a good reason?). So we have to split this and now have mostly independent extension handlers. Still - WebGLDriver is lazy and derives from ES2Driver and that derives from ES2ExtensionHandler... so unfortunately WebGL driver has now 2 extension handlers. The way it's solved for now is that extension strings are handled by the webgl extension handler and everything else stays for now with the ES2ExtensionHandler. Maybe we can split/merge stuff later in a better way, but I see no easy to implement improvement. Could be we could pass extension handlers as template paramter to drivers maybe, but that's just an idea for now.
cutealien
2017-10-27 16:48:00 +0000
87546d90adTo stay in Irrlicht style add 'virtual' qualifiers in derived classes. Also improve some code comments.
cutealien
2017-10-26 18:51:02 +0000
66530e3941Add another way to select a context in CEGLManager. Emscripten can't use eglChooseConfig so far (it won't return best context, but just any), so we have to work with eglGetConfigs instead and figure out the best egl context.
cutealien
2017-10-25 17:37:07 +0000
3d19965f91Merge revisions r5549 through r5552 from trunk to ogl-es.
cutealien
2017-10-25 12:48:36 +0000
70363e0819Evaluate more device creation parameters in emscripten. We can now use hardware antialiasing in emscripten. Print some info about used SDL flags to log.
cutealien
2017-10-23 22:03:18 +0000
c376454941Use SDL_FLAGS variable also in emscripten and ensure it always uses SDL_OPENGL.
cutealien
2017-10-23 21:24:50 +0000
cac82280eeUpdate emscripten example Makefile. Using c++11 for emscripten. Some minor link fixes.
cutealien
2017-10-23 21:18:14 +0000
3a1a4a78eaMerge revisions r5540 through r5547 from trunk to ogl-es
cutealien
2017-10-23 20:23:20 +0000
44b211800bAdd some more log messages for android app commands.
cutealien
2017-09-24 19:36:33 +0000
65e41da94bRemove some warnings.
cutealien
2017-08-30 13:28:36 +0000
b5d46535e7Remove warnings in ES1 and ES2 getColorFormatParameters functions as was done in OpenGL before. (warnings are now produced instead of places calling those functions).
cutealien
2017-08-30 13:27:27 +0000
7bd44b9733Merge revisions r5532 through r5538 from trunk to ogl-es-
cutealien
2017-08-30 13:20:12 +0000
5450247e6bMerge revisions r5525 through r5530 from trunk to ogl-es
cutealien
2017-08-24 14:11:29 +0000
c20dc5cc6fAdd support for ECF_A16B16G16R16F and ECF_A32B32G32R32F color formats for es2. Use emscripten headers now for es2 when compiling with emscripten (instead of our own extension headers). Try enabling es2 extensions for emscripten (compiles, but not yet tested)
cutealien
2017-08-23 14:56:35 +0000
e4b8e7210fFix compiling es2 driver on platforms without GL_EXT_texture_rg.
cutealien
2017-08-23 13:03:36 +0000
62ac2fd2e1Implement queryTextureFormat for es1 and es2 drivers.
cutealien
2017-08-21 14:34:56 +0000
f184d58cfeMerge revisions r5520 through r5523 from trunk to ogl-es.
cutealien
2017-08-21 13:57:06 +0000
33bfe098e7Add support for more formats on ES2 (with extensions): ECF_R8, ECF_R8G8, ECF_R16F, ECF_G16R16F
cutealien
2017-08-18 14:50:10 +0000
20418b3126Unify GLES extension handling. Update ES extensions (first 290 now recognized) Get examples 2 to compile in c::b (most other examples still need to fix linker settings)
cutealien
2017-08-18 13:28:20 +0000
0a5bbcde85Update ext headers for es1 and es2 with newest versions from khronos. Remove eglext.h as it's not used anywhere in Irrlicht so far.
cutealien
2017-08-17 20:44:56 +0000
246293a570Merge revisions r5516 through r5518 from trunk to ogl-es.
cutealien
2017-08-16 12:06:39 +0000
e54b5aa198Fix some problems with keyboard input on emscripten. Most special or control characters no longer cause white-space in editbox, but are now used correctly. Some keys (like AltGr) are still somewhat trouble. This is basically a workaround because SDL_event.key.keysym.unicode is deprecated on emscripten and returns different results than SDL on other platforms.
cutealien
2017-08-07 18:22:24 +0000
53a1d9f724Merge revisions r5503 through r5514 from trunk to ogl-es
cutealien
2017-08-07 17:30:46 +0000
237111814fFix compiling SDL without emscripten.
cutealien
2017-08-07 14:18:16 +0000
32cef51975Removing our newline when logging on emscripten as emscripten_log seems to add it's own newline.
cutealien
2017-07-29 12:35:22 +0000
5bccd00a00Link example 01 also to libs necessary for OGL ES1&2.
cutealien
2017-07-22 14:52:11 +0000
397a27fbc9Remove superfluos call to emscripten_set_canvas_size when handling sdl_resize. This should be the other way round - sdl resize event gets triggered when emscripten_set_canvas_size is called.
cutealien
2017-07-20 15:39:42 +0000
3304309867Bugfix: Inform videodriver about new size when created by getting size from canvas (on emscripten).
cutealien
2017-07-20 13:21:05 +0000
7f190b80cdAdd the code in emscripten hello_worldd which was missing in last 2 check-ins (sorry). - Add a function to check for canvas resizes - Switch to WebGL1 driver
cutealien
2017-07-19 13:05:25 +0000
60d2798d9dAdd some function which allows to check for canvas size changes in emscripten. But not yet working well together with emscripten default html template (also not worse than before).
cutealien
2017-07-18 18:42:50 +0000
6705452474Switch to using WebGL1 driver by default for emscripten (better optimized).
cutealien
2017-07-18 18:27:19 +0000
854cdd5573Rever accidentally checked-in changes for SDL_Flags (was not tested yet and not yet working).
cutealien
2017-07-18 18:24:31 +0000
bad05c903dCan now use canvas size in emscripten by passing 0,0 for width/height in createDevice.
cutealien
2017-07-18 17:55:46 +0000
2117249df1Break up long log messages on Android as they are cut otherwise.
cutealien
2017-07-16 14:55:14 +0000
80718d0e60Merge revisions r5484 through r5501 from trunk to ogl-es
cutealien
2017-07-16 14:30:26 +0000
4637ba2281Add RTT example 13 for emscripten.
cutealien
2017-07-05 12:34:45 +0000
a3d31d7a48Make internalFormat and pixelFormat identical in ES 2 driver. Noticed some driver bugs in emscripten when using ECF_D16 which were not identical and it seems that since ES 2.0 those values have to match. Specification is slightly fuzzy on the term (says "match", not "identical" or "equal"), but found no other interpretation online. If I understand it correctly this also means in ES 2 we have no guarantee which format is really used internally.
cutealien
2017-07-03 17:00:23 +0000
380d186d3fRolled back to r5490. Was likely a misunderstanding
cutealien
2017-07-03 16:37:29 +0000
3a2a0eede9Remove getZBufferBits from ogl-es drivers. It's never used. Also if I guess the intended use for it correctly (figuring out internFormat to use for depth-buffer textures) then there will be a problem with that implementation as it only works for OpenGL that way (maybe also ES1.0, not sure there, but for ES2.0 it looks wrong).
cutealien
2017-07-03 16:08:44 +0000
ff7a1c154fMerge revisions r5476 through r5483 from trunk to ogl-es-
cutealien
2017-06-11 18:34:38 +0000
e316100012Fix spelling in comment.
cutealien
2017-06-09 12:26:16 +0000
61ef6f9c7dRename target in HelloWorld_emscripten so it doesn't overwrite (or clean) the other hello-world.
cutealien
2017-06-08 20:26:18 +0000
7766187be4Use new zbuffer-test (which was already in OpenGL) in OGL-ES1 and OGL-ES2 drivers.
cutealien
2017-06-08 13:11:46 +0000
56e72da4a7Merge revisions r5455:r5474 from trunk to ogl-es Add color-mask fixes to ogles2 and webgl drivers.
cutealien
2017-06-07 15:20:59 +0000
c3ed02c8d0setRenderStates3DMode in ES1 and ES2 now use setBlendFunc with (GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA) instead of (GL_ONE, GL_ONE_MINUS_SRC_COLOR). This prevents color blending with background when we only want alpha blending (when EBO_ADD is set in materials). It's something that was changed a few years ago in the OpenGL driver, but never made it into the ES drivers. Note that transparency in ES1 _is_ currently broken - but it was broken before this patch already (so another bug to hunt).
cutealien
2017-06-07 10:21:30 +0000
e1c93e64fbFix crash introduced in r5213. Thanks @stoneageartisans for reporting.
cutealien
2017-05-28 19:47:35 +0000
b46adf170dAdd line numbers to gl errors in es1 and es2 drivers.
cutealien
2017-05-25 14:57:27 +0000
92f42e41bfAdd events when mouse enters/leaves canvas on emscripten. Handle that in fps-camera.
cutealien
2017-04-26 16:05:03 +0000
d4a0f30d82Emscripten allows now mouse-locking in windowed-mode (on click on the canvas).
cutealien
2017-04-26 14:12:12 +0000
81caa16886Get pointer-locking working with SDL-device and emscripten (fullscreen only so far).
cutealien
2017-04-25 13:54:19 +0000
a12369f2efMerge revisions r5450:r5453 from trunk to ogl-es
cutealien
2017-04-24 13:51:58 +0000
edccfadfecMerge revisions r5441:r5448 from trunk to ogl-es.
cutealien
2017-04-21 14:34:12 +0000
dbb2590c55Disable NPOT support for webgl driver. This also allows to enable mip-mapping again. WebGL allows NPOT textures in very specific situations (no mips, no filters, no texture-repeats), but disabling it by default fixes a lot of problems.
cutealien
2017-04-21 13:00:07 +0000
9fb422b496Make most variables in OGLES2Driver private again (had been changed while developing WebGL driver).
cutealien
2017-04-21 12:32:35 +0000
b8cf4ca4bfSplit ogles2 shader for 2D rendering into a texture and non-texture variant. That's otherwise hard to do from user-code because 2d rendering works a little different than 3d. This way it renders faster and also won't cause any warnings in WebGL.
cutealien
2017-04-21 12:11:19 +0000
8be8f18f47WebGL driver now supports most calls. Exceptions are: - drawStencilShadowVolume - drawVertexPrimitiveList without VBO's - Things using drawVertexPrimitiveList without VBO's: CParticleSytemSceneNode, VideoDriver:drawIndexedTriangleList, VideoDriver:drawIndexedTriangleFan - Things using VideoDriver:drawIndexedTriangleList: CBillboardSceneNode, COctreeSceneNode without VBO (but that can use VBO's now always). - Things using VideoDriver:drawIndexedTriangleFan: CSkyBoxSceneNode
cutealien
2017-04-20 15:05:07 +0000
c4e74c6350Essential driver functions for GUI now working in WebGL driver.
cutealien
2017-04-20 12:28:11 +0000
f2392c775bRemove debug code in OOGLES2Driver which got checked-in accidentally.
cutealien
2017-04-20 10:08:37 +0000
4a5eaeb45dAdd support for (experimental) WebGL1 driver for emscripten (still work in process). It's a reduced OGLES2 driver which tries to work only with bound buffers. This allows emsripten to compile without "-s FULL_ES2=1" (the WebGL simulation) which is a lot faster. Driver can already run simply examples, but is not yet complete.
cutealien
2017-04-19 17:30:37 +0000
d3c91b659dMerge revisions r5438:r5439 from trunk to ogl-es
cutealien
2017-04-19 17:22:40 +0000
d00ade6cbdMerge revisions r5434:r5436 from trunk to ogl-es
cutealien
2017-04-19 17:15:26 +0000
14aef903e5Merge revisions r5428:r5432 from trunk to ogl-es.
cutealien
2017-04-18 12:35:58 +0000
3ac8d2649aogles1 and ogles2 drivers now support meshbuffers with other primitives than just triangles.
cutealien
2017-04-18 12:30:57 +0000
2d72fa45faMerge revisions r5426:r5427 from trunk to ogl-es.
cutealien
2017-04-17 13:29:53 +0000
8dfcbde957Merge revisions r5419:r5425 from trunk to ogl-es.
cutealien
2017-04-15 17:18:44 +0000
37c8b9d64bCleanup in comments.
cutealien
2017-04-14 13:36:37 +0000
6d674faf84Call SDL_SetVideoMode also for emscripten to get mouse-events working.
cutealien
2017-04-13 15:24:15 +0000
15128e6e9fMerge revisions r5416:r5420 from trunk to ogl-es.
cutealien
2017-04-13 12:42:29 +0000
f1ee785039Merge revisions r5337:r5415 from trunk to ogl-es.
cutealien
2017-04-12 15:33:31 +0000
63c2864db5Add some docs to Makefile how to reduce Irrlicht size from there.
cutealien
2017-04-12 14:51:36 +0000
1f04b0e514Fix "make clean" for emscripten.
cutealien
2017-04-12 14:20:13 +0000
beb1f94695Add flag -s NO_EXIT_RUNTIME=1 to emscripten build. Improve emscripten example documenation. Mention addition of emscripten support in changes.txt
cutealien
2017-04-12 13:48:44 +0000
8860c5c9ceSome compile flag changes for emscripten.
cutealien
2017-04-12 11:02:55 +0000
eae3c95085Fix bugs I accidentally introduced in patching. Thanks at @labsin for going over this once more and sending me fixes again.
cutealien
2017-04-12 09:55:28 +0000
b6c2514cfbComment fixes and alternative compile options (disabled) for emscripten in Makefile.
cutealien
2017-04-11 16:28:57 +0000