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

Pages: [1]
Window / Context Settings Help
« on: May 27, 2011, 01:36:42 am »
I'm having some trouble setting the Context Settings for my window. I'm using SFML 2.0.

Code: [Select]
#include <SFML/System.hpp>
#include <SFML/Window.hpp>
#include <SFML/Graphics.hpp>

#include <iostream>

int main(int argc, char** argv)
  sf::ContextSettings Settings;
  Settings.DepthBits         = 24; // Request a 24 bits depth buffer
  Settings.StencilBits       = 8;  // Request a 8 bits stencil buffer

  // Opens window and passes in my context settings
  sf::Window App(sf::VideoMode(400,400,32), "Test Window", sf::Style::Close, Settings);

  // Prints out the Depth Bits and Stencil Bits of the Window
  std::cout << "DepthBits: " << App.GetSettings().DepthBits << std::endl;
  std::cout << "StencilBits: " << App.GetSettings().StencilBits << std::endl;

  while ( App.IsOpened() )
    sf::Event Event;
    while ( App.PollEvent(Event) )
      if (Event.Type == sf::Event::Closed)

      if (Event.Type == sf::Event::KeyPressed)


  return 0;

When I run this, I get:

DepthBits: 16
StencilBits: 0

Does anyone know what is going on?

General / Linking to libsfml-system on linux
« on: April 26, 2011, 06:33:13 pm »
I installed SFML in my home directory, and am trying to compile the example from http://www.sfml-dev.org/tutorials/1.6/start-linux.php .

this is the command I use:

g++ first.cc -I/home/wasalski/SFML-1.6/include -L/home/wasalski/SFML-1.6/lib -lsfml-system  

as you can see, I including the header files and the library path

I get the following error message:

/usr/bin/ld: cannot find -lsfml-system
collect2: ld returned 1 exit status

but I have verified that libsfml-system.so.1.6 exists, and have tried to make a symlink to libsfml-system.so.1.6 called libsfml-system.so

wasalski@jamieson2:~/SFML-1.6/lib                                               $ ls
libsfml-audio.so.1.6     libsfml-network.so.1.6  libsfml-system.so.1.6
libsfml-graphics.so.1.6  libsfml-system.so       libsfml-window.so.1.6

Now I am out of ideas, can anyone tell me what is going on?

Pages: [1]