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

Pages: [1]
1
Window / I just do not know what to do!
« on: January 05, 2011, 03:24:55 am »
I think i´ve found something...
http://www.panda3d.org/forums/viewtopic.php?t=9791
As it says in the link i´ve provided:
Quote
Some graphics drivers don't provide a double-buffered offscreen context.

2
Window / I just do not know what to do!
« on: January 04, 2011, 02:44:41 pm »
I have Windows 7 64-bit and it seems like I´m having the same problem (also tried with older SFML versions 1.5 & 1.6 and nothing works). I have also tried running precompiled samples and they also wont work.

3
Feature requests / Mouse capture/grab
« on: December 14, 2010, 04:04:24 pm »
I was also dissapointed when i found that SFML doesnt support this feature, especially because of OpenGL... (first person camera)
Will this feature be implemented in next SFML version?  :?:

4
C / Strange errors
« on: July 28, 2010, 11:22:44 pm »
Quote from: "Laurent"
There are no constructors in C... ;)
I feel ashamed.  :oops: I´m going to take my C lessons (again) right now.

5
C / Strange errors
« on: July 28, 2010, 08:46:18 pm »
I´m getting these 2 errors that are strange, because everything is written OK.

main.c
Code: [Select]
#include <SFML/Graphics.h>

int main()
{
sfRenderWindow_Create(sfVideoMode(800,600,32), "SFML", sfResize | sfClose, sfWindowSettings());
return EXIT_SUCCESS;
}


errors
Code: [Select]
1>.\main.c(6) : error C2143: syntax error : missing ')' before 'type'
1>.\main.c(6) : error C2198: 'sfRenderWindow_Create' : too few arguments for call


Don´t know if it is because of CSFML or some project options need to be set (using VC2005, compiling as "C" code(but it also happens if compiled as "C++" code))

6
C / VS2005 linking error: unresolved external symbol
« on: July 27, 2010, 12:49:22 am »
Quote from: "Laurent"
1.) But why do you use C in C++ sources? 2.) And why don't you use the C++ API of SFML (which is far more convenient to use) if you use a C++ compiler?

1.) Experimenting. :wink: But i would probably switch to C++ version of SFML.
2.) I´ve didn´t configured all of the project options yet.

7
C / VS2005 linking error: unresolved external symbol
« on: July 26, 2010, 08:14:56 pm »
I´m trying to create a simple 3D OpenGL engine with CSFML similar to Cube Engine http://cubeengine.com/. Cube source files are also .cpp with C code in it and the game uses SDL. I found design of a Cube Engine quite interesting. It won´t be tottally same but i wil try to keep similar design of a Cube source files for code of my project.

8
C / VS2005 linking error: unresolved external symbol
« on: July 26, 2010, 07:55:27 pm »
Can you explain it more closely, why do you think i use CSFML in C++ code (because of C++ source files (.cpp) with C code in it or something else) ?  :?:  :?

9
C / VS2005 linking error: unresolved external symbol
« on: July 26, 2010, 06:49:11 pm »
It works! Thanks! I knew that i´ve forgot to add something (didn´t used this "extern C" code for a long time, so i´ve forgot it because of only C++ programming in past years).  :D

10
C / VS2005 linking error: unresolved external symbol
« on: July 26, 2010, 01:10:01 am »
I´ve sended it on your e-mail adress.

11
C / VS2005 linking error: unresolved external symbol
« on: July 25, 2010, 08:14:03 pm »
It happens for every CSFML function that i use (tried to create simple SFML window, it also didnt compiled sucessfully). Using VS2005 version of CSFML SDK and precompiled libraries that came with SDK. Tried to compile SDK from source (compiling succesfull) but it fails to compile without linking errors for my app.

12
C / VS2005 linking error: unresolved external symbol
« on: July 25, 2010, 04:38:29 pm »
I´ve just started with CSFML and i am getting linking errors everytime i try to compile my app (i am using Visual Sudio 2005, as i´ve said in title).
I´ve included all needed libraries for app (csfml-audio.lib, csfml-graphics.lib, csfml-network.lib, csfml-system.lib, csfml-window.lib). Here is the code:

SoundSystem.h
Code: [Select]
#include <SFML/Audio.h>
#include "DataTypes.h"

// sound
extern void PlayMusic(C8 *FileName);


SoundSystem.cpp
Code: [Select]
#include "DataTypes.h"
#include "SoundSystem.h"

sfMusic *Music;

void PlayMusic(C8 *FileName)
{
sfMusic_CreateFromFile(FileName);
sfMusic_Play(Music);
// Loop while the music is playing
while(sfMusic_GetStatus(Music) == sfPlaying)
{
sfSleep(0.1f);
}
}


main.cpp
Code: [Select]
#include "SoundSystem.h"

int main()
{
PlayMusic("data/sound.ogg");
return EXIT_SUCCESS;
}


...and here are the linking errors.
Code: [Select]
1>Compiling...
1>main.cpp
1>SoundSystem.cpp
1>Linking...
1>SoundSystem.obj : error LNK2001: unresolved external symbol "void __cdecl sfMusic_Play(struct sfMusic *)" (?sfMusic_Play@@YAXPAUsfMusic@@@Z)
1>SoundSystem.obj : error LNK2001: unresolved external symbol "void __cdecl sfSleep(float)" (?sfSleep@@YAXM@Z)
1>SoundSystem.obj : error LNK2001: unresolved external symbol "struct sfMusic * __cdecl sfMusic_CreateFromFile(char const *)" (?sfMusic_CreateFromFile@@YAPAUsfMusic@@PBD@Z)
1>SoundSystem.obj : error LNK2001: unresolved external symbol "enum sfSoundStatus __cdecl sfMusic_GetStatus(struct sfMusic *)" (?sfMusic_GetStatus@@YA?AW4sfSoundStatus@@PAUsfMusic@@@Z)
1>..\bin32\game_c.exe : fatal error LNK1120: 4 unresolved externals


I don´t know if i´ve forgot to set some options to compiler or forgot to include some file... so i´m looking for a help.

13
Window / Combined event types
« on: March 12, 2010, 08:47:21 pm »
Thanks Laurent! Everything works just fine, you rule.  8)

14
Window / Combined event types
« on: March 12, 2010, 05:51:33 pm »
I am new to SFML, so I still learn new stuff about library everyday but I am interested is it possible to combine event types? For example, i want to create rotational camera with OpenGL which user rotates when he press right mouse button and moves mouse. Ive tried something like this:

Code: [Select]
if ((Event.Type == sf::Event::MouseButtonPressed || sf::Event::MouseMoved) && (sf::Mouse::Right))


but it doesn´t do nothing.
If needed, I would post whole source code of application.

Pages: [1]
anything