Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - colask8

Pages: [1]
1
General / Re: SFML frameworks on Mac OS X 10.9
« on: March 17, 2014, 01:35:38 am »
Yes. But after update of XCode i had to reapply it. So just got fixed. Thanks for the reply.

2
General / SFML frameworks on Mac OS X 10.9
« on: March 15, 2014, 02:58:29 pm »
Hi,
when i try to use framworks i get this error
clang: error: unknown argument: '-frameworksfml-system' [-Wunused-command-line-argument-hard-error-in-future]


and so on for other 4(window, graphics, audio, network).

I dloaded and installed the one for clang, via install.sh I'm on LLVM 5.1 from latest XCode.
dylibs work as they supposed to, but i'm using another library which doesnt work with dylibs, so i need frameworks to work. Also tried compiling with cmake  and installed the frameworks.

3
Window / Re: How to get position of screen
« on: July 12, 2013, 10:45:51 pm »
Here is new code and output from system terminal:

http://s21.postimg.org/8pgs324ef/new_get_position.png

here is code:
#include <SFML/Graphics.hpp>
#include <iostream>

using namespace std;
int main()
{
    // Create the main window
    sf::RenderWindow window(sf::VideoMode(400, 400), "SFML window");
    window.setFramerateLimit(60);
    window.setPosition(sf::Vector2i(700, 400));
    int curPositionX = window.getPosition().x;
    int curPositionY = window.getPosition().y;
    cout << "X: " << curPositionX << endl;
    cout << "Y: " << curPositionY << endl;

    while (window.isOpen())
    {
        // Process events
        sf::Event event;
        while (window.pollEvent(event))
        {
            // Close window : exit
            if (event.type == sf::Event::Closed)
                window.close();
        }

        // Clear screen
        window.clear();

        // Update the window
        window.display();
    }

    return EXIT_SUCCESS;
}
 

There is no coincidence between 700x400 and 640x325 or there is ? Ide terminal is still 10 and 30.

~Cola

4
Window / How to get position of screen
« on: July 12, 2013, 10:18:21 pm »
Dear community,
I have problem with getting the information from getPosition().
window.setPosition(1000,300);
 
output of getPosition()

Here is screen shoot with code, simple sfml application.

http://s22.postimg.org/iqeqa6uz5/getposition.png

How to get true position of window?

~Cola

Pages: [1]