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

Pages: [1]
1
Feature requests / Flood fill
« on: August 23, 2010, 02:15:40 am »
Topic:

http://www.sfml-dev.org/forum/viewtopic.php?t=3037

Is support for this planned for SFML 2?

2
General discussions / Blocking
« on: August 23, 2010, 01:52:56 am »
Do we have the ability to put our program into the blocked state? This would be useful for non-game applications (so they don't suck up CPU).

IIRC we can call sleep( time ) but that's not really how it's supposed to work. It's not *really* getting blocked, it's just activating a timer to sleep every so many seconds (it's only partially blocked). It should stay in the blocked state until it has an event to handle.

If this isn't available in SFML stable then can it be in the next release?

3
Feature requests / Text Caret
« on: July 29, 2010, 10:04:46 pm »
I'm trying to make a text box class and the caret typically blinks... but the blinking rate is set by the OS. Not that big of a deal but would be good to use already defined settings rather than making it up.

4
General / Drawing only part of a string?
« on: July 01, 2010, 05:04:16 am »
What would be the best way to draw only part of a string? Basically I want to draw whatever part of a string fits into a box.

I'm guessing I could use a sf::View to clip the string within a region on the screen. Anyone have example code? I'm writing from scratch atm.

EDIT

So far I have:

Code: [Select]
   String draw_text( text );
    const View clip_text( FloatRect( x, y, x + width, y + height ) );
    window.SetView( clip_text );
    window.Draw( draw_text );
    window.SetView( window.GetDefaultView() );

But this isn't the type of view I was thinking about (brief description: it "looks" like it's "scaling" the image). Simply modifying the string length doesn't cut it (the string could span multiple lines of variable width). I need to use a clipping function.

5
General discussions / Boost C++ GIL
« on: June 29, 2010, 04:39:57 am »
Have you considered using GIL for SFML2?

6
General discussions / SFML2 API concerns
« on: June 24, 2010, 01:24:02 am »
I noticed while looking at the current API const-correctness is not followed. As the current API can't really be changed to fix this (without potentially causing problems) Please make SFML2 const-correct when it's released. Examples:

String (char ansiChar)
String (const char *ansiString)
String (const wchar_t *wideString)

Should be:

String (const char ansiChar)
String (const char * const ansiString)
String (const wchar_t * const wideString)

For more information: http://www.parashift.com/c++-faq-lite/const-correctness.html#faq-18.3

Also:

String (const Uint32 *utf32String)

I'm wondering what the purpose of Uint32 is since there's already a uint32_t defined in the standard library (stdint.h), http://en.wikipedia.org/wiki/Stdint.h

7
General / Make install did not install correctly
« on: June 18, 2010, 03:43:09 pm »
I ran:

sudo make install

And did not get any errors. I compiled this tutorial: http://www.sfml-dev.org/tutorials/1.6/window-events.php

I tried running it and I get " error while loading shared libraries: libsfml-window.so.1.6: cannot open shared object file: No such file or directory"

What should I do? I see the library files in the SFML-1.6 unzipped lib folder but I'm assuming those files aren't compiled for my system (Fedora 13 x64).

EDIT:

Nevermind, I found where they were installed with:

sudo find -mount -iname *sfml*

Which spits out:

./usr/local/include/SFML
./usr/local/lib/libsfml-audio.so.1.6
./usr/local/lib/libsfml-network.so
./usr/local/lib/libsfml-network.so.1.6
./usr/local/lib/libsfml-system.so
./usr/local/lib/libsfml-graphics.so
./usr/local/lib/libsfml-graphics.so.1.6
./usr/local/lib/libsfml-window.so.1.6
./usr/local/lib/libsfml-system.so.1.6
./usr/local/lib/libsfml-audio.so
./usr/local/lib/libsfml-window.so

I don't understand why they installed there. How should I proceed? It seems the make install command did not work correctly, it is supposed to install them into /user/lib/ as stated here: http://www.sfml-dev.org/tutorials/1.6/start-linux.php

At the moment I'm going to set DESTDIR=/usr/lib (which is supposed to be the default) after I uninstall the current "installation".

EDIT2:

After some more searching apparently I need to edit system settings to search in /usr/local when loading libraries. Why wasn't it installed into the default DESTDIR?

Pages: [1]
anything