本文整理汇总了C++中CSFML_CALL_RETURN函数的典型用法代码示例。如果您正苦于以下问题:C++ CSFML_CALL_RETURN函数的具体用法?C++ CSFML_CALL_RETURN怎么用?C++ CSFML_CALL_RETURN使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了CSFML_CALL_RETURN函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: sfWindow_GetHeight
unsigned int sfWindow_GetHeight(const sfWindow* window)
{
CSFML_CALL_RETURN(window, GetHeight(), 0);
}
示例2: sfTcpSocket_IsBlocking
sfBool sfTcpSocket_IsBlocking(const sfTcpSocket* socket)
{
CSFML_CALL_RETURN(socket, IsBlocking(), sfFalse);
}
示例3: sfSprite_GetRotation
float sfSprite_GetRotation(const sfSprite* sprite)
{
CSFML_CALL_RETURN(sprite, GetRotation(), 0.f);
}
示例4: sfShape_getRotation
float sfShape_getRotation(const sfShape* shape)
{
CSFML_CALL_RETURN(shape, getRotation(), 0.f);
}
示例5: sfFtpDirectoryResponse_isOk
sfBool sfFtpDirectoryResponse_isOk(const sfFtpDirectoryResponse* ftpDirectoryResponse)
{
CSFML_CALL_RETURN(ftpDirectoryResponse, isOk(), sfFalse);
}
示例6: sfImage_GetHeight
////////////////////////////////////////////////////////////
/// Return the height of the image
////////////////////////////////////////////////////////////
unsigned int sfImage_GetHeight(sfImage* Image)
{
CSFML_CALL_RETURN(Image, GetHeight(), 0);
}
示例7: sfShape_getOutlineThickness
float sfShape_getOutlineThickness(const sfShape* shape)
{
CSFML_CALL_RETURN(shape, getOutlineThickness(), 0.f);
}
示例8: sfText_getStyle
sfUint32 sfText_getStyle(const sfText* text)
{
CSFML_CALL_RETURN(text, getStyle(), 0);
}
示例9: sfRenderTexture_isSmooth
sfBool sfRenderTexture_isSmooth(const sfRenderTexture* renderTexture)
{
CSFML_CALL_RETURN(renderTexture, isSmooth(), sfFalse);
}
示例10: sfText_getRotation
float sfText_getRotation(const sfText* text)
{
CSFML_CALL_RETURN(text, getRotation(), 0.f);
}
示例11: sfText_getCharacterSize
unsigned int sfText_getCharacterSize(const sfText* text)
{
CSFML_CALL_RETURN(text, getCharacterSize(), 0);
}
示例12: sfFtpResponse_IsOk
sfBool sfFtpResponse_IsOk(const sfFtpResponse* ftpResponse)
{
CSFML_CALL_RETURN(ftpResponse, IsOk(), sfFalse);
}
示例13: sfWindow_IsOpen
sfBool sfWindow_IsOpen(const sfWindow* window)
{
CSFML_CALL_RETURN(window, IsOpen(), sfFalse);
}
示例14: sfWindow_SetActive
sfBool sfWindow_SetActive(sfWindow* window, sfBool active)
{
CSFML_CALL_RETURN(window, SetActive(active == sfTrue), sfFalse);
}
示例15: sfImage_GetPixelsPtr
////////////////////////////////////////////////////////////
/// Get a read-only pointer to the array of pixels of an image (8 bits integers RGBA)
/// Array size is sfImage_GetWidth() x sfImage_GetHeight() x 4
/// This pointer becomes invalid if you reload or resize the image
////////////////////////////////////////////////////////////
const sfUint8* sfImage_GetPixelsPtr(sfImage* Image)
{
CSFML_CALL_RETURN(Image, GetPixelsPtr(), NULL);
}