本文整理汇总了C++中FVector::Begin方法的典型用法代码示例。如果您正苦于以下问题:C++ FVector::Begin方法的具体用法?C++ FVector::Begin怎么用?C++ FVector::Begin使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类FVector
的用法示例。
在下文中一共展示了FVector::Begin方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: WriteRGBWS
bool FileFormatInstance::WriteRGBWS( const RGBColorSystem& rgbws )
{
try
{
if ( (*API->FileFormat->BeginRGBWSEmbedding)( handle ) == api_false )
return false;
float gamma = rgbws.Gamma();
api_bool issRGB = rgbws.IsSRGB();
FVector x = rgbws.ChromaticityXCoordinates();
FVector y = rgbws.ChromaticityYCoordinates();
FVector Y = rgbws.LuminanceCoefficients();
bool ok = (*API->FileFormat->SetImageRGBWS)( handle, gamma, issRGB, x.Begin(), y.Begin(), Y.Begin() ) != api_false;
if ( rgbws.Gamma() != gamma ||
rgbws.IsSRGB() != (issRGB != api_false) ||
rgbws.ChromaticityXCoordinates() != x ||
rgbws.ChromaticityYCoordinates() != y ||
rgbws.LuminanceCoefficients() != Y )
{
APIHackingAttempt( "WriteRGBWS" );
}
(*API->FileFormat->EndRGBWSEmbedding)( handle );
return ok;
}
catch ( ... )
{
(*API->FileFormat->EndRGBWSEmbedding)( handle );
throw;
}
}
示例2: ReadRGBWS
bool FileFormatInstance::ReadRGBWS( RGBColorSystem& rgbws )
{
try
{
rgbws = RGBColorSystem();
if ( (*API->FileFormat->BeginRGBWSExtraction)( handle ) == api_false )
return false;
float gamma = rgbws.Gamma();
api_bool issRGB = rgbws.IsSRGB();
FVector x = rgbws.ChromaticityXCoordinates();
FVector y = rgbws.ChromaticityYCoordinates();
FVector Y = rgbws.LuminanceCoefficients();
bool ok = (*API->FileFormat->GetImageRGBWS)( handle, &gamma, &issRGB, x.Begin(), y.Begin(), Y.Begin() ) != api_false;
if ( ok )
rgbws = RGBColorSystem( gamma, issRGB, x, y, Y );
(*API->FileFormat->EndRGBWSExtraction)( handle );
return ok;
}
catch ( ... )
{
(*API->FileFormat->EndRGBWSExtraction)( handle );
throw;
}
}