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

Pages: [1]
1
Window / Pointer to sf::Window
« on: June 30, 2011, 12:41:00 pm »
Code: [Select]

class a
{

sf::Window* m_Window; // class a member

a()
{
   m_Window = new sf::Window; // I make new window object
   m_Window.Create(...); // and creating window
}


error: request for member 'Create' in System*)this)->System::m_Window', which is of non-class type 'sf::Window*'|

Why can't I work with pointers? When I divide project in multiple classes, I can't pass Window to them and read pressed keys.
Code: [Select]
m_Window.GetInput().IsKeyDown( sf::Key::Left )

2
General / SFML window is not responding and how to remove console
« on: June 25, 2011, 10:28:20 am »
Quote from: "OniLink10"
Quote from: "treiguts"
Yes I have ATI. What now? :(

And I managed to remove console through Project>Properties>Build Targets>Type. Thanks.
Use SFML2 instead. This has been fixed for SFML2.


Don't know what have been fixed, but it still ain't working. Linking to static libraries and I'm still getting "Not responding".

Tried with SFML 1.6 and SFML 2.0

Edit: I managed to fix problem. Appears that OS stops my window because there is no event handling.

3
General / SFML window is not responding and how to remove console
« on: June 23, 2011, 08:49:52 pm »
I did create SFML2. After compiling, there is only "lib" directory with sfml .dll files and libsfml .a files. There is no folder "include" like in 1.6 version.

This is supposed to be like this?

And do I have to replace old (1.6 version) .dll files with new .dll files?

4
General / SFML window is not responding and how to remove console
« on: June 23, 2011, 06:19:07 pm »
Yes I have ATI. What now? :(

And I managed to remove console through Project>Properties>Build Targets>Type. Thanks.

5
General / SFML window is not responding and how to remove console
« on: June 23, 2011, 05:33:28 pm »
I'm on Windows 7 and using Code Blocks.
Done this tutorial and it works.

This tutorial compiles, but after launching, window goes "Not responding". Also tried it on Visual Studio 2010 - same.

And how to remove that console that shows along with Window?

Pages: [1]
anything