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

Pages: [1]
Window / Touch.hpp missing
« on: May 15, 2017, 12:43:21 pm »
Trying to build a gui for a Raspberry Pi project but I can't seem to find Touch.hpp. Compiling a program containing

#include <Touch.hpp>

throws the usual not found error, and looking in the SFML/Window folder reveals that Touch.hpp is not there. If I copy the header off the GitHub repo, what source files do I need and where do they need to go?

Original install was on ubuntu 14.04 via apt-get.

System / How to do something every x milliseconds
« on: June 30, 2016, 10:01:30 am »

I'm working on a project with SFML and am having a problem.

As the title suggests, I need to spawn a sprite every x milliseconds, where x is at least 100ms but variable (set at compile time) up to about 500ms. I'm using an if-else block, as I will sometimes (usually) need to delete an old sprite when a new one is created. My problem is that occasionally, the sprite won't be created. Some debug messaging confirms that the if branch has not been taken. I should note that by occasionally, I have determined about 1 missing sprite in every 500 or so. There is no obvious pattern to when one is missing.

My initial thought is that the problem is to do with the OS process scheduling and that the process might not always be running at the right time to trigger the branch. Performing an action at regular intervals can't be an uncommon problem though, so is there a better way of doing this?

I should mention that this if-else block is running in a separate thread, which loops over the block (for the moment) from the end of the initialisation routine in main() until the program exits.

I'd be grateful for any advice.

SFML website / Add a bookmark icon
« on: June 06, 2016, 01:09:33 am »

I've just started using SFML for a project and I'm finding my iPad a really useful tool for reading the documentation whilst I'm working. The problem is that adding the website to my home screen is causing a really ugly snapshot of the page to be used as an icon, when the SFML logo almost seems designed for a square icon. Since this could be done with a couple of lines of HTML and an image, could an icon please be added to the documentation home page for those of us who like to work in this way.

Thanks in advance!

Pages: [1]