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.

Topics - etam

Pages: [1]
Window / [sfml2][linux] sf::Input::GetMouse* after creating window
« on: May 02, 2011, 10:12:55 pm »
After creating window I want to know where the mouse is, but my method doesn't seem to work.

minimal code:
Code: [Select]
#include <SFML/OpenGL.hpp>
#include <SFML/Window.hpp>
#include <iostream>

int main() {
    sf::Window window(sf::VideoMode(800, 600), "SFML window");
    std::cout << "x:" << window.GetInput().GetMouseX() << " y:" << window.GetInput().GetMouseX() << std::endl;
    return 0;

In this example window appears and disappears immediately, but wherever mouse is it always returns "x:0 y:0".

DotNet / mono, linux and sfml2
« on: February 07, 2011, 09:29:09 pm »
In linux the cfsml bindings are in libcsfml-@MODULE@.so.2.0.0 files. In sfmlnet the dll imports expects names like "csfml-@MODULE@-2".
The solution, that doesn't require messing with filenames, is adding config files next to sfmlnet dlls:

File sfmlnet-@MODULE@-2.dll.config
Code: [Select]
    <dllmap dll="csfml-@MODULE@-2" target="libcsfml-@MODULE@.so.2.0.0"/>

"@MODULE@" is one of "sound", "graphics" and "window"

I know, that it's easier just to rename file, but I'm working at packaging sfml2 for openSUSE, Fedora and Mandriva and I must follow some shared library policies.

Pages: [1]