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.


Topics - Vit

Pages: [1]
1
General / SFML2 Examples don't start in Windows (MinGW)
« on: October 20, 2011, 12:12:39 pm »
I just got a new PC, and I'm trying to set up SFML2 on it. The OS is Windows 7 64-bit.
I've downloaded and compiled SFML2 and its examples successfully, using mingw32-make. However, the only example which works is the window example. I've tried pong, shader, and win32 - shader and win32 exit as soon as they start, and pong crashes with error 0xc000007b. My SFML project from Mac OS X also crashes similarly when compiled for Windows.

2
General / Application path
« on: September 23, 2011, 10:09:42 am »
What's the easiest way to get the application path? I'm storing my resources in subdirectories next to the executable, and have set up my IDE to set the working directory appropriately. However, when I run it normally, the working directory defaults to the root directory, which doesn't help.
I've had a look online, and it seems that the usual method to get the application path varies by platform; I guess I could use that, but it would be nice if SFML provided an easier way.
I'm using Mac OS X 10.6 and compiling with GCC, but I'd like to be able to get it to work on Windows and Linux too.

3
Window / gluPerspective/glOrtho not working?
« on: April 13, 2010, 05:59:19 pm »
I recently updated my project to use SFML 1.6 (Mac OS X).
I'm using direct OpenGL to render a 3D tile-based map (aka 2.5D), with either a perspective or orthographic projection.
However, I've found that once I use either glOrtho or gluPerspective, I can't switch to the other later (after I call app.Display). If I call glOrtho first, it gets stuck in orthographic; if I call gluPerspective, it's stuck in perspective.

It's most likely a fault in my code somewhere; however, it worked perfectly in 1.5, so I suspect it's something to do with SFML. If needed, I could try creating a minimal example.

Pages: [1]