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

Pages: [1]
1
Window / Small error with sfml2
« on: April 15, 2011, 04:17:35 pm »
If you are using a non-UNICODE class (string) then can't this be fixed by calling a non-UNICODE Window function (SetWindowTextA()) ?

Code: [Select]
void WindowImplWin32::SetTitle(const std::string& title)
{
    SetWindowTextA(myHandle, title.c_str());
}

2
General / [SFML2] [Mac] Support for Command key?
« on: April 12, 2011, 04:33:57 pm »
Quote from: "Laurent"
Ah, there. Indeed I must add the corresopnding member:
https://github.com/SFML/SFML/issues/8

But it is detected, so you can use input.IsKeyDown(sf::Key::R/LSystem) as a workaround.


OK great stuff, thanks for the reply.

3
General / [SFML2] [Mac] Support for Command key?
« on: April 12, 2011, 04:23:08 pm »
Quote from: "Laurent"
It is supported. Can you tell us why you think it is not?


Because looking at KeyEvent in Window/Event.hpp shows no boolean for the Command key:

Code: [Select]

struct KeyEvent
{
    Key::Code Code;    ///< Code of the key that has been pressed
    bool      Alt;     ///< Is the Alt key pressed?
    bool      Control; ///< Is the Control key pressed?
    bool      Shift;   ///< Is the Shift key pressed?
};

4
General / Game engine design, proper class instances handling
« on: April 12, 2011, 03:46:41 pm »
Your current solution is fine - it just sounds like you need a bit of practice using vectors.  This is worth the effort as you will have to use them, or a similar collection, at some point so it's best to get to know them.

5
General / [SFML2] [Mac] Support for Command key?
« on: April 12, 2011, 03:38:59 pm »
Can anyone tell me if the Mac Command key will be supported in the Event::KeyEvent structure in the future and if so, when?

I am no expert but I believe the lack of support for common key sequences (like Command-Q) can be one of the many reasons Apple use to reject applications from the Mac App Store, which would cause me difficulties.

6
General / [SFML2] [MAC] Compile failure during SFML build
« on: April 07, 2011, 08:59:43 am »
Quote from: "Laurent"
The OS X implementation is not up-to-date with the latest modifications, you'll have to wait a few more days.


OK thanks for the reply.

7
General / [SFML2] [MAC] Compile failure during SFML build
« on: April 06, 2011, 08:52:14 pm »
I am getting the following error when building SFML-2 (commit cb1f9385825c4645dae1c233684699c6fcb6c0a7):


Code: [Select]
[ 21%] Building CXX object src/SFML/Window/CMakeFiles/sfml-window.dir/GlContext.cpp.o
/Users/andy/Source/Cosmodeller/external/src/sfml-2/src/SFML/Window/GlContext.cpp: In static member function ‘static sf::priv::GlContext* sf::priv::GlContext::New(const sf::ContextSettings&, const sf::priv::WindowImpl*, unsigned int)’:
/Users/andy/Source/Cosmodeller/external/src/sfml-2/src/SFML/Window/GlContext.cpp:143: error: no matching function for call to ‘sf::priv::SFContext::SFContext(ContextType*&, const sf::ContextSettings&, const sf::priv::WindowImpl*&, unsigned int&)’
/Users/andy/Source/Cosmodeller/external/src/sfml-2/src/SFML/Window/OSX/SFContext.hpp:82: note: candidates are: sf::priv::SFContext::SFContext(sf::priv::SFContext*, const sf::priv::WindowImpl*, unsigned int, const sf::ContextSettings&)
/Users/andy/Source/Cosmodeller/external/src/sfml-2/src/SFML/Window/OSX/SFContext.hpp:70: note:                 sf::priv::SFContext::SFContext(sf::priv::SFContext*)
/Users/andy/Source/Cosmodeller/external/src/sfml-2/src/SFML/Window/OSX/SFContext.hpp:62: note:                 sf::priv::SFContext::SFContext(const sf::priv::SFContext&)
/Users/andy/Source/Cosmodeller/external/src/sfml-2/src/SFML/Window/GlContext.cpp: In static member function ‘static sf::priv::GlContext* sf::priv::GlContext::New(const sf::ContextSettings&, unsigned int, unsigned int)’:
/Users/andy/Source/Cosmodeller/external/src/sfml-2/src/SFML/Window/GlContext.cpp:160: error: no matching function for call to ‘sf::priv::SFContext::SFContext(ContextType*&, const sf::ContextSettings&, unsigned int&, unsigned int&)’
/Users/andy/Source/Cosmodeller/external/src/sfml-2/src/SFML/Window/OSX/SFContext.hpp:82: note: candidates are: sf::priv::SFContext::SFContext(sf::priv::SFContext*, const sf::priv::WindowImpl*, unsigned int, const sf::ContextSettings&)
/Users/andy/Source/Cosmodeller/external/src/sfml-2/src/SFML/Window/OSX/SFContext.hpp:70: note:                 sf::priv::SFContext::SFContext(sf::priv::SFContext*)
/Users/andy/Source/Cosmodeller/external/src/sfml-2/src/SFML/Window/OSX/SFContext.hpp:62: note:                 sf::priv::SFContext::SFContext(const sf::priv::SFContext&)
make[2]: *** [src/SFML/Window/CMakeFiles/sfml-window.dir/GlContext.cpp.o] Error 1
make[1]: *** [src/SFML/Window/CMakeFiles/sfml-window.dir/all] Error 2
make: *** [all] Error 2


My toolset: Xcode 4 with gcc 4.2.1.  I get the same error when building release or debug, 64-bit or 32-bit.

Any help would be appreciated.
Andy

8
Window / fullscreen and opengl
« on: April 04, 2011, 11:47:35 am »
@ZenonSeth: Did you get it working OK?  I am interested in how you did this as I am about to start using SFML to create a cross-platform game and the ability to toggle fullscreen in OpenGL is a big deal for me.

Pages: [1]