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

Pages: [1] 2 3 ... 6
2
General discussions / Event.Key.Code to correct ASCI CODE
« on: August 23, 2010, 05:44:57 pm »
Terrific! Laurent just has lost all chances of being hired!

3
Graphics / partially transparent sprites
« on: August 20, 2010, 04:45:39 am »
class Image has this method:
Code: [Select]
void  CreateMaskFromColor (const Color &color, Uint8 alpha=0)
  Create a transparency mask from a specified colorkey.

Create a mask from white colored area for the image your sprite uses and this part of the sprite will become transparent.

4
General / SFML x64 cause QT to stall... window.lib compatibility issue
« on: August 13, 2010, 10:40:27 am »
Quote
Quick question: when A.lib is compiled using lib.B… is it possible to link lib.A without lib.b?

Yes. This is just what you can see in sfml-graphics-s.lib. It is linked to freetype.lib. Thus you need not link to freetype.lib in your own project that uses sfml-graphics-s.lib. [If I understood your question right.]

5
General / Release mode stand alone build?
« on: August 10, 2010, 09:12:48 am »
Quote
my linkers for release mode are:
sfml-system-s.lib sfml-graphics-s.lib sfml-window-s.lib sfml-audio-s.lib
and my preprocessor definitions are:
SFML-DYNAMIC;WIN32;NDEBUG;_CONSOLE


It seems that you are linking to static libraries but have SFML-DYNAMIC defined.

6
General / Making a standalone program that uses SFML?
« on: July 28, 2010, 04:01:54 pm »
I meant closed source applications.

7
General / Making a standalone program that uses SFML?
« on: July 28, 2010, 08:24:51 am »
Some of SFML dependencies have licenses (LGPL) that dont permit static linking. Thus you have to include those dlls in your distribution at least once anyway.

8
Window / Window init problem
« on: July 24, 2010, 07:34:42 am »
1. Have a look at tutorials how to create a render window. If you want to create a window in the heap use
Code: [Select]
sf::RenderWindow* win = new sf::RenderWindow();
....
....
delete win;

2. You should create a RenderWindow object instead of Window one, as Window does not have Draw method at all and you won't be able to render game objects.

9
General / Errors running my first program
« on: July 17, 2010, 05:10:17 pm »
Doing this works while you are building a program. For the executable to be able to run you have to place all dependency .dlls in the same folder as the .exe file, as Laurent wrote.

10
General / Slow moving of sprite with background
« on: June 08, 2010, 05:54:36 pm »
While your app is running, something else i.e. some app or sevice that is running simultaneously such as virus scanner or alike might be eating the CPU's clocks. It seems that nothing else could slow the PC with such a configuration unless it has not enough RAM. BTW you did not mention what build you are running release or debug.

11
SFML projects / sfengine - a Lua game engine
« on: June 04, 2010, 05:04:17 am »
Looking through the code repository gives the answer: Lokk uses luabind. :)

12
General / Collision Detection
« on: June 02, 2010, 08:32:47 am »
Besides Box2d there is a more lightweight and slightly faster 2d physics library Chipmunk.

13
Graphics / Random function updated to Co-ordinates
« on: June 01, 2010, 09:16:37 am »
If you create a sprite dynamically:
Code: [Select]

// Create...
sf::Sprite* sprite = new sf::Sprite();

// Use...
....

// Destroy...
delete sprite;


If you create a sprite statically (on the stack):
Quote
sf::Sprite sprite;

it will be destroyed automatically when it goes out of scope. i.e. if sprite is a local variable inside some function, it goes out of scope and dies when the function returns.

14
General / What is wrong?
« on: May 07, 2010, 09:26:16 am »
Just a hypothesis... It seems that your app crashes somewhere around loading/unloading of the OpenGL mini-driver library mcd32.dll. Maybe your laptop's graphic driver is too dated?

15
General / Using Eclipse
« on: May 01, 2010, 09:46:17 am »
Quote
Netbeans always worked fine for me

Seconded.  :)
I used to use netbeans while developing J2ME games and I liked it much more than eclipse and eventually got rid of eclipse at all.

Pages: [1] 2 3 ... 6