LibreOffice Module vcl (master)  1
Functions
vcl::vertex Namespace Reference

Functions

template<GLenum TYPE>
void addRectangle (std::vector< GLfloat > &rVertices, GLfloat x1, GLfloat y1, GLfloat x2, GLfloat y2)
 
template<>
void addRectangle< GL_TRIANGLES > (std::vector< GLfloat > &rVertices, GLfloat x1, GLfloat y1, GLfloat x2, GLfloat y2)
 
template<>
void addRectangle< GL_TRIANGLE_FAN > (std::vector< GLfloat > &rVertices, GLfloat x1, GLfloat y1, GLfloat x2, GLfloat y2)
 
void createColor (Color nColor, GLfloat fTransparency, GLubyte &nR, GLubyte &nG, GLubyte &nB, GLubyte &nA)
 
template<GLenum TYPE>
void addQuadColors (std::vector< GLubyte > &rColors, Color nColor, GLfloat fTransparency)
 
template<>
void addQuadColors< GL_TRIANGLES > (std::vector< GLubyte > &rColors, Color nColor, GLfloat fTransparency)
 
void 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 normalize (const glm::vec2 &vector)
 
glm::vec2 perpendicular (const glm::vec2 &vector)
 
float lineVectorAngle (const glm::vec2 &previous, const glm::vec2 &next)
 

Function Documentation

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 
)
inline

Definition at line 73 of file VertexUtils.hxx.

template<GLenum TYPE>
void vcl::vertex::addQuadColors ( std::vector< GLubyte > &  rColors,
Color  nColor,
GLfloat  fTransparency 
)
inline
template<>
void vcl::vertex::addQuadColors< GL_TRIANGLES > ( std::vector< GLubyte > &  rColors,
Color  nColor,
GLfloat  fTransparency 
)
inline

Definition at line 58 of file VertexUtils.hxx.

References createColor().

template<GLenum TYPE>
void vcl::vertex::addRectangle ( std::vector< GLfloat > &  rVertices,
GLfloat  x1,
GLfloat  y1,
GLfloat  x2,
GLfloat  y2 
)
inline
template<>
void vcl::vertex::addRectangle< GL_TRIANGLE_FAN > ( std::vector< GLfloat > &  rVertices,
GLfloat  x1,
GLfloat  y1,
GLfloat  x2,
GLfloat  y2 
)
inline

Definition at line 38 of file VertexUtils.hxx.

template<>
void vcl::vertex::addRectangle< GL_TRIANGLES > ( std::vector< GLfloat > &  rVertices,
GLfloat  x1,
GLfloat  y1,
GLfloat  x2,
GLfloat  y2 
)
inline

Definition at line 29 of file VertexUtils.hxx.

void vcl::vertex::createColor ( Color  nColor,
GLfloat  fTransparency,
GLubyte &  nR,
GLubyte &  nG,
GLubyte &  nB,
GLubyte &  nA 
)
inline

Definition at line 46 of file VertexUtils.hxx.

References vcl::f, Color::GetBlue(), Color::GetGreen(), and Color::GetRed().

Referenced by addQuadColors< GL_TRIANGLES >().

float vcl::vertex::lineVectorAngle ( const glm::vec2 &  previous,
const glm::vec2 &  next 
)
inline

Definition at line 108 of file VertexUtils.hxx.

References F_PI.

glm::vec2 vcl::vertex::normalize ( const glm::vec2 &  vector)
inline

Definition at line 96 of file VertexUtils.hxx.

glm::vec2 vcl::vertex::perpendicular ( const glm::vec2 &  vector)
inline

Definition at line 103 of file VertexUtils.hxx.