LibreOffice Module slideshow (master) 1
|
#include <glm/gtc/matrix_transform.hpp>
#include <glm/gtc/type_ptr.hpp>
#include <vcl/opengl/OpenGLHelper.hxx>
#include <vcl/opengl/OpenGLContext.hxx>
#include <sal/log.hxx>
#include <algorithm>
#include <array>
#include <comphelper/random.hxx>
#include "Operation.hxx"
#include "TransitionImpl.hxx"
#include <cmath>
Go to the source code of this file.
Functions | |
static std::vector< int > | uploadPrimitives (const Primitives_t &primitives) |
static void | displayPrimitives (const Primitives_t &primitives, GLint primitiveTransformLocation, double nTime, double WidthScale, double HeightScale, std::vector< int >::const_iterator first) |
std::shared_ptr< OGLTransitionImpl > | makeOutsideCubeFaceToLeft () |
std::shared_ptr< OGLTransitionImpl > | makeInsideCubeFaceToLeft () |
std::shared_ptr< OGLTransitionImpl > | makeFallLeaving () |
std::shared_ptr< OGLTransitionImpl > | makeTurnAround () |
std::shared_ptr< OGLTransitionImpl > | makeTurnDown () |
std::shared_ptr< OGLTransitionImpl > | makeIris () |
std::shared_ptr< OGLTransitionImpl > | makeRochade () |
static double | randFromNeg1to1 () |
static glm::vec3 | randNormVectorInXYPlane () |
template<typename T > | |
static T | clamp (const T &rIn) |
std::shared_ptr< OGLTransitionImpl > | makeRevolvingCircles (sal_uInt16 nCircles, sal_uInt16 nPointsOnCircles) |
std::shared_ptr< OGLTransitionImpl > | makeHelix (sal_uInt16 nRows) |
static float | fdiv (int a, int b) |
static glm::vec2 | vec (float x, float y, float nx, float ny) |
std::shared_ptr< OGLTransitionImpl > | makeNByMTileFlip (sal_uInt16 n, sal_uInt16 m) |
std::shared_ptr< OGLTransitionImpl > | makeDiamond () |
2D replacements More... | |
std::shared_ptr< OGLTransitionImpl > | makeVenetianBlinds (bool vertical, int parts) |
std::shared_ptr< OGLTransitionImpl > | makeFadeSmoothly () |
std::shared_ptr< OGLTransitionImpl > | makeFadeThroughColor (bool white) |
std::shared_ptr< OGLTransitionImpl > | makeStatic () |
std::shared_ptr< OGLTransitionImpl > | makeDissolve () |
std::shared_ptr< OGLTransitionImpl > | makeVortex () |
std::shared_ptr< OGLTransitionImpl > | makeRipple () |
static void | createHexagon (Primitive &aHexagon, const int x, const int y, const int NX, const int NY) |
std::shared_ptr< OGLTransitionImpl > | makeGlitter () |
std::shared_ptr< OGLTransitionImpl > | makeHoneycomb () |
std::shared_ptr< OGLTransitionImpl > | makeNewsflash () |
|
static |
Definition at line 942 of file TransitionImpl.cxx.
References clamp().
Referenced by slideshow::internal::ActivityBase::calcAcceleratedTime(), clamp(), slideshow::internal::AnimationPhysicsNode::createActivity(), makeRevolvingCircles(), and slideshow::internal::ViewShape::renderSprite().
|
static |
Definition at line 1943 of file TransitionImpl.cxx.
References Primitive::pushTriangle(), vec(), x, and y.
Referenced by makeGlitter().
|
static |
Definition at line 290 of file TransitionImpl.cxx.
References first.
Referenced by SceneObject::display(), and OGLTransitionImpl::displaySlide().
Definition at line 1091 of file TransitionImpl.cxx.
References a.
Referenced by makeHoneycomb(), makeVortex(), and vec().
std::shared_ptr< OGLTransitionImpl > makeDiamond | ( | ) |
2D replacements
Definition at line 1261 of file TransitionImpl.cxx.
References TransitionSettings::mbUseMipMapEntering, and TransitionSettings::mbUseMipMapLeaving.
std::shared_ptr< OGLTransitionImpl > makeDissolve | ( | ) |
Definition at line 1596 of file TransitionImpl.cxx.
References TransitionSettings::mbUseMipMapEntering, TransitionSettings::mbUseMipMapLeaving, and Slide.
std::shared_ptr< OGLTransitionImpl > makeFadeSmoothly | ( | ) |
Definition at line 1338 of file TransitionImpl.cxx.
References TransitionSettings::mbUseMipMapEntering, TransitionSettings::mbUseMipMapLeaving, and Slide.
std::shared_ptr< OGLTransitionImpl > makeFadeThroughColor | ( | bool | white | ) |
Definition at line 1391 of file TransitionImpl.cxx.
References TransitionSettings::mbUseMipMapEntering, TransitionSettings::mbUseMipMapLeaving, and Slide.
std::shared_ptr< OGLTransitionImpl > makeFallLeaving | ( | ) |
Definition at line 712 of file TransitionImpl.cxx.
References makeRotateAndScaleDepthByWidth(), TransitionSettings::mbUseMipMapEntering, and Slide.
std::shared_ptr< OGLTransitionImpl > makeGlitter | ( | ) |
Definition at line 2047 of file TransitionImpl.cxx.
References createHexagon(), x, and y.
std::shared_ptr< OGLTransitionImpl > makeHelix | ( | sal_uInt16 | nRows | ) |
Definition at line 1059 of file TransitionImpl.cxx.
References i, and makeSRotate().
std::shared_ptr< OGLTransitionImpl > makeHoneycomb | ( | ) |
Definition at line 2247 of file TransitionImpl.cxx.
References fdiv(), TransitionSettings::mnRequiredGLVersion, Primitive::pushTriangle(), x, and y.
std::shared_ptr< OGLTransitionImpl > makeInsideCubeFaceToLeft | ( | ) |
Definition at line 691 of file TransitionImpl.cxx.
References makeRotateAndScaleDepthByWidth(), and Slide.
std::shared_ptr< OGLTransitionImpl > makeIris | ( | ) |
Definition at line 782 of file TransitionImpl.cxx.
References i, makeSRotate(), makeSTranslate(), TransitionSettings::mbUseMipMapEntering, TransitionSettings::mbUseMipMapLeaving, Primitive::Operations, Primitive::pushTriangle(), Slide, t, x, and y.
std::shared_ptr< OGLTransitionImpl > makeNByMTileFlip | ( | sal_uInt16 | n, |
sal_uInt16 | m | ||
) |
Definition at line 1105 of file TransitionImpl.cxx.
References Primitive::getVertex(), m, makeSRotate(), n, Primitive::Operations, Primitive::pushTriangle(), vec(), x, and y.
Referenced by makeRevolvingCircles().
std::shared_ptr< OGLTransitionImpl > makeNewsflash | ( | ) |
Definition at line 2265 of file TransitionImpl.cxx.
References makeSRotate(), makeSScale(), makeSTranslate(), and Slide.
std::shared_ptr< OGLTransitionImpl > makeOutsideCubeFaceToLeft | ( | ) |
Definition at line 670 of file TransitionImpl.cxx.
References makeRotateAndScaleDepthByWidth(), and Slide.
std::shared_ptr< OGLTransitionImpl > makeRevolvingCircles | ( | sal_uInt16 | nCircles, |
sal_uInt16 | nPointsOnCircles | ||
) |
now we know there is at least two circles the first will always be a full circle the last will always be the outer shell of the slide with a circle hole
Definition at line 947 of file TransitionImpl.cxx.
References clamp(), i, makeNByMTileFlip(), makeSRotate(), Primitive::Operations, Primitive::pushTriangle(), and randNormVectorInXYPlane().
std::shared_ptr< OGLTransitionImpl > makeRipple | ( | ) |
Definition at line 1924 of file TransitionImpl.cxx.
References TransitionSettings::mbUseMipMapEntering, TransitionSettings::mbUseMipMapLeaving, and Slide.
std::shared_ptr< OGLTransitionImpl > makeRochade | ( | ) |
Definition at line 894 of file TransitionImpl.cxx.
References h, makeRotateAndScaleDepthByWidth(), makeSEllipseTranslate(), makeSScale(), makeSTranslate(), Slide, and w.
std::shared_ptr< OGLTransitionImpl > makeStatic | ( | ) |
Definition at line 1546 of file TransitionImpl.cxx.
References TransitionSettings::mbUseMipMapEntering, TransitionSettings::mbUseMipMapLeaving, and Slide.
std::shared_ptr< OGLTransitionImpl > makeTurnAround | ( | ) |
Definition at line 732 of file TransitionImpl.cxx.
References makeRotateAndScaleDepthByWidth(), makeSScale(), makeSTranslate(), and Slide.
std::shared_ptr< OGLTransitionImpl > makeTurnDown | ( | ) |
Definition at line 761 of file TransitionImpl.cxx.
References makeSRotate(), makeSTranslate(), TransitionSettings::mbUseMipMapLeaving, and Slide.
std::shared_ptr< OGLTransitionImpl > makeVenetianBlinds | ( | bool | vertical, |
int | parts | ||
) |
Definition at line 1269 of file TransitionImpl.cxx.
References i, makeRotateAndScaleDepthByHeight(), makeRotateAndScaleDepthByWidth(), makeSRotate(), n, p, and Slide.
std::shared_ptr< OGLTransitionImpl > makeVortex | ( | ) |
Definition at line 1842 of file TransitionImpl.cxx.
References fdiv(), TransitionSettings::mbUseMipMapEntering, TransitionSettings::mbUseMipMapLeaving, TransitionSettings::mnRequiredGLVersion, Slide, x, and y.
|
static |
Definition at line 929 of file TransitionImpl.cxx.
References comphelper::rng::uniform_real_distribution().
Referenced by randNormVectorInXYPlane().
|
static |
Definition at line 935 of file TransitionImpl.cxx.
References randFromNeg1to1().
Referenced by makeRevolvingCircles().
|
static |
Definition at line 110 of file TransitionImpl.cxx.
References CHECK_GL_ERROR, and size.
Referenced by OGLTransitionImpl::prepare().
|
static |
Definition at line 1096 of file TransitionImpl.cxx.
References fdiv(), nx, ny, x, and y.
Referenced by createHexagon(), and makeNByMTileFlip().