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

Pages: [1] 2
1
General / Window Viewport - Multiple Questions
« on: December 13, 2011, 04:21:52 pm »
A view is a 2D rectangle of a scene which is plasted into a viewport, what you physically see (from what I understand anyways). I wrote an example: http://codepad.org/R9sAGQry (Yes, I know the Size class is redundant). It appears to draw correctly to the window, however resizing to smaller sizes seems to cause problems. Why is this?

Also, sf::Window::GetViewport returns IntRect where as sf::View::GetViewport returns FloatRect. Aren't they supposed to be the same thing?

2
C / sfIsAvailable()
« on: April 05, 2011, 06:00:47 pm »
So you did. Thank you sir. Good job. :D

3
C / sfIsAvailable()
« on: April 05, 2011, 04:33:54 pm »
CSFML will not compile due to a missing static function in sf::RenderImage::IsAvailable() in the latest clone from github.

4
C / Problem configuring csfml2 with cmake
« on: April 05, 2011, 03:58:46 pm »
Figured it out! Seems that I need to use static libraries, not dynamic which is why it couldn't find the libraries, etc. After building and moving them to SFMLDIR, all works fine.

5
C / Problem configuring csfml2 with cmake
« on: April 05, 2011, 03:49:03 pm »
Okay, I'm confused apparently. When you move to build CSFML with Cmake, even if you hand define all of the library variables (despite defining the library directory or SFMLDIR which both didn't work and returned that the libraries weren't found), cmake doesn't generate anything for me. Am I missing something?

6
C / Problem configuring csfml2 with cmake
« on: April 05, 2011, 03:34:17 pm »
FindSFML.cmake

7
C / Problem configuring csfml2 with cmake
« on: April 05, 2011, 02:30:07 pm »
Where would this file be located exactly?

I had to add each library name by hand. Not that big a deal but just saying. :/

8
General / SFML does not show windows on x64
« on: February 19, 2011, 10:07:07 am »
I just downloaded and compiled the SFML 2 libs and it's to no avail however I don't see this as an issue on the roadmap? Either way, I'm SOL until further ado. One down for shitty ATI drivers.

9
Window / Unable to spawn Window
« on: February 18, 2011, 08:34:02 pm »
Good stuff... thank you much.

10
Window / Unable to spawn Window
« on: February 18, 2011, 01:14:39 pm »
When I compile my app (MinGW 4.5.2 - Latest) it's fine. When I run it, it starts a command prompt, takes up 18 MB of RAM, and does absolutely nothing. This is using the direct CPP file from the tutorial page that simply made a Window object and started the main loop. Any idea as to what causes this?

11
General discussions / Strange math needed
« on: February 07, 2010, 04:45:00 pm »
Then it's a serious bug. Although, I've confirmed this happens on Windows and Mac, not just Windows. GetMode(0) does work now when I fetch the view of the window.

Also, from what I know, I was brought to believe the view was a section of the current graphed window, not the other way around. That makes no sense unless the function itself is returning an incorrect value. I'm sure I'm confusing this somewhere since I can't seem to get a clean explanation of the concept.

12
General discussions / Strange math needed
« on: February 07, 2010, 09:22:36 am »
I always figured that the view by default was equal to the size of the window unless changed explicitly Perhaps I was wrong in thinking this or is this a bug?

Seeing my little test game run perfectly how I want it to puts a smile on my face. I also noticed that once I placed your little fix in there, GetMode(0) works fine as well. Now I can continue making the game and progress a bit further into a much more complex design and style. This also taught me that I need to learn a bit more about Windows themselves to help my understanding a little bit. Thanks a lot. :D

13
General discussions / Strange math needed
« on: February 07, 2010, 08:53:51 am »
I noticed that using GetMode(0) caused this as well. I confirmed it on multiple platforms as well and it seems like a bug :/. Your solution works. Thank you "HOLY CRAP" much. Although this works, would you happen to be able to explain why this works for future reference? If not, that's fine.

14
Graphics / Strange Dimensions
« on: February 07, 2010, 06:53:53 am »
http://www.sfml-dev.org/forum/viewtopic.php?t=2138

Sorry for repost but I was hoping I could get some feedback soon and noticed that I posted in the incorrect forum. Basically this code here - http://pastebin.com/f5adcc5d2 - doesn't allow my simple paddle to move all the way the window after the while loop has started. I can't figure out what is causing it. I also find that resizing gives strange behaviour. Would anyone care to help me out?

15
General discussions / Strange math needed
« on: February 07, 2010, 06:44:44 am »
Further testing has helped narrow it down but I still fail to see the problem here:

I find that the paddle actually goes all the way to the bottom if I predefine a resolution but will not work if I use GetMode(0);. I also find that if I resize the window, the paddle will no longer match up to the bottom of the window which doesn't make sense since the bounds are equal to the size of the window minus the size of the paddle. Would anyone care to tell me what is happening? This is the third day I've been diagnosing this problem.

Pages: [1] 2