31
Graphics / Can't load sf::Sprite from a function
« on: August 01, 2009, 06:13:25 pm »
Create a resource manager that has a container and add/remove methods.
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.
Are the .pdb files in the same folder as the lib's? Did you build it your self?
You still need to link against the static libraries. For example sfml-system-s.lib.
sfml-graphics-s-d.lib
sfml-window-s-d.lib
sfml-system-s-d.lib
Refer to the tutorials getting started section. It will tell you what to do.
Important: if you link against the dynamic libraries, you have to define the SFML_DYNAMIC macro in your project's settings. If you don't, you'll get linker errors when compiling your application.
This means that the linker cannot find the debugging symbols for the SFML libraries.
Yes this project does use SFML, NOT gamemaker
i'm sorry for those that this project does not work for...
all i can say is that in future versions i shall be looking for ways to increase the compatiblity with vista!
anyways, any suggestions on how to do this would be great
sf::Image imCursor;
imCursor.LoadFromFile(...);
Paddle1.GetY
Paddle1.GetY()
class Paddle {
private:
sf::Shape self;
public:
Paddle() {
self = sf::Shape::Rectangle( 0.f, 0.f, 10.f, 100.f, sf::Color( 255, 255, 255 ) );
}
Paddle( float X, float Y ) {
self.Move( X, Y );
}
void Move( float X, float Y ) {
self.Move( X, Y );
}
void SetX( float X ) {
self.SetX( X );
}
void SetY( float Y ) {
self.SetY( Y );
}
float GetX() {
return ( self.GetPosition().x );
}
float GetY() {
return ( self.GetPosition().y );
}
sf::Shape Draw() {
return ( self );
}
};
float lengthdir_x( float Length, float Direction ) {
return ( std::cos( -Direction*( 3.14159265/180 ) ) * Length );
}
float lengthdir_y( float Length, float Direction ) {
return ( std::sin( -Direction*( 3.14159265/180 ) ) * Length );
}