本文整理汇总了C++中CSFML_CALL函数的典型用法代码示例。如果您正苦于以下问题:C++ CSFML_CALL函数的具体用法?C++ CSFML_CALL怎么用?C++ CSFML_CALL使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了CSFML_CALL函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: sfMutex_unlock
void sfMutex_unlock(sfMutex* mutex)
{
CSFML_CALL(mutex, unlock());
}
示例2: sfRenderTexture_PushGLStates
CSFML_GRAPHICS_API void sfRenderTexture_PushGLStates(sfRenderTexture* renderTexture)
{
CSFML_CALL(renderTexture, PushGLStates());
}
示例3: sfRenderTexture_SetSmooth
void sfRenderTexture_SetSmooth(sfRenderTexture* renderTexture, sfBool smooth)
{
CSFML_CALL(renderTexture, SetSmooth(smooth == sfTrue));
}
示例4: sfSoundBufferRecorder_start
void sfSoundBufferRecorder_start(sfSoundBufferRecorder* soundBufferRecorder, unsigned int sampleRate)
{
CSFML_CALL(soundBufferRecorder, start(sampleRate));
}
示例5: sfRenderTexture_DrawRectangleShape
void sfRenderTexture_DrawRectangleShape(sfRenderTexture* renderTexture, const sfRectangleShape* object, const sfRenderStates* states)
{
CSFML_CHECK(object);
CSFML_CALL(renderTexture, Draw(object->This, ConvertRenderStates(states)));
}
示例6: sfCircleShape_setPosition
void sfCircleShape_setPosition(sfCircleShape* shape, sfVector2f position)
{
CSFML_CALL(shape, setPosition(position.x, position.y));
}
示例7: sfCircleShape_setScale
void sfCircleShape_setScale(sfCircleShape* shape, sfVector2f scale)
{
CSFML_CALL(shape, setScale(scale.x, scale.y));
}
示例8: sfSocketSelector_removeUdpSocket
void sfSocketSelector_removeUdpSocket(sfSocketSelector* selector, sfUdpSocket* socket)
{
CSFML_CHECK(socket);
CSFML_CALL(selector, remove(socket->This));
}
示例9: sfSocketSelector_clear
void sfSocketSelector_clear(sfSocketSelector* selector)
{
CSFML_CALL(selector, clear());
}
示例10: sfSocketSelector_addUdpSocket
void sfSocketSelector_addUdpSocket(sfSocketSelector* selector, sfUdpSocket* socket)
{
CSFML_CHECK(socket);
CSFML_CALL(selector, add(socket->This));
}
示例11: sfSocketSelector_removeTcpListener
void sfSocketSelector_removeTcpListener(sfSocketSelector* selector, sfTcpListener* socket)
{
CSFML_CHECK(socket);
CSFML_CALL(selector, remove(socket->This));
}
示例12: sfSocketSelector_addTcpListener
void sfSocketSelector_addTcpListener(sfSocketSelector* selector, sfTcpListener* socket)
{
CSFML_CHECK(socket);
CSFML_CALL(selector, add(socket->This));
}
示例13: sfUdpSocket_unbind
void sfUdpSocket_unbind(sfUdpSocket* socket)
{
CSFML_CALL(socket, unbind());
}
示例14: sfUdpSocket_setBlocking
void sfUdpSocket_setBlocking(sfUdpSocket* socket, sfBool blocking)
{
CSFML_CALL(socket, setBlocking(blocking == sfTrue));
}
示例15: sfCircleShape_setRadius
void sfCircleShape_setRadius(sfCircleShape* shape, float radius)
{
CSFML_CALL(shape, setRadius(radius));
}