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

Pages: [1]
1
System / Re: Elapsed time: MIA
« on: November 22, 2012, 03:47:44 am »
A million "thank you"s :D

2
System / Elapsed time: MIA
« on: November 22, 2012, 03:17:41 am »
I'm not sure if this has been brought up before, but whatever happened to the getElapsedTime() feature in 2.0? Are there any equivelant functions?

3
fixed that, thanks :D

4
It stops compiling at sf::Sprite grass(terrain);

5
My problem is that sf::Sprite setImage() isnt working.
error: no matching function for call to 'sf::Sprite::Sprite(sf::Image&)'
That is the error i am recieving unpon compile.

I'm using windown ;)

6
I'm getting kinda mad at sfml 2.0. I set up my sprite stuff JUST LIKE the Docs said to. and i get "error: no matching function call for (sf::Sprite::Sprite(sf::Image&)

here's my code.

#include <SFML/System.hpp>
#include <SFML/Window.hpp>
#include <SFML/Graphics.hpp>
#include <cstdio>
#include <cstdlib>
#include <iostream>

int main(int argc, char**argv)
{
    sf::RenderWindow app(sf::VideoMode(800,640), "Sfml works!");
    sf::Text text("Welcome to SFML 2.0");
    text.setPosition(400,320);

    sf::Image terrain;
    if(terrain.loadFromFile("terrain.png"))
    {
        return EXIT_FAILURE;
    }


    sf::Sprite grass(terrain);
    grass.setTextureRect(IntRect(0,0,45,45);
    grass.setX(100,100);
    while(app.isOpen())
    {


        sf::Event Event;
        while(app.pollEvent(Event))
        {
            if(Event.type == sf::Event::Closed)
            {
                app.close();
            }
        }

    app.clear();
    app.draw(grass);
    app.draw(text);

    app.display();
    }
    return 0;
}
 

7
General / Re: Compiling a project with C::B
« on: May 20, 2012, 10:30:26 pm »
THANK YOU SO MUCH :DDD

Ok i'm done. Sorry for being a pest.

8
General / Re: Compiling a project with C::B
« on: May 20, 2012, 09:24:54 pm »
One more question then i'll shut up for awhile.

When i try to run a program outside of C::B it tells me i need libgcc_(something or other).dll

I can't seem to find that in SFML files. Is it a CMake thing i need to do?

9
General / Re: Compiling a project with C::B
« on: May 20, 2012, 09:02:17 pm »
Just says command line

10
General / Re: Compiling a project with C::B
« on: May 20, 2012, 08:56:31 pm »
Thanks ;D -wall helped all but the

"missing whitespace after macro name"

Any idea what that is?

11
General / Re: Compiling a project with C::B
« on: May 20, 2012, 08:17:06 pm »
Sorry. Here's some examples:

Example A) G:\Programming\CPP stuff\APIs\SFML-1.6\include/SFML/System/Win32/Thread.hpp:45: warning: base class 'struct sf::NonCopyable' has a non-virtual destructor
G:\Programming\CPP stuff\APIs\SFML-1.6\include/SFML/System/Win32/Thread.hpp:45: warning: 'class sf::Thread' has pointer data members
G:\Programming\CPP stuff\APIs\SFML-1.6\include/SFML/System/Win32/Thread.hpp:45: warning:   but does not override 'sf::Thread(const sf::Thread&)'
G:\Programming\CPP stuff\APIs\SFML-1.6\include/SFML/System/Win32/Thread.hpp:45: warning:   or 'operator=(const sf::Thread&)'


Example B) G:\Programming\CPP stuff\APIs\SFML-1.6\include/SFML/System/Win32/Mutex.hpp:46: warning: base class 'struct sf::NonCopyable' has a non-virtual destructor

Example C) <command-line>: warning: missing whitespace after the macro name

Thanks again :)

12
General / Compiling a project with C::B
« on: May 20, 2012, 03:40:23 pm »
Hello.

When compiling with Code::Blocks, is it normal to get 20+warnings about a class having pointer members?

Thanks for your help :D

Pages: [1]