Fixes for Win32 build
This commit is contained in:
parent
c6cdfc6794
commit
a44efe01bb
@ -43,12 +43,12 @@ class SG_EXPORT Transform : public Group
|
||||
enum ReferenceFrame
|
||||
{
|
||||
RELATIVE_TO_PARENTS,
|
||||
ABSOLUTE
|
||||
RELATIVE_TO_ABSOLUTE
|
||||
};
|
||||
|
||||
/** Set the transform's ReferenceFrame, either to be realtive to its parent reference frame,
|
||||
* or relative to an absolute coordinate frame. RELATIVE_TO_PARENTS is the default.
|
||||
* Note, setting the RefrenceFrame to be ABSOLUTE will also set the CullingActive flag on the
|
||||
* Note, setting the RefrenceFrame to be RELATIVE_TO_ABSOLUTE will also set the CullingActive flag on the
|
||||
* transform, and hence all its parents, to false, therby disabling culling of it and all its
|
||||
* parents. This is neccessary to prevent inappropriate culling, but may impact of cull times
|
||||
* if the absolute transform is deep in the scene graph, it is therefore recommend to only use
|
||||
|
@ -42,7 +42,7 @@ void Transform::setReferenceFrame(ReferenceFrame rf)
|
||||
_referenceFrame = rf;
|
||||
|
||||
// switch off culling if transform is absolute.
|
||||
if (_referenceFrame==ABSOLUTE) setCullingActive(false);
|
||||
if (_referenceFrame==RELATIVE_TO_ABSOLUTE) setCullingActive(false);
|
||||
else setCullingActive(true);
|
||||
}
|
||||
|
||||
|
@ -30,7 +30,7 @@ void FTContour::AddPoint( const float x, const float y)
|
||||
FTVectoriser::FTVectoriser( FT_Glyph glyph)
|
||||
: contour(0),
|
||||
contourFlag(0),
|
||||
kBSTEPSIZE( 0.2)
|
||||
kBSTEPSIZE( 0.2f)
|
||||
{
|
||||
FT_OutlineGlyph outline = (FT_OutlineGlyph)glyph;
|
||||
ftOutline = outline->outline;
|
||||
|
Loading…
Reference in New Issue
Block a user