- 26 Feb, 2015 - 1 commit
-
-
Laszlo Agocs authored
Creating a context that shares with a context that is current on another thread is not safe, some drivers can reject this. We work this around by astutely introducing an additional context that lives on the same thread as the scenegraph's context, shares with it, but is never current. The main thread's WebGL context will then share with this extra context. Task-number: QTBUG-44677 Change-Id: Ic3ba739c8cda4f4382705c19ed452e8e374c73d7 Reviewed-by:
Pasi Keränen <pasi.keranen@digia.com>
-
- 25 Feb, 2015 - 1 commit
-
-
Pasi Keranen authored
Separating the pixel size from the layout size like in HTML makes Canvas3D behave more like the WebGL canvas and reduces delta when porting code. Change-Id: Icb9e083839a42d0cd5c3823fa37c2e2f2a913e74 Reviewed-by:
Tomi Korpipää <tomi.korpipaa@digia.com> Reviewed-by:
Pasi Keränen <pasi.keranen@digia.com>
-
- 17 Feb, 2015 - 1 commit
-
-
Pasi Keranen authored
Change-Id: I4743feb16d8376f1cd50980496a01a9452b789a9 Reviewed-by:
Tomi Korpipää <tomi.korpipaa@digia.com> Reviewed-by:
Pasi Keränen <pasi.keranen@digia.com>
-
- 13 Feb, 2015 - 1 commit
-
-
Pasi Keranen authored
Wrong order of QT_BEGIN_NAMESPACE fixed. Remaining QObject pointers converted to QJSValues to prevent failures on those. Adds copyright headers to the Qt Creator templates. Tests separated to different test files to getbetter test results. Change-Id: I5c916a5f464c70cc66c8cfc529d83f47367aa7a4 Reviewed-by:
Pasi Keränen <pasi.keranen@digia.com>
-
- 12 Feb, 2015 - 1 commit
-
-
Pasi Keranen authored
Headers corrected. Bad examples removed. 3rd party code moved to it's own folder. Change-Id: Ia8def81fb45f4f6fe99611e92b128f0c72b80a91 Reviewed-by:
Tomi Korpipää <tomi.korpipaa@digia.com> Reviewed-by:
Pasi Keränen <pasi.keranen@digia.com>
-
- 11 Feb, 2015 - 1 commit
-
-
Pasi Keranen authored
This commit breaks compatibility with Qt 5.4 and earlier versions. It removes the temporary QObject based TypedArrays and moves the code to use the native QV4::TypedArray support in Qt 5.5. This allows the implementation now to also add support for compressed textures and support all getParameter() values. Change-Id: I637083e8ebad46b77617ca4095cefaa5aab48b0b Reviewed-by:
Pasi Keränen <pasi.keranen@digia.com>
-
- 02 Feb, 2015 - 3 commits
-
-
Pasi Keranen authored
User requested feature. Change-Id: I1c6481cc58b39181f6592549d90aa76352a50f08 Reviewed-by:
Laszlo Agocs <laszlo.agocs@theqtcompany.com>
-
Pasi Keranen authored
Starting to replace QObject pointers with QJSValue that allows dynamic properties to be added to the the returned objects from QCanvas3D API. This makes the implementation more compatible with WebGL code out there. All uniform??va functions made internal, uniform??v functions now accept QJSValue as input and dynamically detect the parameter type. Examples updated accordingly. Buffer3D, Program3D, Shader3D and UniformLocation3D types now changed to use QJSValue. Change-Id: I1670d5efa5aa829c89169143b685e4b52b402b77 Reviewed-by:
Pasi Keränen <pasi.keranen@digia.com>
-
Pasi Keranen authored
Added support for premultiplied alpha and fixed pixelStorei documentation. Fixed bunch of warnings from incorrect documentation entries. Change-Id: I8ebea302dedf70d6d821f5cc4a6349d3b03b50ea Reviewed-by:
Tomi Korpipää <tomi.korpipaa@digia.com> Reviewed-by:
Pasi Keränen <pasi.keranen@digia.com>
-
- 29 Jan, 2015 - 1 commit
-
-
Laszlo Agocs authored
Multisampling is fully available in ES 3.0+ so extend the condition. (well technically we should check for the relevant extensions on GLES2 too since embedded/mobile devices will have it, but let's leave that for later) Similarly, forcing ES 2.0 for the shared context when the original was ES 3.x is not necessarily a good idea. So do like desktop GL and request the same version. Change-Id: I71b3c8fac44a5cde8dee7fe8e77f451ff63c8589 Reviewed-by:
Tomi Korpipää <tomi.korpipaa@digia.com> Reviewed-by:
Pasi Keränen <pasi.keranen@digia.com>
-
- 28 Jan, 2015 - 1 commit
-
-
Laszlo Agocs authored
Return null from getContext when this happens. These two places are candidates for failing. Also warn so we have a chance to see where we fail. Change-Id: I6a5c8c1d229b16d8c0d9705d4595b40022540aaf Reviewed-by:
Pasi Keränen <pasi.keranen@digia.com>
-
- 31 Dec, 2014 - 2 commits
-
-
Pasi Keranen authored
logAllErrors defaults to false and now also checks all errors with glGetError() and logs them. Added function name to error logging so that users can see what call fails. Change-Id: Ie0c180fc392d375b6244867d3cb4c3ba8058c4f1 Reviewed-by:
Pasi Keränen <pasi.keranen@digia.com>
-
Pasi Keranen authored
bindRenderBuffer was setting framebuffer instead of render buffer. Added new public flag checkAllErrors, if set it will print any glGetError errors after each call. This is slow, but helps a lot when debugging problems. Change-Id: I7450df5c7822d3f6c47127d4f7a163696838fb68 Reviewed-by:
Pasi Keränen <pasi.keranen@digia.com>
-
- 30 Dec, 2014 - 1 commit
-
-
Pasi Keranen authored
Also cleaned up the current render target buffer binding code, added more debug logging as well. Change-Id: I6e286f7c9714f3c54353098f0447f5b719a68d58 Reviewed-by:
Pasi Keränen <pasi.keranen@digia.com>
-
- 29 Dec, 2014 - 1 commit
-
-
Pasi Keranen authored
Change-Id: I2ad59504ec4a477bb730f277428e50e4193ed0f0 Reviewed-by:
Pasi Keränen <pasi.keranen@digia.com>
-
- 08 Dec, 2014 - 1 commit
-
-
Tomi Korpipää authored
Change-Id: Ib1ada2b821c574333f726b7228c430876a49856a Reviewed-by:
Pasi Keränen <pasi.keranen@digia.com>
-
- 21 Nov, 2014 - 1 commit
-
-
Pasi Keranen authored
Moved typed array code to new subdirectory to make it more clear what parts are going to be removed in final release. Documented the temporary renaming of some of the methods to work around issues in overloaded function calls from JavaScript. Change-Id: I5a22741a3b4025149724df9d6b25abc4de3ff5bc Reviewed-by:
Pasi Keränen <pasi.keranen@digia.com>
-
- 13 Nov, 2014 - 1 commit
-
-
Pasi Keranen authored
Added QTCANVAS3D_gl_state_dump extension for dumping the current GL state for debugging purposes and added example use to jsonmodels example. Fixed documentation issues and removed invalid comments related to render thread. Change-Id: Ib4a81370bf2673a5bfb412038148646638f723a9 Reviewed-by:
Tomi Korpipää <tomi.korpipaa@digia.com> Reviewed-by:
Pasi Keränen <pasi.keranen@digia.com>
-
- 12 Nov, 2014 - 1 commit
-
-
Pasi Keranen authored
Removed unnecessary/duplicate logging. Added clearing of the FBOs to prevent random junk appearing on the screen on Mac OS X before first frame is rendered. Log all calls and log all errors of context now follows automatically the canvas which is more logical. Change-Id: I3279e8ae02be8ffc1be6655f1c6c0047ea68364f Reviewed-by:
Tomi Korpipää <tomi.korpipaa@digia.com> Reviewed-by:
Pasi Keränen <pasi.keranen@digia.com>
-
- 06 Nov, 2014 - 3 commits
-
-
Miikka Heikkinen authored
Change-Id: I7fc9b0592beabc0b0e225bf1f161bdbeaa9dba00 Reviewed-by:
Pasi Keränen <pasi.keranen@digia.com>
-
Tomi Korpipää authored
Check for ES using isOpenGLES() instead. The method was introduced in Qt 5.3. Change-Id: Id21659fcaa1e1854c07df38147ad666207778cb2 Reviewed-by:
Pasi Keränen <pasi.keranen@digia.com>
-
Tomi Korpipää authored
Change-Id: Id56053764835e13bf475d76230ea4a6c356161ca Reviewed-by:
Pasi Keränen <pasi.keranen@digia.com>
-
- 24 Oct, 2014 - 1 commit
-
-
Pasi Keranen authored
QQmlPropertyMap as baseclass doesn't work without additional work, it has been now removed as baseclass from QtCanvas3D for now. TextureLoader has been removed in favor of TextureImageFactory as that allows easier porting of WebGL based JavaScript code to QtCanvas3D. Change-Id: I6fb374fd012d7569b9f173b08f4a6f21dcd83abe Reviewed-by:
Tomi Korpipää <tomi.korpipaa@digia.com> Reviewed-by:
Pasi Keränen <pasi.keranen@digia.com>
-
- 14 Oct, 2014 - 1 commit
-
-
Pasi Keranen authored
All JavaScript visible objects are now based on QQmlPropertyMap so that libraries and other users can add dynamic properties to the objects like they do in many cases. Also fixed textured cube example to respect devicePixelRatio. Change-Id: I71a8d8e32e2d856dc1c97f498c9a34b3858ab6a9 Reviewed-by:
Tomi Korpipää <tomi.korpipaa@digia.com> Reviewed-by:
Pasi Keränen <pasi.keranen@digia.com>
-
- 01 Sep, 2014 - 1 commit
-
-
Pasi Keranen authored
Fixed surface format initialization to use OpenGL ES 2.0 on OpenGL ES 3.0 capable devices. Change-Id: I2bb77294af47211f4b72c4d06a5d4c794be134cd Reviewed-by:
Pasi Keränen <pasi.keranen@digia.com>
-
- 25 Aug, 2014 - 2 commits
-
-
Tomi Korpipää authored
Change-Id: Ief2c39fd4ec0d985ed8184e33bde0190b8b338cf Reviewed-by:
Pasi Keränen <pasi.keranen@digia.com>
-
Tomi Korpipää authored
Change-Id: I3687682d0cae4eff4259e171bca2fa11c08b561f Reviewed-by:
Pasi Keränen <pasi.keranen@digia.com>
-
- 20 Aug, 2014 - 1 commit
-
-
Pasi Keränen authored
-