Exemplo n.º 1
0
unsigned int sfWindow_GetHeight(const sfWindow* window)
{
    CSFML_CALL_RETURN(window, GetHeight(), 0);
}
Exemplo n.º 2
0
sfBool sfTcpSocket_IsBlocking(const sfTcpSocket* socket)
{
    CSFML_CALL_RETURN(socket, IsBlocking(), sfFalse);
}
Exemplo n.º 3
0
float sfSprite_GetRotation(const sfSprite* sprite)
{
    CSFML_CALL_RETURN(sprite, GetRotation(), 0.f);
}
Exemplo n.º 4
0
float sfShape_getRotation(const sfShape* shape)
{
    CSFML_CALL_RETURN(shape, getRotation(), 0.f);
}
Exemplo n.º 5
0
sfBool sfFtpDirectoryResponse_isOk(const sfFtpDirectoryResponse* ftpDirectoryResponse)
{
    CSFML_CALL_RETURN(ftpDirectoryResponse, isOk(), sfFalse);
}
Exemplo n.º 6
0
////////////////////////////////////////////////////////////
/// Return the height of the image
////////////////////////////////////////////////////////////
unsigned int sfImage_GetHeight(sfImage* Image)
{
    CSFML_CALL_RETURN(Image, GetHeight(), 0);
}
Exemplo n.º 7
0
float sfShape_getOutlineThickness(const sfShape* shape)
{
    CSFML_CALL_RETURN(shape, getOutlineThickness(), 0.f);
}
Exemplo n.º 8
0
Arquivo: Text.cpp Projeto: Jebbs/CSFML
sfUint32 sfText_getStyle(const sfText* text)
{
    CSFML_CALL_RETURN(text, getStyle(), 0);
}
Exemplo n.º 9
0
sfBool sfRenderTexture_isSmooth(const sfRenderTexture* renderTexture)
{
    CSFML_CALL_RETURN(renderTexture, isSmooth(), sfFalse);
}
Exemplo n.º 10
0
Arquivo: Text.cpp Projeto: Jebbs/CSFML
float sfText_getRotation(const sfText* text)
{
    CSFML_CALL_RETURN(text, getRotation(), 0.f);
}
Exemplo n.º 11
0
Arquivo: Text.cpp Projeto: Jebbs/CSFML
unsigned int sfText_getCharacterSize(const sfText* text)
{
    CSFML_CALL_RETURN(text, getCharacterSize(), 0);
}
Exemplo n.º 12
0
sfBool sfFtpResponse_IsOk(const sfFtpResponse* ftpResponse)
{
    CSFML_CALL_RETURN(ftpResponse, IsOk(), sfFalse);
}
Exemplo n.º 13
0
sfBool sfWindow_IsOpen(const sfWindow* window)
{
    CSFML_CALL_RETURN(window, IsOpen(), sfFalse);
}
Exemplo n.º 14
0
sfBool sfWindow_SetActive(sfWindow* window, sfBool active)
{
    CSFML_CALL_RETURN(window, SetActive(active == sfTrue), sfFalse);
}
Exemplo n.º 15
0
////////////////////////////////////////////////////////////
/// 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);
}
Exemplo n.º 16
0
sfBool sfRenderTexture_setActive(sfRenderTexture* renderTexture, sfBool active)
{
    CSFML_CALL_RETURN(renderTexture, setActive(active == sfTrue), sfFalse);
}
Exemplo n.º 17
0
////////////////////////////////////////////////////////////
/// Return the width of the image
////////////////////////////////////////////////////////////
unsigned int sfImage_GetWidth(sfImage* Image)
{
    CSFML_CALL_RETURN(Image, GetWidth(), 0);
}
Exemplo n.º 18
0
sfBool sfRenderWindow_isOpen(const sfRenderWindow* renderWindow)
{
    CSFML_CALL_RETURN(renderWindow, isOpen(), sfFalse);
}
Exemplo n.º 19
0
////////////////////////////////////////////////////////////
/// Tells whether the smoothing filter is enabled or not on an image
////////////////////////////////////////////////////////////
sfBool sfImage_IsSmooth(sfImage* Image)
{
    CSFML_CALL_RETURN(Image, IsSmooth(), sfFalse);
}
Exemplo n.º 20
0
sfBool sfRenderWindow_setActive(sfRenderWindow* renderWindow, sfBool active)
{
    CSFML_CALL_RETURN(renderWindow, setActive(active == sfTrue), sfFalse);
}
Exemplo n.º 21
0
unsigned int sfShape_getPointCount(const sfShape* shape)
{
    CSFML_CALL_RETURN(shape, getPointCount(), 0);
}
Exemplo n.º 22
0
sfBool sfRenderWindow_hasFocus(const sfRenderWindow* renderWindow)
{
    CSFML_CALL_RETURN(renderWindow, hasFocus(), sfFalse);
}
Exemplo n.º 23
0
sfBool sfFtpListingResponse_isOk(const sfFtpListingResponse* ftpListingResponse)
{
    CSFML_CALL_RETURN(ftpListingResponse, isOk(), sfFalse);
}
Exemplo n.º 24
0
unsigned int sfHttpResponse_GetMinorVersion(const sfHttpResponse* httpResponse)
{
    CSFML_CALL_RETURN(httpResponse, GetMinorHttpVersion(), 0);
}
Exemplo n.º 25
0
const float* sfTransform_GetMatrix(const sfTransform* transform)
{
    CSFML_CALL_RETURN(transform, GetMatrix(), NULL);
}
Exemplo n.º 26
0
////////////////////////////////////////////////////////////
/// Save the content of an image to a file
////////////////////////////////////////////////////////////
sfBool sfImage_SaveToFile(sfImage* Image, const char* Filename)
{
    CSFML_CALL_RETURN(Image, SaveToFile(Filename), sfFalse);
}
Exemplo n.º 27
0
unsigned short sfTcpSocket_GetRemotePort(const sfTcpSocket* socket)
{
    CSFML_CALL_RETURN(socket, GetRemotePort(), 0);
}
Exemplo n.º 28
0
////////////////////////////////////////////////////////////
/// Create the image from the current contents of the
/// given window
////////////////////////////////////////////////////////////
CSFML_API sfBool sfImage_CopyScreen(sfImage* Image, sfRenderWindow* Window, sfIntRect SourceRect)
{
    CSFML_CHECK_RETURN(Window, sfFalse);
    sf::IntRect SFMLRect(SourceRect.Left, SourceRect.Top, SourceRect.Right, SourceRect.Bottom);
    CSFML_CALL_RETURN(Image, CopyScreen(Window->This, SFMLRect), sfFalse);
}
Exemplo n.º 29
0
////////////////////////////////////////////////////////////
/// Set the blending mode for a shape
////////////////////////////////////////////////////////////
void sfShape_SetBlendMode(sfShape* Shape, sfBlendMode Mode)
{
    CSFML_CALL(Shape, SetBlendMode(static_cast<sf::Blend::Mode>(Mode)))
}


////////////////////////////////////////////////////////////
/// Get the X position of a shape
////////////////////////////////////////////////////////////
float sfShape_GetX(sfShape* Shape)
{
    CSFML_CALL_RETURN(Shape, GetPosition().x, 0.f)
}


////////////////////////////////////////////////////////////
/// Get the Y position of a shape
////////////////////////////////////////////////////////////
float sfShape_GetY(sfShape* Shape)
{
    CSFML_CALL_RETURN(Shape, GetPosition().y, 0.f)
}


////////////////////////////////////////////////////////////
/// Get the horizontal scale of a shape
////////////////////////////////////////////////////////////
Exemplo n.º 30
0
unsigned int sfWindow_GetWidth(const sfWindow* window)
{
    CSFML_CALL_RETURN(window, GetWidth(), 0);
}