Commit Graph

74 Commits

Author SHA1 Message Date
625d83e430 tdf#94006 - need an explicit dispose for slideshow's GLContext.
Fixes crasher exiting slideshow.

Change-Id: I14b6a2c1abc946f590bf91cab19099753172fd95
2015-09-16 03:12:16 +01:00
c5e3cf0f17 tdf#94031 - slideshow: bind correct GL context for prepareEnvironment
Change-Id: Ib139e81f770531f7d808764dd3a77c7ac8d6fa3c
2015-09-11 17:43:07 +01:00
d39630bb68 OpenGL: use CHECK_GL_ERROR() only when a context is bound.
Change-Id: I2cdc14defe5c4bd95776206df65fd57589d40429
2015-09-08 21:56:15 +01:00
a37d3b1c5c OpenGL: use CHECK_GL_ERROR() only when a context is bound.
Removes a large number of spurious GL errors left & right.

Change-Id: I0b5639478812982b39d3b88be2600dad5d3f1fd0
2015-09-08 21:27:29 +01:00
56900a441d tdf#94006 - fix OpenGLContext mis-use in several places.
gltf rendering, OpenGL canvas, GL transitions & GL capable (charts)
Avoid GLX operations on un-initialized contexts.

Change-Id: I7f523640f66ab656896181e5c865879234f6640e
2015-09-08 13:04:02 +01:00
ca7bab0561 slideshow: tdf#88206 replace cppu::WeakImplHelper* etc.
with the variadic variants.

Change-Id: I3160235d0e6253626a8facbfed33e3c252505cbf
Reviewed-on: https://gerrit.libreoffice.org/18336
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2015-09-07 07:37:07 +00:00
5a7bf1b32c loplugin:unusedmethods slideshow
Change-Id: I66b6cddb638a9fc1228d3ea9df5d112300a00eb3
Reviewed-on: https://gerrit.libreoffice.org/17128
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2015-07-17 06:49:23 +00:00
1afb790a11 inline COMPHELPER_SERVICEDECL_ macro
it was not adding any value

Change-Id: I6a911aac81e883f9155ed0cf24bfb7904efb3f92
2015-06-15 09:46:14 +02:00
f304a7a14a loplugin:staticmethods
Change-Id: I384a5e60f4b7b2f479c89ef97630519059ab720f
2015-05-05 09:30:39 +02:00
924b2923b8 V801: Decreased performance
Change-Id: I9e9a00acf9503980f0c6c7cd0a20378e5ca7390d
2015-03-09 20:56:26 +00:00
cf6d0fced8 Replace uses of deprecated gluBuild2DMipmaps
...with glGenerateMipmap (since OpenGL 3.0) or GL_GENERATE_MIPMAP (since OpenGL
1.4).  Appears to make slide transitions not worse on Linux and Mac OS X, while
actually improving them on Windows (where the transitions were rendered in just
white w/o textures), at least on the specific machines I tested on.

Change-Id: I1e4c115223521acd3f254bdbf0330a7830160a9c
2015-03-02 15:15:17 +01:00
e4fd2972e4 Some more loplugin:cstylecast: slideshow
Change-Id: I5cba157aa69b979a1e821f267f0560dd16533677
2015-01-20 11:24:51 +01:00
7cc8e0c302 boost::math::nextafter->std::nextafter
Change-Id: I868b3fcf367e61c40e77e64bcc153b2a2feefa0b
2015-01-06 09:17:13 +00:00
038683bf4c Silence Mac OS X 10.9/10.10 deprecations for now
Change-Id: Ie63ed8f6f66a7641ad872f93d76efb962333cec9
2014-11-26 18:13:08 +01:00
da40cac540 Fix common typos. No automatic tools. Handmade…
Change-Id: I1ab4e23b0539f8d39974787f226e57a21f96e959
Reviewed-on: https://gerrit.libreoffice.org/12164
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Tested-by: Noel Grandin <noelgrandin@gmail.com>
2014-11-12 11:04:11 +00:00
1af1ff30bd constify slideshow.
Change-Id: I548f527be4be76a2bda43dcb5ee14e4f50f3b409
2014-11-10 07:59:00 +01:00
8f436d3de7 use comphelper::rng::uniform_*_distribution everywhere
and automatically seed from time on first use

coverity#1242393 Don't call rand
coverity#1242404 Don't call rand
coverity#1242410 Don't call rand and additionally allow 0xFF as a value
coverity#1242409 Don't call rand
coverity#1242399 Don't call rand
coverity#1242372 Don't call rand
coverity#1242377 Don't call rand
coverity#1242378 Don't call rand
coverity#1242379 Don't call rand
coverity#1242382 Don't call rand
coverity#1242383 Don't call rand
coverity#1242402 Don't call rand
coverity#1242397 Don't call rand
coverity#1242390 Don't call rand
coverity#1242389 Don't call rand
coverity#1242388 Don't call rand
coverity#1242386 Don't call rand
coverity#1242384 Don't call rand
coverity#1242394 Don't call rand

Change-Id: I241feab9cb370e091fd6ccaba2af941eb95bc7cf
2014-10-06 14:13:27 +01:00
827c46e7d7 fdo#82577: Handle Window
Put the VCL Window class in the vcl namespace. Avoids clash with the X11
Window typedef.

Change-Id: Ib1beb7ab4ad75562a42aeb252732a073d25eff1a
2014-09-23 14:11:39 +03:00
d0f4081d59 Fix build with system glm by catering for explicit constructors
Change-Id: I9bb8542514aad0882935d4a347cbe452cc8fa819
2014-09-19 09:56:23 +02:00
f60bc85f6b SAL_WARN to SAL_INFO
Change-Id: I390a6d3c730bf26c87184e2d4d373692ccc98493
2014-09-03 15:09:54 +02:00
8e4defe4b5 fix Wunused-private-field
Change-Id: Ia708cc3cccd86257e08aa916d24733ca6769e723
2014-09-02 02:19:14 +02:00
ff3321cf77 replace check with GLEW variable
Change-Id: I818d099c70f2f886908584e67a73934dee5dbef8
2014-09-02 01:08:52 +02:00
45f9f5f4d9 use size_t instead of unsigned int for container indices
Change-Id: Iff2f797915f1558ea23336e273bd26e0c0edc63e
2014-09-02 01:08:52 +02:00
27fce9349b the values are float now
actually OpenGL does not like double that much

Change-Id: I3267f46072194bb6b2d4705733408e3db44c8c08
2014-09-02 01:08:51 +02:00
ca82d9e720 remove that ugly underscore at the end of the method names
Change-Id: I3c81c9d8b89ddf18bdc5ae700b721ca71f2700bb
2014-09-02 01:08:51 +02:00
63f49714a1 basegfx -> glm in OGLTrans
Change-Id: I3f3002d975f3ee2732c5e132b3b67531356aad5c
2014-09-02 01:08:51 +02:00
cf97444233 use constructor initializer list
Change-Id: I0bb1345f05dbd835e3f7debc66a824ccf44ef88b
2014-09-02 01:08:50 +02:00
9f3171fe01 improve readability
Change-Id: I7a8791c661cbd3c602c0d12d228b63ffc416a96c
2014-09-02 01:08:50 +02:00
c6fd7be336 no need to make these variables public
Change-Id: I9b57d6811252c75186e03ed6928bd8829fa0307c
2014-09-02 01:08:50 +02:00
79090d5fb0 more OpenGL error checking in OGLTrans
Change-Id: I7eff84d18be92423b3d8616162bfaf5be5203a9d
2014-09-02 01:08:50 +02:00
49a788a377 add OpenGL error checking to OGLTrans
Change-Id: I9e511221e3da54b44935ebde22c49e5a151f6961
2014-09-02 01:08:49 +02:00
b3e74732e9 don't try to use X11 functions on OSX
Change-Id: Ife987833a52c7ed0b55f1003df1ee0dad2011cc0
2014-09-02 01:08:46 +02:00
d44155730a use glew instead of directly including OpenGL headers
Change-Id: I7337d2d2f116f465bf6988dd9c7997b0267ca1cc
2014-09-02 01:08:46 +02:00
67232b5e73 glew is setting up that function pointer for us
Change-Id: I1722c1d3816e6e995e71317a9c9b1529afe9df13
2014-08-26 19:16:06 +02:00
88963dcfe7 that variable has nothing to do with glx
Change-Id: I202f716bcc65165e80928ccb81cec57f01bc0824
2014-08-26 19:16:06 +02:00
d72c4d4ba2 let us assume that we need to special handling for mesa anymore
Change-Id: I37c4db8ad7283486dd8bb62b22342f6b127f0b08
2014-08-26 19:16:05 +02:00
d409d5810c use glew variable to check for the feature
Change-Id: I1e2ae37a75826d321268395d4a3c23c7ed8d7b17
2014-08-26 19:16:05 +02:00
b409ca53a5 warning C4189 local variable initialized but not referenced
Change-Id: I7bea7063d924318eed07a2fad4ec88ea942302a0
2014-08-13 17:48:37 +02:00
6f2472e8d1 slideshow: prewin.h/postwin.h included twice
Builds for me without that...

Change-Id: I6db654098ee8f93a0cad80e7534c694971aebf5d
2014-08-13 17:48:37 +02:00
3c99db4ca0 fix problems around shaders
Change-Id: I1577fb81cb3cf1fac3f5ba5d560d96cb83d4483d
2014-08-13 02:01:52 +02:00
b4ed7cc37e make OGLTrans build on windows
We still need to fix a number of issues around pixmap to make it really useful.

Change-Id: I747d735d043d91d51809801edd9b778622b6063c
2014-08-13 02:00:08 +02:00
140b031935 we always have GLX 1.3, even on the baseline
Change-Id: I381aca6e09a63d21bcbdf2625c4d829f84819bf8
2014-08-13 02:00:08 +02:00
69e95b3946 remove useless OGL transition shader code
Change-Id: I8930aab2b4d3fd00916f12b86fa06b5e011542ac
2014-08-13 02:00:08 +02:00
886e4edf59 let us use OpenGL types for OpenGL resources
Change-Id: I53dbbfb2f1d721bdbb076fa7cb45801659694a14
2014-08-12 06:44:03 +02:00
d280b13b88 fix indentation
Change-Id: If4d3f4babf8539b5e411d0549e1c1b51c5659930
2014-08-12 06:42:34 +02:00
23c876deeb Extract getGLVersion() method to OpenGLHelper
Change-Id: If3b7a6c71164f2b55defe8c28cdce69de9283175
2014-07-21 13:00:08 +02:00
8eec77cbbc coverity#984143 Uninitialized scalar field
Change-Id: I23774c0e1d463284a389e8cdcad06a4915dafd06
2014-05-23 14:16:05 +01:00
4ffc795536 avoid duplication
Change-Id: I2de8da0ce3648657977825309d4dd9902c0f8900
2014-05-20 19:24:17 +02:00
9a076c316d normalize member var. names
Change-Id: Ib6215520d51ada6f956f8400de36f61a5ff025ba
2014-05-20 15:48:51 +02:00
eccaf91ec9 use VCL's OpenGLContext for 3D transitions
Change-Id: I510518461eb8bc9669d0de2679c34c473f66b175
2014-05-20 15:48:51 +02:00