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

Pages: [1]
1
C / Problem compiling CSFML in Ubuntu
« on: December 10, 2009, 05:52:40 pm »
I updated SFML2 from the SVN repository today.
Then I successfully compiled SFML, but when I tried to compile CSFML I got the following error:

Code: [Select]
g++ -o Clock.o -c Clock.cpp -W -Wall -pedantic -Wno-unused -I../.. -I../../../include -g -O2 -DNDEBUG -fPIC -DCSFML_EXPORTS
In file included from Clock.cpp:29:
../../SFML/System/ClockStruct.h:31:33: error: SFML/System/Clock.hpp: No such file or directory


The file isn't missing, so what's the problem here?
Did a path change in an update?

2
DotNet / Problem with diagonal lines
« on: November 14, 2009, 02:27:24 am »
Hi!

I'm using the latest SFML2-SVN with C# and encountered a problem when I tried to draw diagonal lines with Shape.Line().

It won't show the line when the thickness is set to 1.0f.
When I set it to 2.0f it's shown, but - like expected - double the size.

I tried to find a value that resembles 1.0f thickness, but it varies with the position and angle, so there is no safe way to get the right thickness.

If I for example want to draw a line from the upper left to the lower right corner of a 200x50 px rectangle, the line will look alright starting from a value of 1.03077f.


3
Graphics / SetFramerateLimit problem
« on: July 08, 2009, 04:44:22 pm »
Hi!
I recently found out about SFML, so I wanted to try it, but I already have a problem with my first test program.

I'm programming in C# using the .NET bindings.
The problem is, that the framerate limit doesn't behave as intended.

I'm trying to set the limit to 60 fps, but when I run the program, the frame rate stays only at 32 fps. But when I move another window over the SFML window, the framerate strangely rises up to 64 fps.

If I disable the limit and enable vertical sync, it perfectly stays at 60 fps, but I don't want to use vertical sync since it varies on different computers.

What I already did, was using SFML 1.5, SFML SVN and even SFML2 SVN in Windows with Visual Studio 2008 and in Ubuntu with monodevelop, but always with the same behavior.

I'm just using this simple code:
Code: [Select]

using System;
using SFML.Graphics;
using SFML.Window;

namespace SFML_Test
{
  class Program
  {
    static void App_Closed(object sender, EventArgs e)
    {
      ((RenderWindow)sender).Close();
    }

    static void Main(string[] args)
    {

      RenderWindow App = new RenderWindow(new VideoMode(640, 480, 32), "SFML_Test");
      App.Closed += new EventHandler(App_Closed);

      App.SetFramerateLimit(60);

      while (App.IsOpened())
      {      
        App.DispatchEvents();
        App.Display();
      }
    }
  }
}


I would really appreciate any ideas that could solve this problem, because I'd like to use SFML in the future instead of SDL for platform independent developing.

Pages: [1]