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

Pages: 1 ... 7 8 [9]
121
General / Release Date Of S.F.M.L. Version 1.5
« on: February 06, 2009, 05:11:21 pm »
I don't know if SFML will be built to 1.5, I do know that 2.0 is (going to be) in production and will be out later this year.  

But again I'm new to SFML so don't know how the incremental releases work.

122
Audio / How to use an Object Manager with sf::Music? (NonCopyable)
« on: February 06, 2009, 05:08:48 pm »
If I try that, I get:
Code: [Select]

Error 2 error C2662: 'sf::SoundStream::Play' : cannot convert 'this' pointer from 'const sf::Music' to 'sf::SoundStream &'


I tried it with using pointers and it compiled properly (idk if it worked; I'm having another problem with setting up the boost libs, but thats another problem).

If I comment out the .Play thing then it goes back to NonCopyable Thread thing.

This seems to be when I try to call the Play method, if I comment it out it builds properly.

123
Audio / How to use an Object Manager with sf::Music? (NonCopyable)
« on: February 06, 2009, 05:43:35 am »
Ok, so I'm trying to make a simple Resource Manager that holds all my resources (Images, Music, Fonts, etc).  

The problem I am getting is when I ask for a music, I get an error with the NonCopyable thing (which threw me off at first until I realized that it was the Music, not really a Thread that I had created).  

here is my code for the resource manager (Kind of cannibalized from tutorials and other posts on this forum):

Code: [Select]

//function for loading the music
void ResourceManager::loadMusic(const std::string& name, const std::string& filepath)
{
    // Only load image if key does not already exist (no duplicate images)
    if(Music.find(name) == Music.end())
    {
        Music[name] = new sf::Music();
Music[name]->OpenFromFile(filepath);//load image from the file
Music[name]->SetLoop(true);
    }
}
//function for returning the music requested
const sf::Music& ResourceManager::getMusic(const std::string& name)
{
    return *Music[name];
}
//call from main that asks for the music, Resources being a ResourceManager
const sf::Music MenuMusic=Resources.getMusic("FlatOut.ogg");



I'm kind of new to C++ (have had only about a semester-ish of it) but have extensive experience with Java.  

Should I have the getMusic() function return a pointer instead?  I'm a little bit weary with pointers (I still can't get into the habit of using the -> operator...i know i'm weird).

124
Graphics / Write Number on the Screen
« on: February 01, 2009, 10:37:24 pm »
yes there you go, a link to another topic on this forum ^_^

125
Graphics / Write Number on the Screen
« on: February 01, 2009, 10:18:26 pm »

126
SFML projects / SPARK opensource particle engine with an SFML module
« on: January 30, 2009, 08:46:56 pm »
I'm using visual studio 2008 and have included the SPARK include/lib directories in the VC++ Directory place.

127
Graphics / Fullscreen mode? (non-windowed way)
« on: January 30, 2009, 04:43:07 pm »
sorry, my question was how do I switch to fullscreen.
I figured it out, just have to pass in the flag (haha silly me).

sorry bout that.

128
SFML projects / SPARK opensource particle engine with an SFML module
« on: January 30, 2009, 05:05:06 am »
I'm having trouble linking the SPARK libs to visual studio (I'm probably just stupid).  

When I compile I get:
Code: [Select]

Error 2 error LNK2001: unresolved external symbol "public: __thiscall SPK::Point::Point(class SPK::Vector3D const &)" (??0Point@SPK@@QAE@ABVVector3D@1@@Z) main.obj SFML Game
Error 3 error LNK2001: unresolved external symbol "public: __thiscall SPK::Vector3D::Vector3D(float,float,float)" (??0Vector3D@SPK@@QAE@MMM@Z) main.obj SFML Game
Error 4 error LNK2001: unresolved external symbol "public: __thiscall SPK::Model::~Model(void)" (??1Model@SPK@@QAE@XZ) main.obj SFML Game
Error 5 error LNK2001: unresolved external symbol "public: __thiscall SPK::Model::Model(int,int,int)" (??0Model@SPK@@QAE@HHH@Z) main.obj SFML Game

I thought I could remedy this by including the SPARK.lib and SPARK_SFML.lib in additional dependencies, but that also broke it.  

btw I'm trying to use the static libs.  

Also I'm sorry if I shouldn't have posted in this particular thread, but I didnt know where else to ask for SPARK help.

EDIT: worked with new release of libs, idk why it didnt work before, but ah well.

129
Graphics / Fullscreen mode? (non-windowed way)
« on: January 30, 2009, 03:42:58 am »
Probably a noob question: is there a way to set fullscreen but keeping an aspect ratio? (Like setting the monitor's resolution to 1024*768 and then fullscreening the window w/o the title bar scrolling across?)

130
General discussions / SFML 2.0
« on: January 30, 2009, 12:46:04 am »
couple of days?
btw, look at ur post count: 666 (at the moment of this msg)

131
Graphics / Rounded Rectangles
« on: January 29, 2009, 03:47:48 pm »
Just wondering, is there a way to edit the Circle to make this? (or is the circle rendered differently than other shapes?)  Basically I am wondering how the circle itself is drawn and also if its possible to maybe take the circle, split it, and add lines (for the rectangle part) .  Does that even make sense?

132
Graphics / Rounded Rectangles
« on: January 28, 2009, 08:29:47 pm »
I was wondering, does SFML have a way to do RoundedRectangles (with or without OpenGL)?  If not, would it be more efficient to use primitive shapes to kind of make a rounded rectangle or to use an image?

Just wondering, thanks!

133
SFML projects / Scrolling Shooter
« on: January 26, 2009, 04:28:48 am »
I cannot get this to work, i get:
---------------------------
scrollingShooter.exe - Entry Point Not Found
---------------------------
The procedure entry point _ZN2sf5Music7SetLoopEb could not be located in the dynamic link library sfml-audio.dll.
---------------------------

I am using the mingw dll files.

134
Graphics / SFML and Particle Systems
« on: January 20, 2009, 12:43:19 am »
awesome thanks, will look into both ^_^

135
Graphics / SFML and Particle Systems
« on: January 19, 2009, 09:12:22 pm »
Hey all, sorry if this question has been asked before,
I'm new to SFML and was wondering if it supported particle systems and all.  Also are there any prebuilt collision libraries? Collision isn't that big of a deal (I have dealt with pixel perfect collision before, but I was wondering if there were any better built in collision or third party libs).  

I'm moving to SFML from SDL+OpenGl and have previously programmed in Java.  I'm planning on making a 2d sprite based spaceshooter thing with particle effects for explosions, lasers and such.  


Thanks, and sorry if I'm an obnoxious nub ;)

Pages: 1 ... 7 8 [9]