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 - Cuban-Pete

Pages: 1 2 3 [4] 5
46
Graphics / Load from resource file
« on: June 26, 2011, 02:43:05 pm »
I changed that and also tried LoadFromPixels() function, but it does not work. Or it crashes or it gives a very weird image.

What is the multiplatform-way to include files into the exe and later on call them in the program?

47
Graphics / Problems loading images when I split program into modules
« on: June 26, 2011, 10:15:10 am »
you are using the function LoadFromFile(), right?

so if it says LoadFromFile("b1.jpg"), that means that the image b1 is in the same folder as your .exe (the game binary).

lets say your exe is in the folder 'program', than if the function says LoadFromFile("images/1.jpg"), that means the image must be in 'program/images/' folder.

48
C / Problem with DLLs
« on: June 26, 2011, 01:14:02 am »
Let me take a look into my crystal ball... I see a videocard... an Ati videocard... wait there is more, I also see a 1.6...  :P

Sorry, for the bad joke. You probably have an ati videocard and are using version 1.6. To make it work you can do two things:

- static link sfml 1.6
- use sfml 2.0

49
Graphics / Load from resource file
« on: June 25, 2011, 11:15:44 am »
Hi,

I want to load an image from the resource files added in visual studio, but it does not work.

I have in .rc this:
Code: [Select]
FONT_NORMAL BITMAP  DISCARDABLE     "normal_1.bmp"

I have in resource.h this:
Code: [Select]
#define FONT_NORMAL       115

I have in the main.cpp this:
Code: [Select]
unsigned char Texture = FONT_NORMAL;

    sf::Image backgroundImage;
    if (!backgroundImage.LoadFromMemory(&Texture, sizeof(Texture) ) )
        return EXIT_FAILURE;


Not compile error, yet it fails to start the program with no error message.  :roll:

50
Graphics / Problems loading images when I split program into modules
« on: June 25, 2011, 10:21:22 am »
are you sure the image is really there? and by there I mean were your .exe is located and than in the map gameImages -> Pong

51
Graphics / Programs used to make 2d Game images? Using gimp...
« on: June 25, 2011, 10:19:55 am »
right click on your layer > add alpha layer > make selection > delete it. you will see checkerboard background -> that is transparent

also, you need to save the image as a png -> jpg or bmp does not have transparent background

52
General discussions / Re: Confused about static linking
« on: June 24, 2011, 08:22:14 am »
Quote from: "phoekz"
I've been trying something myself like messing with build options and adding SFML_STATIC on preprocessor, but I am still very confused how to get this work properly.



If you are using Visual Studio:
http://www.sfml-dev.org/forum/viewtopic.php?p=33608#33608

53
SFML website / Playing with forum style...
« on: June 23, 2011, 01:21:12 pm »
Was playing with the forum style, what do you think?

(this is only for on the main forum page)


54
SFML wiki / Added page about setIcon and make your own
« on: June 23, 2011, 01:19:39 pm »
Quote
Why does the tutorial go through the trouble of embedding an icon as an array of values when you can just use Image.GetPixelsPtr()?


I think what you mean is that the icon is as an .png or other format outside the the .exe. I prefer the icon to be "hidden" in the exe. It is not really hidden, they can always get it out, but this looks a bit more professional.

55
General discussions / Only getting 16 FPS?
« on: June 23, 2011, 07:51:17 am »
So it is now 15 frames per milisecond? That is way off the 60 FPS.... :roll:

15 FPmS -> 15000 FPS

60 FPS -> 0,06 FPmS

FPS -> divide by 1000 -> FPmS

56
SFML wiki / Added page about setIcon and make your own
« on: June 23, 2011, 07:41:31 am »
Sorry, I see you already changed it. Thanks.

Question two I see is already answered here: http://www.sfml-dev.org/forum/viewtopic.php?t=1453&sid=68331e3867ad1f26af1fc697439bf23e

Can I adjust the sfml code so that just for windows I can add another icon without breaking the sfml code when compiling on other operating system. Something with #Ifset windows ?

57
SFML wiki / Added page about setIcon and make your own
« on: June 22, 2011, 08:21:19 pm »
On this page: https://github.com/SFML/SFML/wiki/TutorialCreateAndUseSetIcon

Any comments, idea's. Please post them here. Thanks. :)

Oh, I do got myself two comments.

1) The example image and "green loop" are now hosted on my website. This website might not have the eternal life, so perhaps putting them on Github or sfml website might be better.  :)

2) Is it possible to set a 32x32 icon for the taskbar and a 16x16 for the titlebar? Now the 32x32 gets resized, this is not always wanted. For example when the 16x16 looks different as the 32x32.

58
SFML website / [Suggestion] Favicon
« on: June 22, 2011, 06:23:32 pm »
Thanks for using the new icon(s). I like the looks of it. If I'm allowed to nitpicking, I think the one without the 'sfml' text looks a bit easier on the eyes. The 'sfml' text is pretty busy for a 16x16 icon. On the other hand, now it is very clear for people when they bookmark the website what it is. :)

About the wiki page, I don't have an account yet. Perhaps I should make one, looks interesting that Github.

59
SFML website / [Suggestion] Favicon
« on: June 22, 2011, 06:06:54 pm »
Oh, in that case. Here is the code in code tags:

Code: [Select]
/* SFML green icon (32x32) for your programs titlebar and taskbar. Made by Cuban-Pete, 2011 */

static const struct {
  int   width;
  int   height;
  int   bytes_per_pixel;
  sf::Uint8 pixel_data[32 * 32 * 4 + 1];
} sfml_icon = {
  32, 32, 4,
  "\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377"
  "\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377"
  "\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377"
  "\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0"
  "\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377"
  "\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377"
  "\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377"
  "\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0"
  "\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377"
  "\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377"
  "\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377"
  "\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0"
  "\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377"
  "\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377"
  "\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377"
  "\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0"
  "\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377"
  "\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377"
  "\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377"
  "\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0"
  "\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377"
  "\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377"
  "\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377"
  "\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0"
  "\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377"
  "\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377"
  "\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377"
  "\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0"
  "\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377"
  "\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377"
  "\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377"
  "\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0"
  "\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377"
  "\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377"
  "\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377"
  "\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0"
  "\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377"
  "\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377"
  "\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377"
  "\0\377\377\377\0\377\377\377\0\377\377\377\0\24\261'\15\15\255';\14\260)"
  "j\15\257(\231\15\257(\240\14\257(\223\15\260(\207\14\256'{\16\256'n\16\260"
  "(G\0\252\0\3\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377"
  "\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377"
  "\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377"
  "\0\377\377\377\0\377\377\377\0\14\256#\26\15\260(t\15\256(\256\15\257(\335"
  "\15\257(\376\15\257(\377\15\257(\377\15\257(\377\15\257(\377\15\257(\377"
  "\15\257(\377\15\257(\377\15\257(\377\15\257(\377\15\256(\344\15\257(\206"
  "\15\256(&\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377"
  "\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377"
  "\0\377\377\377\0\377\377\377\0\377\377\377\0\14\257(@\16\257'\250\15\257"
  "(\371\15\257(\377\15\257(\377\15\257(\377\15\257(\371\16\257(\316\15\256"
  "(\236\16\256'n\16\260)^\16\257(l\15\257(y\15\257(\206\16\257)\226\15\257"
  ")\334\15\257(\377\15\257(\377\15\257(\377\16\260)\252\0\266$\7\377\377\377"
  "\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0"
  "\377\377\377\0\377\377\377\0\21\252\"\17\16\257)p\15\260(\327\15\257(\377"
  "\15\257(\377\15\257(\372\16\260)\252\16\257)]\13\261'.\0\2313\5\377\377\377"
  "\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0"
  "\377\377\377\0\377\377\377\0\0\377\0\1\14\261)>\15\257(\237\14\257(\365\15"
  "\257(\377\16\257'\274\0\252\0\3\377\377\377\0\377\377\377\0\377\377\377\0"
  "\377\377\377\0\377\377\377\0\377\377\377\0\13\260)D\15\256(\344\15\257(\377"
  "\15\257(\377\16\257'\342\14\257'|\13\252+\30\377\377\377\0\377\377\377\0"
  "\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377"
  "\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377"
  "\377\0\377\377\377\0\377\377\377\0\13\257+0\15\257(\351\15\257(\377\15\256"
  "(_\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0\0\237\40\10\14"
  "\257'\217\15\257(\376\15\257(\377\15\260(\307\15\261'N\0\252\0\3\377\377"
  "\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377"
  "\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0"
  "\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377"
  "\377\377\0\377\377\377\0\15\256(_\15\257(\377\14\257(\315\377\377\377\0\377"
  "\377\377\0\377\377\377\0\13\256&/\15\256(\324\15\257(\377\15\257(\372\15"
  "\260(z\0\252\0\3\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0"
  "\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377"
  "\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377"
  "\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377"
  "\0\14\252$\25\15\257(\377\15\257(\352\377\377\377\0\377\377\377\0\16\254"
  ")%\15\257(\362\15\257(\377\15\260(\327\17\257(3\377\377\377\0\377\377\377"
  "\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0"
  "\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377"
  "\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377"
  "\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0\17\257$#\15"
  "\257(\377\15\257(\354\377\377\377\0\0\266$\7\16\257'\317\15\257(\377\15\257"
  "(\262\0\252\34\11\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0"
  "\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377"
  "\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377"
  "\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377"
  "\0\377\377\377\0\377\377\377\0\377\377\377\0\15\260(z\15\257(\377\15\256"
  "(\253\377\377\377\0\16\257)\226\15\257(\377\15\257(\335\21\252\"\17\377\377"
  "\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377"
  "\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0"
  "\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377"
  "\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377"
  "\377\0\377\377\377\0\17\255)2\15\257(\370\15\257(\377\15\256'O\15\260(M\15"
  "\257(\377\15\257(\370\17\255)2\377\377\377\0\377\377\377\0\377\377\377\0"
  "\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377"
  "\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377"
  "\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377"
  "\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0\21\252\"\17\15"
  "\257(\335\15\257(\377\15\260(\232\377\377\377\0\15\256(\253\15\257(\377\15"
  "\260(z\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377"
  "\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0"
  "\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377"
  "\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377"
  "\377\0\377\377\377\0\377\377\377\0\0\252\34\11\15\257(\262\15\257(\377\15"
  "\257(\320\0\237\40\10\377\377\377\0\15\257(\354\15\257(\377\17\257$#\377"
  "\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377"
  "\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377"
  "\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0"
  "\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377"
  "\377\377\0\17\257(3\15\260(\327\15\257(\377\15\257(\362\16\254)%\377\377"
  "\377\0\377\377\377\0\15\257(\352\15\257(\377\14\252$\25\377\377\377\0\377"
  "\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377"
  "\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377"
  "\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0"
  "\377\377\377\0\377\377\377\0\377\377\377\0\0\252\0\3\15\260(z\15\257(\372"
  "\15\257(\377\15\256(\324\13\256&/\377\377\377\0\377\377\377\0\377\377\377"
  "\0\14\257(\315\15\257(\377\15\256(_\377\377\377\0\377\377\377\0\377\377\377"
  "\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0"
  "\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377"
  "\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0\0\252"
  "\0\3\15\261'N\15\260(\307\15\257(\377\15\257(\376\14\257'\217\0\237\40\10"
  "\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0\15\256(_\15\257"
  "(\377\15\257(\351\13\257+0\377\377\377\0\377\377\377\0\377\377\377\0\377"
  "\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377"
  "\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377"
  "\0\377\377\377\0\13\252+\30\14\257'|\16\257'\342\15\257(\377\15\257(\377"
  "\15\256(\344\13\260)D\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377"
  "\0\377\377\377\0\377\377\377\0\0\252\0\3\16\257'\274\15\257(\377\14\257("
  "\365\15\257(\237\14\261)>\0\377\0\1\377\377\377\0\377\377\377\0\377\377\377"
  "\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0"
  "\0\2313\5\13\261'.\16\257)]\16\260)\252\15\257(\372\15\257(\377\15\257(\377"
  "\15\260(\327\16\257)p\21\252\"\17\377\377\377\0\377\377\377\0\377\377\377"
  "\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0"
  "\0\266$\7\16\260)\252\15\257(\377\15\257(\377\15\257(\377\15\257)\334\16"
  "\257)\226\15\257(\206\15\257(y\16\257(l\16\260)^\16\256'n\15\256(\236\16"
  "\257(\316\15\257(\371\15\257(\377\15\257(\377\15\257(\377\15\257(\371\16"
  "\257'\250\14\257(@\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377"
  "\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0"
  "\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0\15\256(&\15\257"
  "(\206\15\256(\344\15\257(\377\15\257(\377\15\257(\377\15\257(\377\15\257"
  "(\377\15\257(\377\15\257(\377\15\257(\377\15\257(\377\15\257(\376\15\257"
  "(\335\15\256(\256\15\260(t\14\256#\26\377\377\377\0\377\377\377\0\377\377"
  "\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377"
  "\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0"
  "\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0\0\252\0\3\16\260"
  "(G\16\256'n\14\256'{\15\260(\207\14\257(\223\15\257(\240\15\257(\231\14\260"
  ")j\15\255';\24\261'\15\377\377\377\0\377\377\377\0\377\377\377\0\377\377"
  "\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377"
  "\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0"
  "\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377"
  "\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377"
  "\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377"
  "\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0"
  "\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377"
  "\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377"
  "\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377"
  "\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0"
  "\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377"
  "\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377"
  "\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377"
  "\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0"
  "\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377"
  "\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377"
  "\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377"
  "\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0"
  "\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377"
  "\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377"
  "\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377"
  "\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0"
  "\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377"
  "\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377"
  "\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377"
  "\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0"
  "\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377"
  "\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377"
  "\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377"
  "\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0"
  "\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377"
  "\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377"
  "\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377"
  "\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0"
  "\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377"
  "\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377"
  "\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377"
  "\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0"
  "\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0\377\377\377\0",
};
window.SetIcon(sfml_icon.width,  sfml_icon.height,  sfml_icon.pixel_data);

60
SFML website / [Suggestion] Favicon
« on: June 22, 2011, 06:05:15 pm »
Hehe, I got carried away a little, but just had to do it. :D

With the code below you can add an nice icon to your sfml program. It looks nice!  :P



The code:
http://lars.stonerocket.co.uk/images/rest/sfml_icon_code.txt


//edit:
I wanted to put the code directly into the code-tags, but when doing a preview the whole style of the website was gone. Pretty weird...

Pages: 1 2 3 [4] 5
anything