29# warning This header is deprecated. Please use <FTGL/ftgl.h> from now.
49 : lower(0.0f, 0.0f, 0.0f),
50 upper(0.0f, 0.0f, 0.0f)
56 FTBBox(
float lx,
float ly,
float lz,
float ux,
float uy,
float uz)
76 : lower(0.0f, 0.0f, 0.0f),
77 upper(0.0f, 0.0f, 0.0f)
80 FT_Outline_Get_CBox(&(glyph->outline), &bbox);
82 lower.X(
static_cast<float>(bbox.xMin) / 64.0f);
83 lower.Y(
static_cast<float>(bbox.yMin) / 64.0f);
85 upper.X(
static_cast<float>(bbox.xMax) / 64.0f);
86 upper.Y(
static_cast<float>(bbox.yMax) / 64.0f);
102 lower =
FTPoint(1.0f, 1.0f, 1.0f);
103 upper =
FTPoint(-1.0f, -1.0f, -1.0f);
114 return lower.X() <= upper.X()
115 && lower.Y() <= upper.Y()
116 && lower.Z() <= upper.Z();
140 if(bbox.lower.
X() < lower.X()) lower.X(bbox.lower.
X());
141 if(bbox.lower.
Y() < lower.Y()) lower.Y(bbox.lower.
Y());
142 if(bbox.lower.
Z() < lower.Z()) lower.Z(bbox.lower.
Z());
143 if(bbox.upper.
X() > upper.X()) upper.X(bbox.upper.
X());
144 if(bbox.upper.
Y() > upper.Y()) upper.Y(bbox.upper.
Y());
145 if(bbox.upper.
Z() > upper.Z()) upper.Z(bbox.upper.
Z());
153 upper.Z(lower.Z() + depth);
155 lower.Z(upper.Z() + depth);
FTBBox is a convenience class for handling bounding boxes.
FTBBox(FT_GlyphSlot glyph)
Constructor.
FTBBox(float lx, float ly, float lz, float ux, float uy, float uz)
Constructor.
void Invalidate()
Mark the bounds invalid by setting all lower dimensions greater than the upper dimensions.
FTBBox()
Default constructor.
FTPoint const Lower() const
void SetDepth(float depth)
bool IsValid()
Determines if this bounding box is valid.
FTBBox(FTPoint l, FTPoint u)
Constructor.
FTPoint const Upper() const
FTPoint class is a basic 3-dimensional point or vector.
void X(FTGL_DOUBLE x)
Setters.