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 - Joshua Flynn

Pages: 1 [2] 3 4 ... 9
16
General / Re: Static Link Errors
« on: November 23, 2013, 03:45:34 pm »
Looking at the MinGW directory, I would assume it's 4.4, but SJLJ and DW2 are not compatible as well.

The SJLJ and DW2 incompatibility is primarily the main problem here. But I can't determine how to determine what the compiler is using.

Why would you think that? SFML 1.6 doesn't have the nice CMake build system, but it has a simple makefile and if you get MSYS as well, you can easily build it.

Because 1.6, per Laurent's statement cited in the other post, was built on 4.4. So it's easier if I simply 'tack on' a 4.4 compiler that uses DW2 (per the specification also noted in Laurent's post in the other thread, linked to, other post) into Code::Blocks for the short duration of this task (which is simply getting an SFML program to work on a 64 bit machine and the 1.6 DLLs are 32 bit which means I have to static link the executable), rather than ripping and changing a massive amount of libraries only to break some fundamental code and require maybe months of debugging, and I have less than a week.

So, newer (appeal to novelty is a fallacy, by the way), is not better. If 4.4.0 does the job, then it does the job. Any newer version would probably introduce a new set of errors: we only want to solve the current problem, not upgrade the system. Upgrading the system offers benefits I don't actually need at this stage.

Finding the newest 1.6 compatible commit in git is a tiny bit of extra work though.
It has its separate branch.

I operate a custom 1.6 SFML build. So Mohammed must go to the mountain.

(Seems to be the solution is quite apparent: DW2 GCC 4.4.0 compiler. I don't see why I have to reinstall and alter an entire codebase just to avoid adding on 'one more' compiler to the many I have. I won't be replacing 4.4.1, just adding 4.4.0 to the list of options in Code::Blocks).


I won't make the jump to the newest SFML library until this laptop dies or goes bust: a lot of the codebase is built for windows on a custom (network tweaked) 1.6 SFML build, and I'm planning to 'jump' to Lubuntu, which will mean a lot of the codebase will be rendered void. So rather than change up now, I'm planning to 'jump' fully to Lubuntu, start up the newest SFML library and then go through the complicated setup and salvage process.


So, away from my design and configuration decisions: how do I tell which of these 4.4.0 compilers are windows compatible and use DW2?:
http://sourceforge.net/projects/mingw/files/MinGW/Base/gcc/Version4/Previous%20Release%20gcc-4.4.0/

17
General / Re: Static Link Errors
« on: November 23, 2013, 02:56:59 pm »
Can I ask again what compiler you are using?

Version 4.4.1.

The libraries need to be built with the same compiler as you're compiling your poroject with.

Libraries were the pre-built ones SFML supplies for windows version.

Also, there's no issue with the .DLLs or dynamic linking, just the statics.

The errors you posted had some version in the path that SFML does not provide binaries for, thus if you didn't compile SFML yourself it will never work.

I'm not sure how separate compilation of SFML factors in with statically linked libraries?

Given the outdated version I suggest to get one from the MinGw Builds project on sourceforge. If you want a matching compiler for the provided downloads, you'll need either the older TDM compiler (NOT 4.8.x) or the older official MinGW compiler (NOT 4.8.x) depending which SFML package you downloaded.

Well, I'm operating 1.6 and according to the forum pages I linked, 1.6 needs 4.4 (but I don't know if that's 4.4.0 or 4.4.1: I'm assuming 4.4.0). Alternately, it could be because I have a SJLJ version and not a DW2 version.

I think a newer version of GCC will just make the problem worse.

18
Network / Re: Http error 1001 in multithreaded application
« on: November 23, 2013, 02:47:40 pm »
1001 is an internal SFML error code (it's not valid HTTP error code).

You might be having a similar problem I had with SFML HTTP code in that if a connection doesn't exist/website down/internet connection down on a blocking or non-blocking socket, the program can either freeze (blocking) or have trouble connecting. I had to modify SFML 1.6's HTTP code so it returned true if a connection already existed on a non-blocking socket (SFML 1.6 classifies all WSAERROR as errors: the name is misleading, though, because one such 'error' is 'already connected': WSAEISCONN).

I don't know if it's been fixed for 2.0 and 2.1, but if you're running 1.6 with non-blocking sockets (especially if you're using threaded processes) you'll run into problems.

Also, be aware that winsockets (I'm assuming it's window sockets, if not, disregard this), on the lowest level, can have a 'maximum number of connections' (I can't tell you much about it off the top of my head) that can operate at any one time, and the setting has to be changed on the lowest level to allow it to handle more. You could also be inadvertently triggering this but it'd be hard to say. Only throwing it out there in-case it helps.


19
General / Re: How to make a button in SFML?
« on: November 23, 2013, 02:32:55 pm »
Error checking is significantly easier if you encapsulate your code (preferably avoiding Russian doll ideograms).

Two ways to approach the problem, which depends on your preference: C programming style (stand alone, independent functions) or C++ (class based functions).

Something like:

Code: [Select]
class Button
{
    public:
    sf::IntRect Box; //This could easily be protected or private
   
    const bool IsClicked(const sf::Mouse Mouse, const float X, const float Y)
    {
        //We check if it's clicked first because a direct value comparison is less resource intensive than an area check
        if(!Mouse.isButtonPressed(sf::Mouse::Left)){return false;}
        //It's pressed! Let's check it's actually in the box:
        return Box.contains(X,Y);
    }
   
};

That's just an idea. You could alternately make it so the function takes both the window and mouse as an argument and does all the leg work of figuring out if the mouse has clicked on it, itself (although it'd be highly inefficient for, say, 80+ buttons to ALL check the button has been clicked, and be easier to just use rect's 'contains' in a for() loop function inside a clicked button if statement).

Don't worry about efficiency at this stage, just get the idea working then prune and improve it afterwards.

20
General / Re: Static Link Errors
« on: November 23, 2013, 02:16:16 pm »
Little closer to the solution: I need to acquire a DW2 type GCC 4.4 compiler for Windows.

http://en.sfml-dev.org/forums/index.php?topic=3008.0
http://stackoverflow.com/questions/5604183/adding-compiler-to-codeblocks

Unfortunately, the GCC site is perhaps classically difficult to navigate, and I probably couldn't tell which version is a windows compatible DW2 GCC 4.4 compiler.

21
General / Re: Static Link Errors
« on: November 23, 2013, 02:05:39 pm »
please add these commands in project settings in the linker section in the linker commands:
Code: [Select]
-static-libgcc
-static-libstdc++
-mthreads
-msse
-mwindows
-Wl,--allow-multiple-definition
-Wl,--enable-runtime-pseudo-reloc
and another thing that i have to say that is you have to link with the Windows libraries and OpenGL and all the libraries that your game or application is depend's on

Added, unwind resume errors still occur. Not sure in what order of precedence they have to be in regards to SFML linker settings.

22
General / Re: Static Link Errors
« on: November 23, 2013, 02:02:17 pm »
please add these commands in project settings in the linker section in the linker commands:
Code: [Select]
-static-libgcc
-static-libstdc++
-mthreads
-msse
-mwindows
-Wl,--allow-multiple-definition
-Wl,--enable-runtime-pseudo-reloc
and another thing that i have to say that is you have to link with the Windows libraries and OpenGL and all the libraries that your game or application is depend's on

I'll add these in, and see if it works, thanks.

23
General / Re: Static Link Errors
« on: November 23, 2013, 02:01:15 pm »
Hmm I guess it can be quite hard to select the right tab to paste the output from. I don't really know how one can oversee the 3rd picture in that post short of not bothering looking at it in the first place. Your output is clearly from the "Build messages" tab which is why you see the "||" and "|" characters everywhere whereas the post instructs you to paste from the "Build log" tab. I have my reasons for posting such a reply, and please, don't try to get yourself out of this situation by attacking me. All the evidence clearly shows what is already obvious. Like I said, if you don't bother following the very simple instructions which even include pictures with clearly marked red boxes, I don't know how else to help you, short of coming to your computer and doing it in person.

Wanted to apologise for snapping at you.

Figured where to look and did most of the legwork. Code::Blocks was applying two project settings (master and local: doesn't help there's no overt distinction between the two), traced back and modified the master settings, removed local.

Setting the SFML libraries to static now 'just' results in numerous unwind resume errors:

Code: [Select]
C:\Users\User\Desktop\C++ Projects\RND CV Project\FlagOps.h||In function 'const bool Push8Bits(uint8_t&, uint8_t, uint8_t, uint8_t)':|
C:\Users\User\Desktop\C++ Projects\RND CV Project\FlagOps.h|107|warning: suggest parentheses around '-' inside '<<'|
c:\program files\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\..\..\..\libsfml-audio-s.a(Music.o):Music.cpp|| undefined reference to `_Unwind_Resume'|
c:\program files\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\..\..\..\libsfml-audio-s.a(Music.o):Music.cpp|| undefined reference to `_Unwind_Resume'|
c:\program files\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\..\..\..\libsfml-audio-s.a(Music.o):Music.cpp|| undefined reference to `_Unwind_Resume'|
c:\program files\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\..\..\..\libsfml-audio-s.a(Music.o):Music.cpp|| undefined reference to `_Unwind_Resume'|
c:\program files\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\..\..\..\libsfml-audio-s.a(Music.o):Music.cpp|| undefined reference to `_Unwind_Resume'|
c:\program files\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\..\..\..\libsfml-audio-s.a(Music.o):Music.cpp:(.eh_frame+0x12)||undefined reference to `__gxx_personality_v0'|
c:\program files\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\..\..\..\libsfml-audio-s.a(Sound.o):Sound.cpp|| undefined reference to `_Unwind_Resume'|
c:\program files\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\..\..\..\libsfml-audio-s.a(Sound.o):Sound.cpp|| undefined reference to `_Unwind_Resume'|
c:\program files\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\..\..\..\libsfml-audio-s.a(Sound.o):Sound.cpp|| undefined reference to `_Unwind_Resume'|
c:\program files\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\..\..\..\libsfml-audio-s.a(Sound.o):Sound.cpp|| undefined reference to `_Unwind_Resume'|
c:\program files\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\..\..\..\libsfml-audio-s.a(Sound.o):Sound.cpp|| undefined reference to `_Unwind_Resume'|
c:\program files\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\..\..\..\libsfml-audio-s.a(Sound.o):Sound.cpp|| more undefined references to `_Unwind_Resume' follow|
c:\program files\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\..\..\..\libsfml-audio-s.a(Sound.o):Sound.cpp:(.eh_frame+0x12)||undefined reference to `__gxx_personality_v0'|
c:\program files\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\..\..\..\libsfml-audio-s.a(SoundStream.o):SoundStream.cpp|| undefined reference to `_Unwind_Resume'|
c:\program files\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\..\..\..\libsfml-audio-s.a(SoundStream.o):SoundStream.cpp|| undefined reference to `_Unwind_Resume'|
c:\program files\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\..\..\..\libsfml-audio-s.a(SoundStream.o):SoundStream.cpp|| undefined reference to `_Unwind_Resume'|
c:\program files\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\..\..\..\libsfml-audio-s.a(SoundStream.o):SoundStream.cpp|| undefined reference to `_Unwind_Resume'|
c:\program files\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\..\..\..\libsfml-audio-s.a(SoundStream.o):SoundStream.cpp|| undefined reference to `_Unwind_Resume'|
c:\program files\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\..\..\..\libsfml-audio-s.a(SoundStream.o):SoundStream.cpp:(.eh_frame+0x12)||undefined reference to `__gxx_personality_v0'|
c:\program files\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\..\..\..\libsfml-audio-s.a(SoundFile.o):SoundFile.cpp|| undefined reference to `_Unwind_Resume'|
c:\program files\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\..\..\..\libsfml-audio-s.a(SoundFile.o):SoundFile.cpp|| undefined reference to `_Unwind_Resume'|
c:\program files\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\..\..\..\libsfml-audio-s.a(SoundFile.o):SoundFile.cpp|| undefined reference to `_Unwind_Resume'|
c:\program files\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\..\..\..\libsfml-audio-s.a(SoundFile.o):SoundFile.cpp|| undefined reference to `_Unwind_Resume'|
c:\program files\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\..\..\..\libsfml-audio-s.a(SoundFile.o):SoundFile.cpp|| undefined reference to `_Unwind_Resume'|
c:\program files\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\..\..\..\libsfml-audio-s.a(SoundFile.o):SoundFile.cpp|| more undefined references to `_Unwind_Resume' follow|
c:\program files\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\..\..\..\libsfml-audio-s.a(SoundFile.o):SoundFile.cpp:(.eh_frame+0x12)||undefined reference to `__gxx_personality_v0'|
c:\program files\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\..\..\..\libsfml-audio-s.a(SoundBuffer.o):SoundBuffer.cpp|| undefined reference to `_Unwind_Resume'|
c:\program files\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\..\..\..\libsfml-audio-s.a(SoundBuffer.o):SoundBuffer.cpp|| undefined reference to `_Unwind_Resume'|
c:\program files\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\..\..\..\libsfml-audio-s.a(SoundBuffer.o):SoundBuffer.cpp|| undefined reference to `_Unwind_Resume'|
c:\program files\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\..\..\..\libsfml-audio-s.a(SoundBuffer.o):SoundBuffer.cpp|| undefined reference to `_Unwind_Resume'|
c:\program files\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\..\..\..\libsfml-audio-s.a(SoundBuffer.o):SoundBuffer.cpp|| undefined reference to `_Unwind_Resume'|
c:\program files\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\..\..\..\libsfml-audio-s.a(SoundBuffer.o):SoundBuffer.cpp|| more undefined references to `_Unwind_Resume' follow|
c:\program files\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\..\..\..\libsfml-audio-s.a(SoundBuffer.o):SoundBuffer.cpp:(.eh_frame+0x12)||undefined reference to `__gxx_personality_v0'|
c:\program files\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\..\..\..\libsfml-audio-s.a(AudioResource.o):AudioResource.cpp:(.eh_frame+0x11)||undefined reference to `__gxx_personality_v0'|
c:\program files\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\..\..\..\libsfml-audio-s.a(AudioDevice.o):AudioDevice.cpp|| undefined reference to `_Unwind_Resume'|
c:\program files\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\..\..\..\libsfml-audio-s.a(AudioDevice.o):AudioDevice.cpp|| undefined reference to `_Unwind_Resume'|
c:\program files\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\..\..\..\libsfml-audio-s.a(AudioDevice.o):AudioDevice.cpp:(.eh_frame+0x12)||undefined reference to `__gxx_personality_v0'|
c:\program files\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\..\..\..\libsfml-audio-s.a(SoundFileOgg.o):SoundFileOgg.cpp|| undefined reference to `_Unwind_Resume'|
c:\program files\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\..\..\..\libsfml-audio-s.a(SoundFileOgg.o):SoundFileOgg.cpp|| undefined reference to `_Unwind_Resume'|
c:\program files\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\..\..\..\libsfml-audio-s.a(SoundFileOgg.o):SoundFileOgg.cpp|| undefined reference to `_Unwind_Resume'|
c:\program files\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\..\..\..\libsfml-audio-s.a(SoundFileOgg.o):SoundFileOgg.cpp:(.eh_frame+0x12)||undefined reference to `__gxx_personality_v0'|
c:\program files\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\..\..\..\libsfml-audio-s.a(SoundFileDefault.o):SoundFileDefault.cpp|| undefined reference to `_Unwind_Resume'|
c:\program files\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\..\..\..\libsfml-audio-s.a(SoundFileDefault.o):SoundFileDefault.cpp|| undefined reference to `_Unwind_Resume'|
c:\program files\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\..\..\..\libsfml-audio-s.a(SoundFileDefault.o):SoundFileDefault.cpp|| undefined reference to `_Unwind_Resume'|
c:\program files\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\..\..\..\libsfml-audio-s.a(SoundFileDefault.o):SoundFileDefault.cpp|| undefined reference to `_Unwind_Resume'|
c:\program files\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\..\..\..\libsfml-audio-s.a(SoundFileDefault.o):SoundFileDefault.cpp:(.eh_frame+0x12)||undefined reference to `__gxx_personality_v0'|
c:\program files\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\..\..\..\libsfml-audio-s.a(Listener.o):Listener.cpp:(.eh_frame+0x11)||undefined reference to `__gxx_personality_v0'|
c:\program files\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\..\..\..\libsfml-graphics-s.a(Sprite.o):Sprite.cpp|| undefined reference to `_Unwind_Resume'|
c:\program files\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\..\..\..\libsfml-graphics-s.a(Sprite.o):Sprite.cpp|| undefined reference to `_Unwind_Resume'|
c:\program files\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\..\..\..\libsfml-graphics-s.a(Sprite.o):Sprite.cpp:(.text$_ZN2sf6SpriteD0Ev[sf::Sprite::~Sprite()]+0x15d)||undefined reference to `_Unwind_Resume'|
||More errors follow but not being shown.|
||Edit the max errors limit in compiler options...|
||=== Build finished: 50 errors, 1 warnings ===|

Searches on unwind resume don't produce anything particularly insightful (something about 'Long Jump Short Jump' and 'Dwarf 2' error handling, which I suspect isn't the case here). Curiously, setting specific SFML libraries to static doesn't necessarily resume in unwind resume errors (it seems I can set all except sfml-audio-s before it throws up errors). However, part of the errors clearly include Sprite and Image errors so I don't understand how sfml-audio could affect that?

Libraries are called in correct order, as I know they have to be done in reverse order to the library they rely on.

But in-case you want to check:

Code: [Select]
-static-libgcc
-static-libstdc++
-lsfml-audio-s
-lsfml-network-s
-lsfml-graphics-s
-lsfml-window-s
-lsfml-system-s


24
General / Re: Static Link Errors
« on: November 22, 2013, 06:14:10 pm »
Did you even open the link I posted? Obviously not... if you aren't willing to show a bit of initiative then I can't help you.

I was going to save the patronising points but as you're being condescending allow me to retort: if you cannot read the full build output which is copy and pasted in front of you (and I can screenshot the setting which already says full command line output which was set years ago) and do nothing but try to ram a link telling me to do something I've already done, then please leave this thread, because it's clearly beyond your capacity.

25
SFML game jam / Re: Questions regarding game jam
« on: November 22, 2013, 03:37:35 pm »
Hmm. That's a interesting question. I'd like the games themselves to be open source, but your own code base doesn't need to be released. We would just need some way to confirm that you are using SFML if it is hidden.

Modifications might be fine as long as they are started, depending on what they are I suppose. Either that, or they shouldn't be allowed at all. We're trying to showcase vanilla SFML after all. ;)

May I ask what parts of SFML you are modifying?

Minor tweaks to stability in networking code regarding sockets in SFML 1.6.

My solution isn't appropriate to SFML (I spoke with Laurent before so he knows the score) but it's mandatory to ensure stability when connecting and polling websites, more specifically, non-blocking sockets don't connect, and blocking sockets freeze if there's no connection in 1.6.

I don't know what Laurent has done for 2.0 or 2.1, but I had to work in a solution that gives the non-blocking sockets a poll-delay so they can connect, so my version of SFML is slightly modified. It's not fundamentally different from SFML overall but it wouldn't function stably on default 1.6 DLLs.

26
General / Re: Static Link Errors
« on: November 22, 2013, 03:24:18 pm »
http://en.sfml-dev.org/forums/index.php?topic=12552.0

Paste build output.

It's like there, above, in the post.

The code refuses to compile and throws up a series of errors, similar to this:

Code: [Select]
[b]c:\program files\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\..\..\..\libsfml-graphics-s.a(Sprite.o):Sprite.cpp|| multiple definition of `sf::Sprite::Sprite()'|
c:\program files\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\..\..\..\libsfml-graphics.a(d000127.o)|| first defined here|
c:\program files\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\..\..\..\libsfml-graphics-s.a(Sprite.o):Sprite.cpp|| multiple definition of `sf::Sprite::SetImage(sf::Image const&)'|
c:\program files\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\..\..\..\libsfml-graphics.a(d000125.o)|| first defined here|
c:\program files\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\..\..\..\libsfml-graphics-s.a(Image.o):Image.cpp|| multiple definition of `sf::Image::Image()'|
c:\program files\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\..\..\..\libsfml-graphics.a(d000075.o)|| first defined here|
c:\program files\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\..\..\..\libsfml-graphics-s.a(Image.o):Image.cpp|| multiple definition of `sf::Image::~Image()'|
c:\program files\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\..\..\..\libsfml-graphics.a(d000080.o)|| first defined here|
c:\program files\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\..\..\..\libsfml-graphics-s.a(Image.o):Image.cpp|| multiple definition of `sf::Image::LoadFromFile(std::string const&)'|
c:\program files\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\..\..\..\libsfml-graphics.a(d000060.o)|| first defined here|
c:\program files\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\..\..\..\libsfml-graphics-s.a(Color.o):Color.cpp|| multiple definition of `sf::Color::Color(unsigned char, unsigned char, unsigned char, unsigned char)'|
c:\program files\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\..\..\..\libsfml-graphics.a(d000053.o)|| first defined here|
c:\program files\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\..\..\..\libsfml-graphics-s.a(Drawable.o):Drawable.cpp|| multiple definition of `sf::Drawable::~Drawable()'|
c:\program files\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\..\..\..\libsfml-graphics.a(d000162.o)|| first defined here|
c:\program files\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\..\..\..\libsfml-graphics-s.a(Drawable.o):Drawable.cpp|| multiple definition of `sf::Drawable::SetColor(sf::Color const&)'|
c:\program files\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\..\..\..\libsfml-graphics.a(d000151.o)|| first defined here|
c:\program files\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\..\..\..\libsfml-window-s.a(Window.o):Window.cpp|| multiple definition of `sf::Window::Close()'|
c:\program files\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\..\..\..\libsfml-window.a(d000016.o)|| first defined here|
c:\program files\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\..\..\..\libsfml-window-s.a(Window.o):Window.cpp|| multiple definition of `sf::Window::IsOpened() const'|
c:\program files\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\..\..\..\libsfml-window.a(d000059.o)|| first defined here|
c:\program files\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\..\..\..\libsfml-window-s.a(Window.o):Window.cpp|| multiple definition of `sf::Window::GetEvent(sf::Event&)'|
c:\program files\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\..\..\..\libsfml-window.a(d000023.o)|| first defined here|
c:\program files\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\..\..\..\libsfml-window-s.a(Window.o):Window.cpp|| multiple definition of `sf::Window::Display()'|
c:\program files\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\..\..\..\libsfml-window.a(d000019.o)|| first defined here|
c:\program files\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\..\..\..\libsfml-window-s.a(VideoMode.o):VideoMode.cpp|| multiple definition of `sf::VideoMode::VideoMode(unsigned int, unsigned int, unsigned int)'|
c:\program files\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\..\..\..\libsfml-window.a(d000045.o)|| first defined here|
c:\program files\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\..\..\..\libsfml-graphics-s.a(Sprite.o):Sprite.cpp|| undefined reference to `_Unwind_Resume'|
c:\program files\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\..\..\..\libsfml-graphics-s.a(Sprite.o):Sprite.cpp|| undefined reference to `_Unwind_Resume'|
c:\program files\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\..\..\..\libsfml-graphics-s.a(Sprite.o):Sprite.cpp:(.text$_ZN2sf6SpriteD0Ev[sf::Sprite::~Sprite()]+0x15d)||undefined reference to `_Unwind_Resume'|
c:\program files\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\..\..\..\libsfml-graphics-s.a(Sprite.o):Sprite.cpp:(.eh_frame+0x12)||undefined reference to `__gxx_personality_v0'|
c:\program files\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\..\..\..\libsfml-graphics-s.a(Image.o):Image.cpp|| undefined reference to `_Unwind_Resume'|
c:\program files\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\..\..\..\libsfml-graphics-s.a(Image.o):Image.cpp|| undefined reference to `_Unwind_Resume'|
c:\program files\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\..\..\..\libsfml-graphics-s.a(Image.o):Image.cpp|| undefined reference to `_Unwind_Resume'|
c:\program files\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\..\..\..\libsfml-graphics-s.a(Image.o):Image.cpp|| undefined reference to `_Unwind_Resume'|
c:\program files\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\..\..\..\libsfml-graphics-s.a(Image.o):Image.cpp|| undefined reference to `_Unwind_Resume'|
c:\program files\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\..\..\..\libsfml-graphics-s.a(Image.o):Image.cpp|| more undefined references to `_Unwind_Resume' follow|
c:\program files\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\..\..\..\libsfml-graphics-s.a(Image.o):Image.cpp:(.eh_frame+0x12)||undefined reference to `__gxx_personality_v0'|
c:\program files\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\..\..\..\libsfml-graphics-s.a(Drawable.o):Drawable.cpp:(.eh_frame+0x11)||undefined reference to `__gxx_personality_v0'|
c:\program files\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\..\..\..\libsfml-graphics-s.a(ImageLoader.o):ImageLoader.cpp|| undefined reference to `_Unwind_Resume'|
c:\program files\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\..\..\..\libsfml-graphics-s.a(ImageLoader.o):ImageLoader.cpp|| undefined reference to `_Unwind_Resume'|
c:\program files\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\..\..\..\libsfml-graphics-s.a(ImageLoader.o):ImageLoader.cpp|| undefined reference to `_Unwind_Resume'|
c:\program files\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\..\..\..\libsfml-graphics-s.a(ImageLoader.o):ImageLoader.cpp|| undefined reference to `_Unwind_Resume'|
c:\program files\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\..\..\..\libsfml-graphics-s.a(ImageLoader.o):ImageLoader.cpp|| undefined reference to `_Unwind_Resume'|
c:\program files\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\..\..\..\libsfml-graphics-s.a(ImageLoader.o):ImageLoader.cpp|| more undefined references to `_Unwind_Resume' follow|
c:\program files\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\..\..\..\libsfml-graphics-s.a(ImageLoader.o):ImageLoader.cpp:(.eh_frame+0x12)||undefined reference to `__gxx_personality_v0'|
c:\program files\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\..\..\..\libsfml-graphics-s.a(GraphicsContext.o):GraphicsContext.cpp:(.eh_frame+0x11)||undefined reference to `__gxx_personality_v0'|
c:\program files\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\..\..\..\libsfml-window-s.a(Window.o):Window.cpp|| undefined reference to `_Unwind_Resume'|
c:\program files\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\..\..\..\libsfml-window-s.a(Window.o):Window.cpp|| undefined reference to `_Unwind_Resume'|
c:\program files\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\..\..\..\libsfml-window-s.a(Window.o):Window.cpp|| undefined reference to `_Unwind_Resume'|
c:\program files\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\..\..\..\libsfml-window-s.a(Window.o):Window.cpp|| undefined reference to `_Unwind_Resume'|
||More errors follow but not being shown.|
||Edit the max errors limit in compiler options...|
||=== Build finished: 50 errors, 0 warnings ===|[/b]

27
Audio / Re: Question on how audio is stored in SoundBuffer
« on: November 22, 2013, 01:43:39 pm »
It is of course your decision, whether you spend time reinventing a wheel that is not halfway as accurate as existing solutions, or whether you read some theory about signal processing. Since you are actually doing signal processing here, the second option doesn't look like a bad idea to me ;)

It's not that you have to understand all the mathematical concepts behind Fourier Transform, but you should know what it represents and how it can make your task easier (not to say, possible at all). I have no idea how you would want to solve the problem in time domain -- after all, tools like Fourier Transforms were researched to make frequency-related operations simpler, not more complicated. Given some high-level knowledge, applying a FFT library shouldn't be very difficult.

Have you seen the Fourier Transfrom wikipedia page? Or any page on it, for that matter? I'm looking at mathematical symbols I can't grasp, and that to me, is not simplification of a process. It doesn't make my task simple if I don't understand how it works. If your rebuttal is 'read up about it', then my rebuttal is 'it's not a simple solution then'. I shouldn't have to master a segment of mathematics and physics just to calculate what is a three variable sum: time, speed, distance.


As far as I can tell, it's pretty straight forward to build a way to work it out: Isolate a segment of the sound wave, work out min/max, calculate mid-point using min/max, detect two min/max points (one after the initial peak), measure the difference in distance between the two min/max points, get speed (sample rate).

Then use distance and speed to work out frequency. Probably by comparing it to a baseline distance in 440hz (stored, not calculated) at 44100 sample rate by working out differences to arrive at an approximate frequency.


Or I could force myself to learn a huge segment of mathematics, physics, learn to read mathematical symbols I will never again use, figure out what a formulae is actually saying in it's obscure format, spend hours in a library revising other sub-topics ('wiki-walk') in order to grasp the main topic, spend hours searching for a compatible code library that won't install properly anyway, only to discover when I try to run the code it throws up numerous compile time errors because I didn't include another library before finally discovering it has an incompatible copy-left license that requires I make my entire code base public on demand allowing for an unethical company to subvert my entire work by stealing it then just disobeying the copy-left altogether and keeping it hidden (doesn't happen? What open source OS is Apple, Microsoft and Android based on and around?).

Even if said library is successfully installed, usually the calling function has a bizarre behavioural set under a certain set of conditions (such as always returning void and that a certain phase of the moon's cycle prevents it from working correctly) or just crashes 'just because'. And then maybe that library isn't cross-compatible, and hates 64 bit architecture, and AMD processors.

But apparently I should go out of my ridiculous way not to 'reinvent the wheel' (same justification used for trying to convince me to use std::string: std::string implemented two of my ideas in C++11, so ner-ni-ner: shrink to fit and always null-appended strings), even if said wheel is 10 tonne of stone and square.

Better question: why do I need to import an entire library for what should be, in effect, one function?

28
General / Static Link Errors
« on: November 22, 2013, 01:10:38 pm »
I've got Code::Blocks running GCC, and for some time now, the system has been figured to work dynamically (notably the SFML files were copied into the /include directory of the given compiler).

However, I've encountered an error (I'm operating an earlier revision of SFML, 1.6, and the code presently relies on it, and I have a week to deploy a demonstration program so I can't risk dev environment change to another version) in attempting to link statically.

For some strange reason, my development environment doesn't require I include the SFML linker settings under project build settings for the dynamic system - it just works (I believe this is crucial point to make in order to solve the problem).


If I add in the following linker settings to make it static:

-lsfml-network-s
-lsfml-audio-s
-lsfml-graphics-s
-lsfml-window-s
-lsfml-system-s

The code refuses to compile and throws up a series of errors, similar to this:

Code: [Select]
c:\program files\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\..\..\..\libsfml-graphics-s.a(Sprite.o):Sprite.cpp|| multiple definition of `sf::Sprite::Sprite()'|
c:\program files\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\..\..\..\libsfml-graphics.a(d000127.o)|| first defined here|
c:\program files\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\..\..\..\libsfml-graphics-s.a(Sprite.o):Sprite.cpp|| multiple definition of `sf::Sprite::SetImage(sf::Image const&)'|
c:\program files\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\..\..\..\libsfml-graphics.a(d000125.o)|| first defined here|
c:\program files\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\..\..\..\libsfml-graphics-s.a(Image.o):Image.cpp|| multiple definition of `sf::Image::Image()'|
c:\program files\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\..\..\..\libsfml-graphics.a(d000075.o)|| first defined here|
c:\program files\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\..\..\..\libsfml-graphics-s.a(Image.o):Image.cpp|| multiple definition of `sf::Image::~Image()'|
c:\program files\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\..\..\..\libsfml-graphics.a(d000080.o)|| first defined here|
c:\program files\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\..\..\..\libsfml-graphics-s.a(Image.o):Image.cpp|| multiple definition of `sf::Image::LoadFromFile(std::string const&)'|
c:\program files\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\..\..\..\libsfml-graphics.a(d000060.o)|| first defined here|
c:\program files\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\..\..\..\libsfml-graphics-s.a(Color.o):Color.cpp|| multiple definition of `sf::Color::Color(unsigned char, unsigned char, unsigned char, unsigned char)'|
c:\program files\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\..\..\..\libsfml-graphics.a(d000053.o)|| first defined here|
c:\program files\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\..\..\..\libsfml-graphics-s.a(Drawable.o):Drawable.cpp|| multiple definition of `sf::Drawable::~Drawable()'|
c:\program files\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\..\..\..\libsfml-graphics.a(d000162.o)|| first defined here|
c:\program files\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\..\..\..\libsfml-graphics-s.a(Drawable.o):Drawable.cpp|| multiple definition of `sf::Drawable::SetColor(sf::Color const&)'|
c:\program files\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\..\..\..\libsfml-graphics.a(d000151.o)|| first defined here|
c:\program files\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\..\..\..\libsfml-window-s.a(Window.o):Window.cpp|| multiple definition of `sf::Window::Close()'|
c:\program files\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\..\..\..\libsfml-window.a(d000016.o)|| first defined here|
c:\program files\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\..\..\..\libsfml-window-s.a(Window.o):Window.cpp|| multiple definition of `sf::Window::IsOpened() const'|
c:\program files\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\..\..\..\libsfml-window.a(d000059.o)|| first defined here|
c:\program files\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\..\..\..\libsfml-window-s.a(Window.o):Window.cpp|| multiple definition of `sf::Window::GetEvent(sf::Event&)'|
c:\program files\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\..\..\..\libsfml-window.a(d000023.o)|| first defined here|
c:\program files\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\..\..\..\libsfml-window-s.a(Window.o):Window.cpp|| multiple definition of `sf::Window::Display()'|
c:\program files\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\..\..\..\libsfml-window.a(d000019.o)|| first defined here|
c:\program files\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\..\..\..\libsfml-window-s.a(VideoMode.o):VideoMode.cpp|| multiple definition of `sf::VideoMode::VideoMode(unsigned int, unsigned int, unsigned int)'|
c:\program files\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\..\..\..\libsfml-window.a(d000045.o)|| first defined here|
c:\program files\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\..\..\..\libsfml-graphics-s.a(Sprite.o):Sprite.cpp|| undefined reference to `_Unwind_Resume'|
c:\program files\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\..\..\..\libsfml-graphics-s.a(Sprite.o):Sprite.cpp|| undefined reference to `_Unwind_Resume'|
c:\program files\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\..\..\..\libsfml-graphics-s.a(Sprite.o):Sprite.cpp:(.text$_ZN2sf6SpriteD0Ev[sf::Sprite::~Sprite()]+0x15d)||undefined reference to `_Unwind_Resume'|
c:\program files\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\..\..\..\libsfml-graphics-s.a(Sprite.o):Sprite.cpp:(.eh_frame+0x12)||undefined reference to `__gxx_personality_v0'|
c:\program files\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\..\..\..\libsfml-graphics-s.a(Image.o):Image.cpp|| undefined reference to `_Unwind_Resume'|
c:\program files\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\..\..\..\libsfml-graphics-s.a(Image.o):Image.cpp|| undefined reference to `_Unwind_Resume'|
c:\program files\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\..\..\..\libsfml-graphics-s.a(Image.o):Image.cpp|| undefined reference to `_Unwind_Resume'|
c:\program files\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\..\..\..\libsfml-graphics-s.a(Image.o):Image.cpp|| undefined reference to `_Unwind_Resume'|
c:\program files\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\..\..\..\libsfml-graphics-s.a(Image.o):Image.cpp|| undefined reference to `_Unwind_Resume'|
c:\program files\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\..\..\..\libsfml-graphics-s.a(Image.o):Image.cpp|| more undefined references to `_Unwind_Resume' follow|
c:\program files\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\..\..\..\libsfml-graphics-s.a(Image.o):Image.cpp:(.eh_frame+0x12)||undefined reference to `__gxx_personality_v0'|
c:\program files\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\..\..\..\libsfml-graphics-s.a(Drawable.o):Drawable.cpp:(.eh_frame+0x11)||undefined reference to `__gxx_personality_v0'|
c:\program files\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\..\..\..\libsfml-graphics-s.a(ImageLoader.o):ImageLoader.cpp|| undefined reference to `_Unwind_Resume'|
c:\program files\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\..\..\..\libsfml-graphics-s.a(ImageLoader.o):ImageLoader.cpp|| undefined reference to `_Unwind_Resume'|
c:\program files\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\..\..\..\libsfml-graphics-s.a(ImageLoader.o):ImageLoader.cpp|| undefined reference to `_Unwind_Resume'|
c:\program files\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\..\..\..\libsfml-graphics-s.a(ImageLoader.o):ImageLoader.cpp|| undefined reference to `_Unwind_Resume'|
c:\program files\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\..\..\..\libsfml-graphics-s.a(ImageLoader.o):ImageLoader.cpp|| undefined reference to `_Unwind_Resume'|
c:\program files\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\..\..\..\libsfml-graphics-s.a(ImageLoader.o):ImageLoader.cpp|| more undefined references to `_Unwind_Resume' follow|
c:\program files\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\..\..\..\libsfml-graphics-s.a(ImageLoader.o):ImageLoader.cpp:(.eh_frame+0x12)||undefined reference to `__gxx_personality_v0'|
c:\program files\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\..\..\..\libsfml-graphics-s.a(GraphicsContext.o):GraphicsContext.cpp:(.eh_frame+0x11)||undefined reference to `__gxx_personality_v0'|
c:\program files\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\..\..\..\libsfml-window-s.a(Window.o):Window.cpp|| undefined reference to `_Unwind_Resume'|
c:\program files\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\..\..\..\libsfml-window-s.a(Window.o):Window.cpp|| undefined reference to `_Unwind_Resume'|
c:\program files\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\..\..\..\libsfml-window-s.a(Window.o):Window.cpp|| undefined reference to `_Unwind_Resume'|
c:\program files\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\..\..\..\libsfml-window-s.a(Window.o):Window.cpp|| undefined reference to `_Unwind_Resume'|
||More errors follow but not being shown.|
||Edit the max errors limit in compiler options...|
||=== Build finished: 50 errors, 0 warnings ===|

Complaining of 'multiple definitions'.

Somehow, I suspect there's a conflict between the dynamic libraries and the static libraries, IE the dynamic library is already available by default (but I don't know how, as there's no configured settings for it: it's just added to the compiler /include folder etc etc) and the static tries to redefine the pre-existing definitions.

How on earth do I solve this problem and get it to link this specific project statically (without changing the entire dev environment and thus ruining the other dynamically linked projects)?

29
Graphics / Re: Fade out image
« on: November 21, 2013, 05:40:00 pm »
You can simply call setColor on a sprite and step by step decrease the alpha value or the all the color values, till you reach black.

Thank you, this worked brilliantly!

30
SFML game jam / Re: Questions regarding game jam
« on: November 21, 2013, 05:15:33 pm »
What is the rule about personal codebases and engines that are made public before jam?
Do they fall under 'external libraries but not SFML competitors'?

Assuming they aren't built on top of SFML's competitors, you are free to use your own codebase/engines as much as you like.

If you operate a slightly modified version of SFML (minor code changes), would it be pertinent to just note the few changes, or is the entire codebase of the slightly modified SFML binding to be expected?

Is using your own personal codebase permitted so long as you release the relevant code used when submitting?

Pages: 1 [2] 3 4 ... 9
anything