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

Pages: [1]
1
Window / Re: Get User's Resolution
« on: April 08, 2016, 02:07:57 pm »
Ahh, thanks for that. It's working as intended ;D

2
Window / Re: Get User's Resolution
« on: April 08, 2016, 10:25:05 am »
Quote
Despite you saving the width twice this should work

Lol, I've rewritten the line so many times, just a copy + paste error :)

1>c:\users\kyle\documents\visual studio 2010\projects\turn based game\turn based game\turn based game.cpp(17): error C2143: syntax error : missing ')' before '.'
1>c:\users\kyle\documents\visual studio 2010\projects\turn based game\turn based game\turn based game.cpp(17): error C3484: syntax error: expected '->' before the return type
1>c:\users\kyle\documents\visual studio 2010\projects\turn based game\turn based game\turn based game.cpp(17): error C2061: syntax error : identifier 'getDesktopMode'
1>c:\users\kyle\documents\visual studio 2010\projects\turn based game\turn based game\turn based game.cpp(113): fatal error C1506: unrecoverable block scoping error

These errors resolve resolve if I include the #include <VideoMode.hpp>

but the include directive itself gives off an error. I've also tried moving the getDesktopResolution before and after the window is created. It makes no difference.

3
Window / Get User's Resolution
« on: April 08, 2016, 08:55:51 am »
So I want to save the User's resolution into a Vector2i object.

sf::Vector2i screenDimensionsTest(sf::VideoMode.getDesktopMode().width,
sf::VideoMode.getDesktopMode().width);

No errors show, but I get errors upon compiling my code. I'm new to this stuff, could somebody explain? Am I going about this the right way?

Pages: [1]