Ion
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
ion::text::Layout::Quad Struct Reference

A Quad represents a 3D quadrilateral onto which a character glyph in the layout will be drawn. More...

#include "layout.h"

Collaboration diagram for ion::text::Layout::Quad:

Public Member Functions

 Quad ()
 The default constructor sets all points to the origin. More...
 
 Quad (const math::Point3f &lower_left, const math::Point3f &lower_right, const math::Point3f &upper_right, const math::Point3f &upper_left)
 Constructor taking all four individual quadrilateral points in the correct order. More...
 
 Quad (const math::Point3f points_in[4])
 Constructor taking all four quadrilateral points as an array. More...
 

Public Attributes

math::Point3f points [4]
 

Detailed Description

A Quad represents a 3D quadrilateral onto which a character glyph in the layout will be drawn.

The four points are stored counter-clockwise in this order: lower-left, lower-right, upper-right, upper-left.

Definition at line 132 of file layout.h.

Constructor & Destructor Documentation

ion::text::Layout::Quad::Quad ( )
inline

The default constructor sets all points to the origin.

Definition at line 134 of file layout.h.

ion::text::Layout::Quad::Quad ( const math::Point3f &  lower_left,
const math::Point3f &  lower_right,
const math::Point3f &  upper_right,
const math::Point3f &  upper_left 
)
inline

Constructor taking all four individual quadrilateral points in the correct order.

Definition at line 140 of file layout.h.

ion::text::Layout::Quad::Quad ( const math::Point3f  points_in[4])
inlineexplicit

Constructor taking all four quadrilateral points as an array.

Definition at line 149 of file layout.h.

Member Data Documentation

math::Point3f ion::text::Layout::Quad::points[4]

Definition at line 154 of file layout.h.

Referenced by ion::text::operator<<(), and ion::text::Builder::StoreGlyphVertices().


The documentation for this struct was generated from the following file: