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

Pages: [1]
1
Well, SFML 1.6 is the latest stable release, so I doubt there is a bug. SFML 2 is in beta state, so it probably has more bugs than 1.6 does.

It can be a possibility though, perhaps Laurent knows something about it.

Cheers,
Kosmos.

2
Hello,

I'm making a small game; using SFML 1.6. I've ran this program many times, and for some reason, when I do now, (on the same machine) I get a segmentation fault. I decided to use debugging symbols and use the gdb debugger to get a more detailed segmentation fault message, and I get a really weird one.

Here is the code:
//...
std::cout<<"Starting video..."<<std::endl;
  App.Create(sf::VideoMode(SCR_WIDTH,SCR_HEIGHT,32),"Qubit");
  std::cout<<"Video started"<<std::endl;
  App.SetFramerateLimit(FPS);
//...
 

Here is the output of the gdb debugger:
(gdb) run
Starting program: /home/samuel/programming/cpp/qubit/qubit
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/i386-linux-gnu/libthread_db.so.1".
Running Qubit...

Starting video...

Program received signal SIGSEGV, Segmentation fault.
__GI_getenv (name=0xb78953b2 "TEL_NO_BLIT") at getenv.c:90
90      getenv.c: No such file or directory.
(gdb)
 

I think the error is in the App.Create(sf::VideoMode(SCR_WIDTH,SCR_HEIGHT,32),"Qubit"); line, as "Video started" should have been printed if everything went well, and it didn't print.

SCR_WIDTH is 1024, and SCR_HEIGHT is 768, which is perfectly fine, my screen is 1366x768.
My operating system is Ubuntu Linux 12.04 (precise) 32-bit; Kernel version 3.2.0-31-generic-pae.

Can you guys tell me what the hell is this error? and why is there a segmentation fault?

Cheers,
Kosmos.

3
General / Lock window resize, and software resize
« on: December 23, 2012, 01:33:28 pm »
Hello,

I want to lock the user from resizing the window, and do the resizing from the code.

Changing the resolution with a videomode will just make the window have more/less pixels which I don't want.

What I want to do is scale it from my program, instead of automatically when resizing the window with the mouse.

Thanks,
Kosmos.

4
General / Re: Window and Graphics resize
« on: December 16, 2012, 09:59:21 pm »
Great, thank you very much.

5
General / Re: Does sfml support.
« on: December 16, 2012, 04:45:28 pm »
Yes :)

6
General / Re: Does sfml support.
« on: December 16, 2012, 04:35:27 pm »
It depends.

If you mean if you can create 3d graphics with it, you can't.
But you can use OpenGL with SFML very nicely.

Cheers,
Sam.

7
General / Window and Graphics resize
« on: December 16, 2012, 02:29:51 pm »
Hello,

I was wondering. I'm going to start a new project, and I have a question regarding the SFML library:

If I make a window 800x600x32 for example, and the user of the application resized the window, can I make the graphics resize as well?

I know it is possible with OpenGL, but I don't know the latter.

Cheers,
Kosmos.

Pages: [1]
anything