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

Pages: [1]
1
Graphics / Sprite::GetPosition()
« on: February 16, 2011, 07:16:43 pm »
Quote from: "Hiura"
The doc is your friend ;-)

http://www.sfml-dev.org/documentation/1.6/classsf_1_1Drawable.htm#9ad52594fd5e835cbd03b79098d70e0b


Wow! I didn't now about that part of the website. Thank you.

2
Graphics / Sprite::GetPosition()
« on: February 15, 2011, 09:21:19 pm »
Hello!
What really does the GetPosition return? "Cout" cant display it. I really dont get it. Witch type does it return?

3
Graphics / Transparecy and layers
« on: February 15, 2011, 08:54:00 pm »
I did it in my image editor. Works awsomly. Thanx a lot guys.

4
Graphics / Transparecy and layers
« on: February 15, 2011, 08:11:48 pm »
Quote from: "Laurent"
Quote
1. How to make some color transparent?

The alpha (fourth) component of colors is the transparency.

Quote
2. How can i make so that some sprites are behind and in front of other. For example, if i add bacground, i would like it to be behind all other objects. Can i do that?

Draw first your background, and then the rest. Simple ;)


Wow, the second i really simple :)
But with this alpha thing in first, do i have to do it in my picture editor or in code somehow?

5
Graphics / Transparecy and layers
« on: February 14, 2011, 09:21:45 pm »
Hello guys!
Yesterday i made my first little demo with sfml i  was incredebly happy!
Now i have some problems.
1. How to make some color transparent?
2. How can i make so that some sprites are behind and in front of other. For example, if i add bacground, i would like it to be behind all other objects. Can i do that?

6
General / how to install sfml in code blocks (newest version)
« on: August 25, 2010, 12:28:14 am »
here is the build log:

Compiling: D:\probe\c++\proba za sfml.c
In file included from C:/Dev-Cpp/bin/../lib/gcc/mingw32/3.4.2/../../../../include/SFML/System.hpp:32,
                 from D:\probe\c++\proba za sfml.c:1:
C:/Dev-Cpp/bin/../lib/gcc/mingw32/3.4.2/../../../../include/SFML/Config.hpp:122:19: climits: No such file or directory
In file included from C:/Dev-Cpp/bin/../lib/gcc/mingw32/3.4.2/../../../../include/SFML/System.hpp:32,
                 from D:\probe\c++\proba za sfml.c:1:
C:/Dev-Cpp/bin/../lib/gcc/mingw32/3.4.2/../../../../include/SFML/Config.hpp:124: error: syntax error before "sf"
C:/Dev-Cpp/bin/../lib/gcc/mingw32/3.4.2/../../../../include/SFML/Config.hpp:125: error: syntax error before '{' token
C:/Dev-Cpp/bin/../lib/gcc/mingw32/3.4.2/../../../../include/SFML/Config.hpp:131:10: #error No 8 bits integer type for this platform
C:/Dev-Cpp/bin/../lib/gcc/mingw32/3.4.2/../../../../include/SFML/Config.hpp:145:10: #error No 16 bits integer type for this platform
C:/Dev-Cpp/bin/../lib/gcc/mingw32/3.4.2/../../../../include/SFML/Config.hpp:159:10: #error No 32 bits integer type for this platform
In file included from C:/Dev-Cpp/bin/../lib/gcc/mingw32/3.4.2/../../../../include/SFML/System.hpp:33,
                 from D:\probe\c++\proba za sfml.c:1:
C:/Dev-Cpp/bin/../lib/gcc/mingw32/3.4.2/../../../../include/SFML/System/Clock.hpp:35: error: syntax error before '{' token
C:/Dev-Cpp/bin/../lib/gcc/mingw32/3.4.2/../../../../include/SFML/System/Clock.hpp: In function `GetElapsedTime':
C:/Dev-Cpp/bin/../lib/gcc/mingw32/3.4.2/../../../../include/SFML/System/Clock.hpp:63: error: syntax error before "private"
In file included from C:/Dev-Cpp/bin/../lib/gcc/mingw32/3.4.2/../../../../include/stdarg.h:6,
                 from C:/Dev-Cpp/bin/../lib/gcc/mingw32/3.4.2/../../../../include/windows.h:47,
                 from C:/Dev-Cpp/bin/../lib/gcc/mingw32/3.4.2/../../../../include/SFML/System/Win32/Mutex.hpp:32,
                 from C:/Dev-Cpp/bin/../lib/gcc/mingw32/3.4.2/../../../../include/SFML/System/Mutex.hpp:36,
                 from C:/Dev-Cpp/bin/../lib/gcc/mingw32/3.4.2/../../../../include/SFML/System.hpp:35,
                 from D:\probe\c++\proba za sfml.c:1:
C:/Dev-Cpp/bin/../lib/gcc/mingw32/3.4.2/include/stdarg.h:106: error: storage class specified for parameter `__gnuc_va_list'
C:/Dev-Cpp/bin/../lib/gcc/mingw32/3.4.2/include/stdarg.h:106: error: syntax error before "va_list"
In file included from C:/Dev-Cpp/bin/../lib/gcc/mingw32/3.4.2/../../../../include/windows.h:48,
                 from C:/Dev-Cpp/bin/../lib/gcc/mingw32/3.4.2/../../../../include/SFML/System/Win32/Mutex.hpp:32,
                 from C:/Dev-Cpp/bin/../lib/gcc/mingw32/3.4.2/../../../../include/SFML/System/Mutex.hpp:36,
                 from C:/Dev-Cpp/bin/../lib/gcc/mingw32/3.4.2/../../../../include/SFML/System.hpp:35,
                 from D:\probe\c++\proba za sfml.c:1:
C:/Dev-Cpp/bin/../lib/gcc/mingw32/3.4.2/../../../../include/windef.h:222: error: storage class specified for parameter `DWORD'
C:/Dev-Cpp/bin/../lib/gcc/mingw32/3.4.2/../../../../include/windef.h:223: error: storage class specified for parameter `WINBOOL'
C:/Dev-Cpp/bin/../lib/gcc/mingw32/3.4.2/../../../../include/windef.h:223: error: storage class specified for parameter `PWINBOOL'
C:/Dev-Cpp/bin/../lib/gcc/mingw32/3.4.2/../../../../include/windef.h:223: error: storage class specified for parameter `LPWINBOOL'
C:/Dev-Cpp/bin/../lib/gcc/mingw32/3.4.2/../../../../include/windef.h:227: error: storage class specified for parameter `WINBOOL'
C:/Dev-Cpp/bin/../lib/gcc/mingw32/3.4.2/../../../../include/windef.h:227: error: redefinition of parameter 'WINBOOL'
C:/Dev-Cpp/bin/../lib/gcc/mingw32/3.4.2/../../../../include/windef.h:223: error: previous definition of 'WINBOOL' was here
C:/Dev-Cpp/bin/../lib/gcc/mingw32/3.4.2/../../../../include/windef.h:227: error: syntax error before "BOOL"
C:/Dev-Cpp/bin/../lib/gcc/mingw32/3.4.2/../../../../include/windef.h:231: error: storage class specified for parameter `BYTE'
C:/Dev-Cpp/bin/../lib/gcc/mingw32/3.4.2/../../../../include/windef.h:233: error: storage class specified for parameter `BOOL'
C:/Dev-Cpp/bin/../lib/gcc/mingw32/3.4.2/../../../../include/windef.h:233: error: syntax error before '*' token
C:/Dev-Cpp/bin/../lib/gcc/mingw32/3.4.2/../../../../include/windef.h:234: error: storage class specified for parameter `WORD'
C:/Dev-Cpp/bin/../lib/gcc/mingw32/3.4.2/../../../../include/windef.h:235: error: storage class specified for parameter `FLOAT'
C:/Dev-Cpp/bin/../lib/gcc/mingw32/3.4.2/../../../../include/windef.h:236: error: storage class specified for parameter `FLOAT'
C:/Dev-Cpp/bin/../lib/gcc/mingw32/3.4.2/../../../../include/windef.h:236: error: conflicting types for 'FLOAT'
C:/Dev-Cpp/bin/../lib/gcc/mingw32/3.4.2/../../../../include/windef.h:235: error: previous definition of 'FLOAT' was here
C:/Dev-Cpp/bin/../lib/gcc/mingw32/3.4.2/../../../../include/windef.h:236: error: syntax error before '*' token
C:/Dev-Cpp/bin/../lib/gcc/mingw32/3.4.2/../../../../include/windef.h:237: error: storage class specified for parameter `BYTE'
C:/Dev-Cpp/bin/../lib/gcc/mingw32/3.4.2/../../../../include/windef.h:237: error: conflicting types for 'BYTE'
C:/Dev-Cpp/bin/../lib/gcc/mingw32/3.4.2/../../../../include/windef.h:231: error: previous definition of 'BYTE' was here
C:/Dev-Cpp/bin/../lib/gcc/mingw32/3.4.2/../../../../include/windef.h:237: error: syntax error before '*' token
C:/Dev-Cpp/bin/../lib/gcc/mingw32/3.4.2/../../../../include/windef.h:238: error: storage class specified for parameter `PINT'
C:/Dev-Cpp/bin/../lib/gcc/mingw32/3.4.2/../../../../include/windef.h:238: error: storage class specified for parameter `LPINT'
C:/Dev-Cpp/bin/../lib/gcc/mingw32/3.4.2/../../../../include/windef.h:239: error: storage class specified for parameter `WORD'
C:/Dev-Cpp/bin/../lib/gcc/mingw32/3.4.2/../../../../include/windef.h:239: error: conflicting types for 'WORD'
C:/Dev-Cpp/bin/../lib/gcc/mingw32/3.4.2/../../../../include/windef.h:234: error: previous definition of 'WORD' was here
C:/Dev-Cpp/bin/../lib/gcc/mingw32/3.4.2/../../../../include/windef.h:239: error: syntax error before '*' token
C:/Dev-Cpp/bin/../lib/gcc/mingw32/3.4.2/../../../../include/windef.h:240: error: storage class specified for parameter `LPLONG'
C:/Dev-Cpp/bin/../lib/gcc/mingw32/3.4.2/../../../../include/windef.h:241: error: storage class specified for parameter `DWORD'
C:/Dev-Cpp/bin/../lib/gcc/mingw32/3.4.2/../../../../include/windef.h:241: error: conflicting types for 'DWORD'
C:/Dev-Cpp/bin/../lib/gcc/mingw32/3.4.2/../../../../include/windef.h:222: error: previous definition of 'DWORD' was here
C:/Dev-Cpp/bin/../lib/gcc/mingw32/3.4.2/../../../../include/windef.h:241: error: syntax error before '*' token
C:/Dev-Cpp/bin/../lib/gcc/mingw32/3.4.2/../../../../include/windef.h:242: error: storage class specified for parameter `PCVOID'
C:/Dev-Cpp/bin/../lib/gcc/mingw32/3.4.2/../../../../include/windef.h:242: error: storage class specified for parameter `LPCVOID'
C:/Dev-Cpp/bin/../lib/gcc/mingw32/3.4.2/../../../../include/windef.h:243: error: storage class specified for parameter `INT'
C:/Dev-Cpp/bin/../lib/gcc/mingw32/3.4.2/../../../../include/windef.h:244: error: storage class specified for parameter `UINT'
C:/Dev-Cpp/bin/../lib/gcc/mingw32/3.4.2/../../../../include/windef.h:244: error: storage class specified for parameter `PUINT'
C:/Dev-Cpp/bin/../lib/gcc/mingw32/3.4.2/../../../../include/windef.h:244: error: storage class specified for parameter `LPUINT'
In file included from C:/Dev-Cpp/bin/../lib/gcc/mingw32/3.4.2/../../../../include/stddef.h:6,
                 from C:/Dev-Cpp/bin/../lib/gcc/mingw32/3.4.2/../../../../include/string.h:24,
                 from C:/Dev-Cpp/bin/../lib/gcc/mingw32/3.4.2/../../../../include/winnt.h:37,
                 from C:/Dev-Cpp/bin/../lib/gcc/mingw32/3.4.2/../../../../include/windef.h:246,
                 from C:/Dev-Cpp/bin/../lib/gcc/mingw32/3.4.2/../../../../include/windows.h:48,
                 from C:/Dev-Cpp/bin/../lib/gcc/mingw32/3.4.2/../../../../include/SFML/System/Win32/Mutex.hpp:32,
                 from C:/Dev-Cpp/bin/../lib/gcc/mingw32/3.4.2/../../../../include/SFML/System/Mutex.hpp:36,
                 from C:/Dev-Cpp/bin/../lib/gcc/mingw32/3.4.2/../../../../include/SFML/System.hpp:35,
                 from D:\probe\c++\proba za sfml.c:1:
C:/Dev-Cpp/bin/../lib/gcc/mingw32/3.4.2/include/stddef.h:213: error: storage class specified for parameter `size_t'
C:/Dev-Cpp/bin/../lib/gcc/mingw32/3.4.2/include/stddef.h:325: error: storage class specified for parameter `wchar_t'


can someone explain me what am i doing wrong

7
General / how to install sfml in code blocks (newest version)
« on: August 24, 2010, 09:08:32 pm »
i get it now! but there is a problem... it detecs my dev c++ compliler!!! not mingw! but i got the libary in my dev compailer too, so i guess it is ok...

8
General / how to install sfml in code blocks (newest version)
« on: August 23, 2010, 10:54:39 pm »
please explain what do i have to download and where to put it
so now i got that mingw and overwrite it with the one you say, but i cant find any kind of icon to click in to start the min gw in my installation folder. there is no exe! and, what thoes this have to do with code blocks

9
General / how to install sfml in code blocks (newest version)
« on: August 19, 2010, 02:10:24 pm »
why do i have to download mingw-with-gcc-4.4.zip?
i dont get what do i need that for. and i cant find an include map in my codeBlocks instalation

10
General / how to install sfml in code blocks (newest version)
« on: August 18, 2010, 01:40:47 am »
i dont get this part: Important: this release of SFML was compiled with gcc 4.4, which makes the SFML libraries not compatible with the old gcc 3.4.5. The MinGW team hasn't released a full package including gcc 4.4 yet, so here is one that you can use: mingw-with-gcc-4.4.zip (34.9 MB).

First, you must download the SFML development files. You can download the minimal package (libraries + headers), but it is recommended that you download the full SDK, which contains samples and documentation as well.
These packages can be found on the download page.

11
General / how to install sfml in code blocks (newest version)
« on: August 18, 2010, 12:12:43 am »
the title says it all
someone help please

Pages: [1]