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 - etam

Pages: [1]
1
Window / [sfml2][linux] sf::Input::GetMouse* after creating window
« on: May 02, 2011, 10:47:16 pm »
So as long as mouse is unmoved I can't get its position? Looks like a bug.

2
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");
    window.Display();
    std::cout << "x:" << window.GetInput().GetMouseX() << " y:" << window.GetInput().GetMouseX() << std::endl;
    window.Close();
    return 0;
}

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

3
Feature requests / Mipmapping for OpenGL texture creation?
« on: April 22, 2011, 11:02:09 pm »
+1 :D

How is your testing? Any results?

4
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]
<configuration>
    <dllmap dll="csfml-@MODULE@-2" target="libcsfml-@MODULE@.so.2.0.0"/>
</configuration>


"@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.

5
General / rbSFML
« on: February 05, 2011, 11:55:53 pm »
Something is broken, or I'm doing something wrong?

I just went to bindings/ruby directory, typed "rake" and that's what I got:
Code: [Select]
rake aborted!
/usr/src/packages/BUILD/sfml2-2.0/bindings/ruby/Rakefile:136: syntax error, unexpected ',', expecting ']'
file "#{SODIR}/#{so_file}.so" => [*objs, SODIR] do
                                       ^
/usr/src/packages/BUILD/sfml2-2.0/bindings/ruby/Rakefile:141: syntax error, unexpected kRESCUE, expecting kEND
/usr/src/packages/BUILD/sfml2-2.0/bindings/ruby/Rakefile:148: syntax error, unexpected kDO_BLOCK, expecting kEND
SO_SRCS.each_key do |so_file|
                  ^
/usr/src/packages/BUILD/sfml2-2.0/bindings/ruby/Rakefile:149: syntax error, unexpected tSTRING_BEG, expecting kDO or '{' or '('
sh "#{INSTALL} #{SODIR}/#{so_file}.so #{LOCATION}"
   ^
/usr/src/packages/BUILD/sfml2-2.0/bindings/ruby/Rakefile:151: syntax error, unexpected kRESCUE, expecting kEND
/usr/src/packages/BUILD/sfml2-2.0/bindings/ruby/Rakefile:158: syntax error, unexpected kDO_BLOCK, expecting kEND
SO_SRCS.each_key do |so_file|
                  ^
/usr/src/packages/BUILD/sfml2-2.0/bindings/ruby/Rakefile:159: syntax error, unexpected tSTRING_BEG, expecting kDO or '{' or '('
sh "rm -f #{LOCATION}/#{so_file}.so"
   ^
/usr/src/packages/BUILD/sfml2-2.0/bindings/ruby/Rakefile:162: syntax error, unexpected kRESCUE, expecting kEND
/usr/src/packages/BUILD/sfml2-2.0/bindings/ruby/Rakefile:167: syntax error, unexpected $end, expecting kEND


sources from https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2 rev 1789
ruby 1.8.7
rake 0.8.7

Pages: [1]
anything