private: /** All the primitives that use the leaving slide texture
*/
Primitives_t maLeavingSlidePrimitives;
/** All the primitives that use the leaving slide texture
*/
Primitives_t maEnteringSlidePrimitives;
/** All the operations that should be applied to both leaving and entering slide primitives. These operations will be called in the order they were pushed back in. In OpenGL this effectively uses the operations in the opposite order they were pushed back.
*/
Operations_t maOverallOperations;
/** All the surrounding scene objects
*/
SceneObjects_t maSceneObjects;
};
/** OpenGL 3D Transition class. It implicitly is constructed from XOGLTransition
ItholdsPrimitivesandOperationsonthoseprimitives.
*/ class OGLTransitionImpl
{ public: virtual ~OGLTransitionImpl();
private: /** This function is called in display method to prepare the slides, scene, etc. * *Defaultimplementationdoesnothing.
*/ virtualvoid prepare( double SlideWidth, double SlideHeight );
/** This function is called in display method to prepare the slides, scene, etc. * *Defaultimplementationdoesnothing.
*/ virtualvoid cleanup();
/** This function is called after glx context is ready to let the transition prepare GL related things, like GLSL program. * *Defaultimplementationdoesnothing.
*/ virtualvoid prepareTransition( sal_Int32 glLeavingSlideTex, sal_Int32 glEnteringSlideTex, OpenGLContext *pContext );
/** This function is called when the transition needs to clear after itself, like delete own textures etc. * *Defaultimplementationdoesnothing.
*/ virtualvoid finishTransition();
/** This function is called in display method to display the slides. * *Defaultimplementationappliesoveralloperationsandthen *displaysbothslides.
*/ virtualvoid displaySlides_( double nTime, sal_Int32 glLeavingSlideTex, sal_Int32 glEnteringSlideTex, double SlideWidthScale, double SlideHeightScale, OpenGLContext *pContext );
/** This function is called in prepare method to create the GL program. * *Itisapurevirtualtomakesurenoclasswilluseadefaultone.
*/ virtual GLuint makeShader() const = 0;
protected: /** GLSL program object
*/
GLuint m_nProgramObject = 0u;
/** VBO in which to put primitive data
*/
GLuint m_nVertexBufferObject = 0u;
/** Location of the "time" uniform
*/
GLint m_nTimeLocation = -1;
};
// "Constructors" of available transitions
std::shared_ptr<OGLTransitionImpl> makeOutsideCubeFaceToLeft();
std::shared_ptr<OGLTransitionImpl> makeInsideCubeFaceToLeft();
std::shared_ptr<OGLTransitionImpl> makeNByMTileFlip( sal_uInt16 n, sal_uInt16 m );
std::shared_ptr<OGLTransitionImpl> makeRevolvingCircles( sal_uInt16 nCircles , sal_uInt16 nPointsOnCircles );
std::shared_ptr<OGLTransitionImpl> makeHelix( sal_uInt16 nRows );
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();
std::shared_ptr<OGLTransitionImpl> makeVenetianBlinds( bool vertical, int parts );
std::shared_ptr<OGLTransitionImpl> makeStatic();
std::shared_ptr<OGLTransitionImpl> makeDissolve();
std::shared_ptr<OGLTransitionImpl> makeVortex();
std::shared_ptr<OGLTransitionImpl> makeRipple();
std::shared_ptr<OGLTransitionImpl> makeGlitter();
std::shared_ptr<OGLTransitionImpl> makeHoneycomb();
std::shared_ptr<OGLTransitionImpl> makeNewsflash();
/** 2D replacements */
std::shared_ptr<OGLTransitionImpl> makeDiamond();
std::shared_ptr<OGLTransitionImpl> makeFadeSmoothly(); // fade through black or white
std::shared_ptr<OGLTransitionImpl> makeFadeThroughColor( bool white = false );
/** This class is a list of Triangles that will share Operations, and could possibly share
*/ class Primitive
{ public:
Primitive() {} // making copy constructor explicit makes the class un-suitable for use with stl containers
Primitive(const Primitive& rvalue);
Primitive& operator=(const Primitive& rvalue);
/** PushBack a vertex,normal, and tex coord. Each SlideLocation is where on the slide is mapped to this location ( from (0,0) to (1,1) ). This will make sure the correct aspect ratio is used, and helps to make slides begin and end at the correct position. (0,0) is the top left of the slide, and (1,1) is the bottom right.
/** list of Operations to be performed on this primitive.These operations will be called in the order they were pushed back in. In OpenGL this effectively uses the operations in the opposite order they were pushed back.
@return thelistofOperations
*/
Operations_t Operations;
private: /** list of vertices
*/
std::vector<Vertex> Vertices;
};
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.