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.


Topics - golgoth

Pages: 1 [2]
16
Network / Threads/Network related!
« on: November 04, 2010, 03:21:27 am »
Greetings,

I’m wondering how to pass function parameter to a thread… if that’s is possible:
Code: [Select]

void ThreadServer(void *in_data)
{
}

Bool SFML_Network::ServerStart(const Char *in_name, UShort in_port)
{
sf::Thread l_thread(&ThreadServer, this);

….

Is there an elegant way that in_name and in_port being pass to ThreadServer? Besides making member or global variables.

17
Feature requests / Enabling/Disabling config file
« on: November 02, 2010, 04:48:25 am »
Greetings,

Is there any chance of having a Configuration file to enable/disable features inside SFML librairies?

On my side, I only use a Window, Inputs, a clock and Threads… so there is a lot of things I’m not using but force to link against. Would be nice to custom fit and build only features we need.

Excluding jpeg lib and freetype lib would be really appreciated and/or providing x64 version as well.

18
General / Semaphore?
« on: October 06, 2010, 01:41:51 am »
Greetings,

Is there an equivalent as SDL_CondSignal (Restart a thread wait on a condition variable) within the SFML threads... Semaphore?

thx

19
Audio / How to manage audio with SFML?
« on: October 04, 2010, 09:39:48 pm »
Greetings,

I thought I would be able to play sounds that way :

sf::Music music;
music.OpenFromFile("../Data/Music/canary.wav");
music.Play();

If music is destroyed the sound will stop playing. What is a common technique for handling several sound entities and music playback in SFML? A separate thread for each sound and/or wrapping a sound class?

20
General / Windows 7 64bit, VS 2010 and and SFML 2.0 (1570)
« on: September 28, 2010, 06:33:13 pm »
Greetings,

Both x32 and x64 versions compile just fine but I'm having unresolved external symbol with the x64 version when linking it to my project:

Error   8   error LNK2019: unresolved external symbol jpeg_CreateCompress referenced in function "private: bool __cdecl sf::priv::ImageLoader::WriteJpg(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class std::vector<unsigned char,class std::allocator<unsigned char> > const &,unsigned int,unsigned int)" (?WriteJpg@ImageLoader@priv@sf@@AEAA_NAEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@AEBV?$vector@EV?$allocator@E@std@@@5@II@Z)   sfml2-graphics-s.lib(ImageLoader.obj)
Error   1   error LNK2019: unresolved external symbol jpeg_destroy_compress referenced in function "private: bool __cdecl sf::priv::ImageLoader::WriteJpg(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class std::vector<unsigned char,class std::allocator<unsigned char> > const &,unsigned int,unsigned int)" (?WriteJpg@ImageLoader@priv@sf@@AEAA_NAEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@AEBV?$vector@EV?$allocator@E@std@@@5@II@Z)   sfml2-graphics-s.lib(ImageLoader.obj)
Error   2   error LNK2019: unresolved external symbol jpeg_finish_compress referenced in function "private: bool __cdecl sf::priv::ImageLoader::WriteJpg(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class std::vector<unsigned char,class std::allocator<unsigned char> > const &,unsigned int,unsigned int)" (?WriteJpg@ImageLoader@priv@sf@@AEAA_NAEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@AEBV?$vector@EV?$allocator@E@std@@@5@II@Z)   sfml2-graphics-s.lib(ImageLoader.obj)
Error   6   error LNK2019: unresolved external symbol jpeg_set_defaults referenced in function "private: bool __cdecl sf::priv::ImageLoader::WriteJpg(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class std::vector<unsigned char,class std::allocator<unsigned char> > const &,unsigned int,unsigned int)" (?WriteJpg@ImageLoader@priv@sf@@AEAA_NAEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@AEBV?$vector@EV?$allocator@E@std@@@5@II@Z)   sfml2-graphics-s.lib(ImageLoader.obj)
Error   5   error LNK2019: unresolved external symbol jpeg_set_quality referenced in function "private: bool __cdecl sf::priv::ImageLoader::WriteJpg(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class std::vector<unsigned char,class std::allocator<unsigned char> > const &,unsigned int,unsigned int)" (?WriteJpg@ImageLoader@priv@sf@@AEAA_NAEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@AEBV?$vector@EV?$allocator@E@std@@@5@II@Z)   sfml2-graphics-s.lib(ImageLoader.obj)
Error   4   error LNK2019: unresolved external symbol jpeg_start_compress referenced in function "private: bool __cdecl sf::priv::ImageLoader::WriteJpg(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class std::vector<unsigned char,class std::allocator<unsigned char> > const &,unsigned int,unsigned int)" (?WriteJpg@ImageLoader@priv@sf@@AEAA_NAEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@AEBV?$vector@EV?$allocator@E@std@@@5@II@Z)   sfml2-graphics-s.lib(ImageLoader.obj)
Error   9   error LNK2019: unresolved external symbol jpeg_std_error referenced in function "private: bool __cdecl sf::priv::ImageLoader::WriteJpg(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class std::vector<unsigned char,class std::allocator<unsigned char> > const &,unsigned int,unsigned int)" (?WriteJpg@ImageLoader@priv@sf@@AEAA_NAEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@AEBV?$vector@EV?$allocator@E@std@@@5@II@Z)   sfml2-graphics-s.lib(ImageLoader.obj)
Error   7   error LNK2019: unresolved external symbol jpeg_stdio_dest referenced in function "private: bool __cdecl sf::priv::ImageLoader::WriteJpg(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class std::vector<unsigned char,class std::allocator<unsigned char> > const &,unsigned int,unsigned int)" (?WriteJpg@ImageLoader@priv@sf@@AEAA_NAEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@AEBV?$vector@EV?$allocator@E@std@@@5@II@Z)   sfml2-graphics-s.lib(ImageLoader.obj)
Error   3   error LNK2019: unresolved external symbol jpeg_write_scanlines referenced in function "private: bool __cdecl sf::priv::ImageLoader::WriteJpg(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class std::vector<unsigned char,class std::allocator<unsigned char> > const &,unsigned int,unsigned int)" (?WriteJpg@ImageLoader@priv@sf@@AEAA_NAEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@AEBV?$vector@EV?$allocator@E@std@@@5@II@Z)   sfml2-graphics-s.lib(ImageLoader.obj)

would be nice to simply turn on and off external libs.

21
General discussions / SVN repository?
« on: August 12, 2010, 05:41:02 pm »
Hi I m using TortoiseSVN and when I check out :

http://sfml.svn.sourceforge.net/viewvc/sfml/branches/sfml2/

I get:

Repository moved temporarily to '/viewvc/sfml/branches/sfml2/'; please relocate

I'm not used to SVN so I'm not sure if it is on my side or not.

Thx

22
General / Remove OpenGL deprecated features?
« on: August 11, 2010, 09:53:22 pm »
Hi everyone,

Anyone know how to disable all deprecated features and keep only the 3.3.0 core?
 
Either with SFML or Glew?

thx

23
General / SFML x64 cause QT to stall... window.lib compatibility issue
« on: August 11, 2010, 09:26:03 pm »
Greeting,

There is one major issue I really don’t know how to solve, and chances are no one will... but I'll give it a shot anyway.

When linking sfml-window.x x64/MT and QT x64/MT. For some reason, QT API gets stall apparently in its main loop exec(), which doesn’t happen with the x86 /MT version.

Another example is that I'm linking my project library (including sfml-window-s.lib) to a Softimage 2010 C++ plug-in. When loading the plug-in, Softimage gets stall before any plug-in callbacks are being executed. I never had that problem before with SDL and I'm using a few other libs like FMOD and Nvidia Physx.

I understand those are quite specific problematic and hard to reproduce. I might be wrong, but my guess is there is something unusual with the sfml-window-s.lib that is causing conflicts and might need investigation. One thing is for sure at the moment, I'm staring at the abyss and I'm getting sucked in.

Any idea?

24
Window / OpenGL 2 context?
« on: August 11, 2010, 05:18:08 pm »
Greetings everyone,

I'm using SFML 2.0, Glew 1.5.5 with a gforce 8800… I'm wondering how to create an OpenGL 2.x context.

#define GLEW_STATIC
#include <opengl/glew.h>
#include <opengl/glut.h> /// gluPickMatrix.
…SNIP
sf::ContextSettings l_settings;
l_settings.MajorVersion= 2;
l_settings.MinorVersion= 0;

Still creates a 3.x context… what am I missing?

thx

Pages: 1 [2]
anything