ec8af31595
loplugin:nullptr
...
Change-Id: Ib6f55bc0ce6c09ea523174cb630c6d7cd9808f96
2015-12-11 22:25:43 +01:00
3b397f8a41
slideshow: windows build fixes
...
Change-Id: I9032af7583f0cf97664d2f84d5aead0cb1547c1a
2015-12-11 15:29:25 +01:00
d9116f2235
slideshow: Improve the performances of the Glitter transition
...
Change-Id: Iaf482b357577ff8a5511607844a69c90ea28d29f
2015-12-11 15:29:01 +01:00
c0b8c035db
slideshow: Improve the performances of the Honeycomb transition
...
Change-Id: Iacddc7b84bf0be8bb112cba88cc7fd36f72e7ca0
2015-12-11 15:29:01 +01:00
c5228bd0e4
slideshow: Don’t upload matrices to inexistent uniforms
...
Change-Id: I1572e101be0f5d9267dd48e96212689d80d1d023
2015-12-11 15:29:01 +01:00
b4383be80b
slideshow: Use GL_CLAMP_TO_BORDER for texture wrap
...
No transition makes use of repeat, and it could lead to some artifacts
when writing transitions.
Change-Id: Icf6f4f0eb74c28d8c75991e717b6b4ffe9df5060
2015-12-11 15:29:01 +01:00
facfbeb5cb
opengl: Add Geometry Shader support to OpenGLHelper
...
This is the ground work for some later transitions in slideshow.
Change-Id: Ib200cf7fabd579256a5255b0fb5d8c4accf7d24b
2015-12-11 15:29:01 +01:00
129b8b85c9
slideshow: Remove extraneous checks for the program object.
...
Change-Id: Ice61bfbd75aafd4197584c34ef7fbed80c20c184
2015-12-11 15:29:00 +01:00
9e991f43e5
slideshow: Don’t crash when a transition fails to initialize.
...
Instead replace it with no transition at all.
Change-Id: If7085e2ecd79eda80097f96bebbb2f9d11161c22
2015-12-11 15:29:00 +01:00
463739f44e
slideshow: Only upload vertex data on prepare
...
Change-Id: If87f441607adf2ed0aa31023352774e7372b7edb
2015-12-11 15:29:00 +01:00
c831e4851f
slideshow: Fix what was remaining to be able to use a core context
...
Change-Id: Ifb22c75c77d6bb5d3f144a1ed92bbcdf8d1112fd
2015-12-11 15:29:00 +01:00
a74e8ab784
slideshow: Remove the last legacy uniforms
...
Change-Id: If5f7368bf53dd59e66e990e4f2c57b6ee2cba44b
2015-12-11 15:28:59 +01:00
7d1c123a55
slideshow: Upload the projection and modelview matrices as uniforms
...
Change-Id: I9d6c3ad0d2cc2f691afb2c8622471286f8a5e1c7
2015-12-11 15:28:59 +01:00
566eca1448
slideshow: upload the transform matrices as uniforms
...
Change-Id: I2380fc7f8462514e6c032b18b44df51fbaaccb9f
2015-12-11 15:28:59 +01:00
4fcebe9f8a
slideshow: Remove legacy lighting code
...
Change-Id: Ib799244c6c3dd8d6fd21adc28e68690287caebd0
2015-12-11 15:28:59 +01:00
f9a0564fb9
slideshow: Remove wrong and unused uniform upload
...
Change-Id: I13c91af15caad888b4b56dbf92b63fdb0a97b47d
2015-12-11 15:28:59 +01:00
57387eb30d
tdf#96083 slide transitions wrong with appearing shapes
...
When using appearing animations on shapes, some of the slide transitions
incorrectly don't show these shapes. Same for disappearing shapes - both
states are wrong during slide transition time. Fix slide bitmap
generator to take final slide states into account.
Change-Id: Iea0e576009a109c7f44a7a6498b0ee5b2c4791c5
Reviewed-on: https://gerrit.libreoffice.org/20199
Tested-by: Jenkins <ci@libreoffice.org >
Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de >
2015-12-03 12:28:20 +00:00
ec3f724158
loplugin:unusedfields
...
Change-Id: Icac4ac1a2614e72bc9ff070819533e09eeb1a864
2015-11-30 10:34:38 +02:00
e5b3ec9683
fix build: "warning C4305: truncation from 'double' to 'float'"
...
Change-Id: Ied01ccf789877c15080797de3723588e09fa6c7c
2015-11-24 02:21:01 +01:00
f6bc5b79c3
fix build "error C2065: ´M_PI´ : undeclared identifier"
...
Change-Id: I0ba164cdc1c473184b953bffd7d264d1ec8733b6
2015-11-24 02:03:13 +01:00
68ab250d73
slideshow: Fix rotations when the slide and the screen have a different ratio
...
Change-Id: Ia6dcc352531a6bf067f3e87086cb275b00f81c97
2015-11-23 23:06:39 +01:00
b8eff3afb4
slideshow: Fix the baseline version, we now require OpenGL 2.1
...
With ReflectionTransition requiring 3.0 instead.
Change-Id: I9497dab91017d1d81a6a5a369524849ce5774694
2015-11-23 23:06:39 +01:00
2a81e30c59
slideshow: Make the Iris class private to the TransitionImpl translation unit
...
Change-Id: I9bf701a7f19d0f778b8fec7a39b762cc89b061b7
2015-11-23 23:06:38 +01:00
4c749b121c
slideshow: Merge ShaderTransition into OGLTransitionImpl
...
Change-Id: Ia585a5064362c261c137d8c4abefcfda7cb7bdd7
2015-11-23 23:06:38 +01:00
fb3661a43f
slideshow: Move Operation to its own translation unit
...
Change-Id: Ie0be68055152347e82da66cb48cf76c54b7966c0
2015-11-23 23:06:38 +01:00
04fe52e947
loplugin:unusedfields in slideshow/
...
Change-Id: I509dd0bdda284abb2b8abdb809bf1dec8b9632ce
2015-11-23 13:30:54 +02:00
55dd7c5223
loplugin:staticmethods
...
Change-Id: I57ab559112201269ce389bb6eff737168cec1e78
Reviewed-on: https://gerrit.libreoffice.org/20119
Reviewed-by: Noel Grandin <noelgrandin@gmail.com >
Tested-by: Noel Grandin <noelgrandin@gmail.com >
2015-11-22 14:48:26 +00:00
b3ce63e5a5
slideshow: Reimplement reflections in shaders, and port Rochade and TurnAround
...
This removes the hack reflections were previously, where a black quad
was drawn on top of a mirror version of the first primitive only.
Change-Id: I8c0863ab30e85d0130a8d7e838f3514e9be93788
2015-11-20 21:48:58 +01:00
f62990a835
slideshow: Reimplement both Fade transitions in shaders
...
Change-Id: I94187b9316a206578bb738411053afe070703f09
2015-11-20 21:48:57 +01:00
1f91c05c55
slideshow: Make SimpleTransition inherit from ShaderTransition
...
Many transitions don’t like the simplistic default shader, especially
since it doesn’t handle lighting or reflections properly.
Those issues are addressed in the following commits. TODO: except
lighting.
Change-Id: Ia99308deb87c97d9bbe1da32aac64d0437061a84
2015-11-20 21:48:57 +01:00
b8793748b0
Seems more natural to pass a homogenous list by initializer_list
...
...than by template parameter pack (even if that requires using ServiceDecl*, as
initializer_list cannot take reference types)
Change-Id: Ia986201b52d8daedfe925f132ebc79bc2c0ba378
2015-11-20 13:39:52 +01:00
ab9add5c96
loplugin:sallogareas
...
Change-Id: Ib1f06cb5f925535858bc14aab6f59ad7fd2a3a8d
2015-11-20 10:14:49 +01:00
ff52270410
loplugin:redundantcast
...
Change-Id: I89281db92f9b75e972313a95c33473d7649a9bef
2015-11-19 22:45:45 +01:00
cda5c7ab23
slideshow: Port all matrix operations from GL to glm
...
We are still using glPushMatrix/glMultMatrix/glPopMatrix until
everything is moved to shaders, at which point we will upload it with
glUniformMatrix instead.
Change-Id: I1684700eb9ed5867c5a2ae2b4e8cf2f1805f4d70
2015-11-19 19:21:54 +02:00
e18da092ef
slideshow: Batch primitive display as much as possible
...
We now set the state and upload all vertices data at once, before each
batch, in order to minimize GL calls during drawing.
The next step will be to move to shaders, in order to use per-primitive
uniforms instead of changing the global modelview matrix and issuing
another draw call.
Change-Id: I8c7cf29047047b9cad575cc6264485ae77d6ba10
2015-11-19 19:21:48 +02:00
cad6045f5c
slideshow: Always enable normals, there is no case where they are empty
...
Change-Id: Ia45a3ec98a1f548b5a976f485d4165bb3d1ff2e4
2015-11-19 19:21:42 +02:00
ba02afad40
slideshow: Don’t create the permTexture if the shaders don’t use it
...
Change-Id: I0aefe2130a85303213e247676d45546d9859cf62
2015-11-19 19:21:38 +02:00
f41358a71f
slideshow: Rename getVertices into getVertex, to match its only usage
2015-11-19 19:21:34 +02:00
9f8392846b
slideshow: improve "honeycomb" transition
...
Change-Id: I8687127cd9ccf6a6ddd87d934f7462a69a047053
2015-11-18 18:28:04 +01:00
53f16c39f5
remove unused typedefs and inline use-once typedefs
...
and improve the script a little
Change-Id: I2792ea4dd5df3a50736fbe209225c3f16fb86b84
Reviewed-on: https://gerrit.libreoffice.org/20033
Reviewed-by: Noel Grandin <noelgrandin@gmail.com >
Tested-by: Noel Grandin <noelgrandin@gmail.com >
2015-11-18 10:38:08 +00:00
d9e6270392
loplugin:unnecessaryvirtual
...
update the plugin with lessons learned from the mergeclasses plugin and
re-run it
Change-Id: I9d622eb3d05fceaf8fa764c533c8fa5dfb4c7711
Reviewed-on: https://gerrit.libreoffice.org/20015
Tested-by: Jenkins <ci@libreoffice.org >
Reviewed-by: Noel Grandin <noelgrandin@gmail.com >
2015-11-17 12:26:32 +00:00
97972153d0
slideshow: initial work on "honeycomb" transition (incomplete)
...
Change-Id: I4a46f7f1ec289f96f9fd1b849317b7548ac29383
2015-11-16 21:41:50 +01:00
6f6056d9cf
slideshow: improve rotation timing in glitter transition
...
Change-Id: I8b0475a6dcde53202a489b9d3265add9fe068cbc
2015-11-13 19:17:01 +01:00
7dec6e6eed
slideshow: simplify NByMTileFlip transition
...
Change-Id: I0ec07eb25d538d82d740a33f05b0a4f002adf36a
2015-11-13 19:17:00 +01:00
f6ef7e33b0
slideshow: add "glitter" slide transition
...
Change-Id: Ie89b64c4399cd0092eee579660c9fe85f8ca8e73
2015-11-13 10:15:08 +01:00
db17d3c17c
new loplugin: memoryvar
...
detect when we can convert a new/delete sequence on a local variable to
use std::unique_ptr
Change-Id: Iecae4e4197eccdfacfce2eed39aa4a69e4a660bc
Reviewed-on: https://gerrit.libreoffice.org/19884
Tested-by: Jenkins <ci@libreoffice.org >
Reviewed-by: Noel Grandin <noelgrandin@gmail.com >
2015-11-11 07:16:20 +00:00
b6fe760beb
loplugin:nullptr (automatic rewrite)
...
Change-Id: Ief4dd31d68bd7c8e45070eea689d07057449ce77
2015-11-10 10:31:39 +01:00
ef04c66659
Improve transition shader portability
...
Use #version 120 explicitly, and adapt the shader shader code
accordingly, to use strictly only GLSL 1.20 constructs. Also, use less
vertex attribute data in the Vortex vertex shader: We can pack the
per-vertex tile x and y index and in-tile vertex index information
into one float. Also, the shader can calculate the center of the tile
a vertex belongs to based on the knowledge of which tile it is.
Now the shader transitions work on OS X, too.
Change-Id: I93e8b5069a6d06d2e412ffee322b1eb32805e606
2015-11-07 01:45:48 +02:00
24db02dc8d
Make the Vortex transition a bit more interesting
...
Also some minor cleanups in the C++ code.
Change-Id: I106657130dd6e32b458cb416717806caac5031ce
2015-11-06 20:49:55 +02:00
69b81b64f8
loplugin:stringconstant: elide explicit ctor usage (automatic rewrite)
...
Change-Id: I23de1fa2f8e6c0cf6281b32eab179e131aa98056
2015-11-06 09:37:21 +01:00