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

Pages: 1 ... 127 128 [129]
1921
General / Dev-C++ Instalation
« on: November 12, 2008, 10:11:57 pm »
You do a mistake on point 3. You need to copy the SFML directory from include (in the SDK) to C:\Programs\Dev-Cpp\include , not extract all the SDK archive.

1923
Graphics / Fast collision detection ideas
« on: July 21, 2008, 07:25:33 pm »
Quote from: "[url=http://wiki.slembcke.net/main/published/Chipmunk
Features[/url]"]C99 implementation, no external dependencies
So I think it's ok.

1924
Graphics / Fast collision detection ideas
« on: July 21, 2008, 03:49:23 pm »
well, I don't know exactly. but I would make two "if" test : on the x coord and on the y one. Juste to see what is in the box of the view.

The best way to know one good method is to read physical engine. But witch one?

I cannot telle you more sorry.

1925
General / Linux - Debuglibs
« on: July 19, 2008, 07:50:56 pm »
because they have the same name. (debug/release)
only static's name change.

1926
Network / sf::packet and strings
« on: July 16, 2008, 03:22:06 pm »
He didn't make a new SDK each subversion, it's a lot of work.  :wink:

Here to get the svn : http://www.sfml-dev.org/wiki/en/tutorials/getsvnversion

1927
Network / sf::packet and strings
« on: July 16, 2008, 01:10:56 pm »
Quote from: "Laurent"

Quote
PS : in English, how do we say "builder" for a class (in programming)? Thanks.

Same as in french : constructor. "Destructeur" is also destructor ;)
Thanks

1928
Network / sf::packet and strings
« on: July 16, 2008, 11:57:41 am »
Here your string is empty, because you don't call thing::THING.

Perhaps you confuse thing::THING with thing::thing.  thing::thing is the builder of the class.

Try this :
Code: [Select]

#include <SFML/Network.hpp>
#include <string>

class thing{
public:
   std::string text;
   thing(void) : text("Hello World") { /* Nothing else */ }
};

int main(){
   sf::Packet P;
   thing T;
   P << T.text;

   return 0;
}


PS : in English, how do we say "builder" for a class (in programming)? Thanks.

1929
Network / sf::packet and strings
« on: July 16, 2008, 09:57:11 am »
And if you use sf::Packet::Append
 like this :

Code: [Select]
Append(C.Target_type.c_str(), C.Target_type.size() * sizeof(std::string::value_type));

does it work?
(You may use a char* to get again the data I think.)

Can you use your dbg to get more informations on the bad_alloc?

1930
Graphics / [Solved] Problems with collision detection
« on: July 16, 2008, 09:07:34 am »
Your Sprite::GetRectangle is not good for one thing : if you rotate your sprite, the FloatRect (no Int*) can be false.

In the case of a ball and a paddle, you can take the top/right/left/bottom of the paddle and the radius of the ball (and its center, and its new position, and play with them) to check the collision.

On the french wiki side there are some collisions code, you can look at them. (maybe the source is in English.)

1931
Window / [Solved] Stretch to fit screen
« on: July 04, 2008, 12:48:05 pm »
I never try, but I think the solution is in sf::View.

1932
General discussions / Benchmark : SDL vs SFML
« on: August 28, 2007, 05:15:49 pm »
With my PC :
Quote
Config
Mainboard socket AM2 : ASRock ALiveSata2-GLAN
CPU  socket AM2 : Athlon 64 X2 4200+
Memory : 2X 512 MB DDR2
Harddisk 3.5" S-ATAII 7200rpm
Graphic Card : ATI His Exaclibur Radeon X1650 256 MB
OS : XP Home


Code: [Select]
1/ Test : sprites
SDL  displayed 10 frames
SFML displayed 111 frames
--> SFML is 1110% faster than SD

2/ Test : alpha-blended sprites
SDL  displayed 6 frames
SFML displayed 111 frames
--> SFML is 1850% faster than SD

3/ Test : rotating sprites
SDL  displayed 3 frames
SFML displayed 111 frames
--> SFML is 3700% faster than SD

4/ Test : static text
SDL  displayed 915 frames
SFML displayed 3953 frames
--> SFML is 432% faster than SDL

5/ Test : dynamic text
SDL  displayed 718 frames
SFML displayed 1026 frames
--> SFML is 142% faster than SDL


Hiura

Pages: 1 ... 127 128 [129]
anything