LibreOffice Module vcl (master)  1
Namespaces | Functions
VertexUtils.hxx File Reference
#include <basegfx/numeric/ftools.hxx>
#include <epoxy/gl.h>
#include <glm/gtx/norm.hpp>
#include <tools/color.hxx>
#include <vector>
Include dependency graph for VertexUtils.hxx:

Go to the source code of this file.

Namespaces

 vcl
 
 vcl::vertex
 

Functions

template<GLenum TYPE>
void vcl::vertex::addRectangle (std::vector< GLfloat > &rVertices, GLfloat x1, GLfloat y1, GLfloat x2, GLfloat y2)
 
template<>
void vcl::vertex::addRectangle< GL_TRIANGLES > (std::vector< GLfloat > &rVertices, GLfloat x1, GLfloat y1, GLfloat x2, GLfloat y2)
 
template<>
void vcl::vertex::addRectangle< GL_TRIANGLE_FAN > (std::vector< GLfloat > &rVertices, GLfloat x1, GLfloat y1, GLfloat x2, GLfloat y2)
 
void vcl::vertex::createColor (Color nColor, GLfloat fTransparency, GLubyte &nR, GLubyte &nG, GLubyte &nB, GLubyte &nA)
 
template<GLenum TYPE>
void vcl::vertex::addQuadColors (std::vector< GLubyte > &rColors, Color nColor, GLfloat fTransparency)
 
template<>
void vcl::vertex::addQuadColors< GL_TRIANGLES > (std::vector< GLubyte > &rColors, Color nColor, GLfloat fTransparency)
 
void vcl::vertex::addLineSegmentVertices (std::vector< GLfloat > &rVertices, std::vector< GLfloat > &rExtrusionVectors, glm::vec2 prevPoint, glm::vec2 prevExtrusionVector, GLfloat prevLength, glm::vec2 currPoint, glm::vec2 currExtrusionVector, GLfloat currLength)
 
glm::vec2 vcl::vertex::normalize (const glm::vec2 &vector)
 
glm::vec2 vcl::vertex::perpendicular (const glm::vec2 &vector)
 
float vcl::vertex::lineVectorAngle (const glm::vec2 &previous, const glm::vec2 &next)