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.
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.
Features[/url]"]C99 implementation, no external dependenciesSo I think it's ok.
ThanksQuotePS : in English, how do we say "builder" for a class (in programming)? Thanks.
Same as in french : constructor. "Destructeur" is also destructor
#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;
}
Append(C.Target_type.c_str(), C.Target_type.size() * sizeof(std::string::value_type));
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
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