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

Pages: 1 [2] 3 4 ... 7
16
Thanks for the info! I will take a look at it more later on.

17
SFML projects / Re: SFGUI
« on: June 14, 2012, 11:45:15 am »
Quote
Nice to know another person who uses the library. We should have a guestbook-like feature somewhere but Tank is reluctant to make unneeded changes to the website.
It's generally hard to make me working on any website things, as websites are boring. ;)

Amen!!!

18
Graphics / Re: lnk 2001: external symbol with sf::Image::getSize()?
« on: June 11, 2012, 03:19:48 am »
Thanks for the heads up on the dynamic preprocessor flag....

I just went through the entire pain the ass of making a whole new project in VC++2010 and dumping the code and libs into that new project and it works now... WTF is up with that? Anyone else have issues like that before?

Thanks

19
Graphics / Re: lnk 2001: external symbol with sf::Image::getSize()?
« on: June 11, 2012, 12:06:06 am »
   glTexImage2D(GL_TEXTURE_CUBE_MAP_POSITIVE_X + i, 0, GL_RGBA8, image.getSize().x, image.getSize().y, 0, 
                   GL_RGBA, GL_UNSIGNED_BYTE, image.getPixelsPtr());

20
Graphics / Re: lnk 2001: external symbol with sf::Image::getSize()?
« on: June 10, 2012, 10:38:09 pm »
snapshot rc-28 version and I am using SFML_DYNAMIC

21
Graphics / lnk 2001: external symbol with sf::Image::getSize()?
« on: June 10, 2012, 10:06:52 pm »
1>NXResource.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: class sf::Vector2<unsigned int> __thiscall sf::Image::getSize(void)const " (__imp_?

not sure why I am getting this error? I am using the RC build....

I get this on a Release build but not Debug...

22
Window / Re: sf::Window and windowed mode screensize
« on: June 06, 2012, 12:18:11 am »
Fine. But your code is still incorrect. If you tried something else, show me what you did.

How so?

I have tried your send the sf::Window to the set mousePos() and doesn't make a difference and I have tried the getDesktopMode() with/without every combo... So unless you have a test case to verify your solution works it doesn't work when I in window mode and NOT maximized....  Pretty simple test case IMO...

Thanks!

Update!
I see that the desktop mode returns what the OS is running at... I am looking at it still but there maybe something with a logic bug on my side... if I find it I will report back. Thanks

23
Window / Re: sf::Window and windowed mode screensize
« on: June 05, 2012, 12:03:12 am »
Not sure if you re-read my post update, but yes your solution works only if the windowed(window) is maximized not reduced to some other size....

24
Window / Re: sf::Window and windowed mode screensize
« on: June 04, 2012, 12:07:40 pm »
void NX::Camera::MouseMovement(int x, int y)
{
        NX::App* p = NX::App::Get();
        //float screenCenterX = static_cast<float>(p->GetWindow()->getSize().x) * .5f;
        //float screenCenterY = static_cast<float>(p->GetWindow()->getSize().y) * .5f;
        float screenCenterX = static_cast<float>(sf::VideoMode::getDesktopMode().width)  * .5f;
        float screenCenterY = static_cast<float>(sf::VideoMode::getDesktopMode().height) * .5f;
        float xf = static_cast<float>(x);
        float yf = static_cast<float>(y);
        if(prevX != xf || prevY != yf)
        {                      
                float deltaX = xf - screenCenterX;
                float deltaY = yf - screenCenterY;
                xRot += deltaY;
                yRot += deltaX;
                MaxCameraRotationX();
                //sf::Mouse::setPosition(sf::Vector2i(static_cast<int>(screenCenterX),
//                                                                                      static_cast<int>(screenCenterY)));
                sf::Mouse::setPosition(sf::Vector2i(static_cast<int>(screenCenterX),
                                                                                        static_cast<int>(screenCenterY)),
                                                                                        p->GetWindow());
                prevX = xf;
                prevY = yf;
        }
}
 

This is for a RenderWindow if that matters....

BTW this only happens when the windowed mode screen is not maximized...

25
Window / Re: sf::Window and windowed mode screensize
« on: June 04, 2012, 11:51:51 am »
Sorry but can you be a little clearer, and give more details please?

You tried what, what was the result, and what did you expect?

I tried your code example and the cursor is off to the left in windowed mode.

Thanks!

26
Window / Re: sf::Window and windowed mode screensize
« on: June 04, 2012, 11:48:12 am »
Quote
I am trying to place the mouse cursor in the middle of the screen and in window mode this isn't centered when the user right clicks to go into a mouse move mode to rotate the view....
If you want to put the cursor in the middle of the screen (desktop), then you can:
- get the desktop size with sf::VideoMode::getDesktopMode()
- place the cursor relatively to the desktop with sf::Mouse::setPosition(p)

If you want to put the cursor in the middle of your window, then you can:
- get the window size with window.getSize()
- place the cursor relatively to the window with sf::Mouse::setPosition(p, window)

tried that no difference in window mode... still not in the center

27
Window / Re: sf::Window and windowed mode screensize
« on: June 04, 2012, 08:13:09 am »
I am trying to place the mouse cursor in the middle of the screen and in window mode this isn't centered when the user right clicks to go into a mouse move mode to rotate the view....

28
Window / sf::Window and windowed mode screensize
« on: June 04, 2012, 07:35:50 am »
I see getSize() is only for the render screen size... but how can I find out what the size of the window is, is one is running a windowed app vs. fullscreen?

Thanks!

29
General / Re: Bug with picking and window mode?
« on: May 29, 2012, 11:04:17 pm »
Probably isn't an SFML issue, but never the less, with FreeGLUT I tested same code again in a window vs. fullscreen it works fine, just not with SFML so far....

30
General / Re: Bug with picking and window mode?
« on: May 29, 2012, 08:07:56 am »
Well if I knew I would be more helpful... but the only difference between my code is just the flag for fullscreen to SFML... The values I must be getting from glReadPixels() or someother OpenGL function call doesn't like something...

Pages: 1 [2] 3 4 ... 7