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

Pages: [1]
1
Graphics / How move rectangle ?
« on: October 30, 2011, 03:17:34 pm »
like this?
Code: [Select]

#include "libs.h"
using namespace std;

int main()
{

    sf::Event Event;
    sf::IntRect r1(400, 400, 800, 800);
    sf::Image test;
    test.LoadFromFile("background.png");
    sf::Sprite test2;
    test2.SetImage(test);

    test2.SetSubRect(r1);


    sf::RenderWindow Window(sf::VideoMode(800,600,32),"aaa");
    while(Window.IsOpened())
    {
            while(Window.GetEvent(Event))
            {
                //Close Window
                if(Event.Type == sf::Event::Closed)
                Window.Close();


            }
  //  Window.Clear(sf::Color( 125,125,125 ));
    Window.Draw(test2);
    Window.Display();
    }






    return 0;
}


2
Graphics / How move rectangle ?
« on: October 30, 2011, 11:48:55 am »
i don't want draw shapes. i want cut out part from image, for example : I want cut out  only circle with this image.
http://ifotos.pl/zobacz/circlejpg_hqqwspn.jpg/

3
Graphics / How move rectangle ?
« on: October 26, 2011, 08:40:50 pm »
How move rectangle? I try set it on central position and i have problem with this.
 
Code: [Select]
sf::IntRect r1(200, 200, 400, 400);

http://ifotos.pl/zobacz/obrazekpn_hqawsrp.png/

4
Audio / Run-Time Check Failure #2 - Stack around the variable 'Music
« on: July 22, 2011, 11:02:10 pm »
It works. thx for help.

5
Audio / Run-Time Check Failure #2 - Stack around the variable 'Music
« on: July 22, 2011, 01:21:48 pm »
How do this?

6
Audio / Run-Time Check Failure #2 - Stack around the variable 'Music
« on: July 22, 2011, 11:38:32 am »
Quote from: "Laurent"
What's your OS, compiler, version of SFML?

Windows Vista 64bit,Visual studio 2010, SFML 1.6.
Quote from: "Laurent"
Does this happen with the official SFML examples?

Yes.

I added lib files in Linker / Input (sfml-system.lib ,sfml-audio-d.lib,sfml-audio-s-d.lib,sfml-audio.lib)

7
Audio / Run-Time Check Failure #2 - Stack around the variable 'Music
« on: July 21, 2011, 10:55:02 pm »
Hi!
I have this error when i  compile my program
Code: [Select]
Run-Time Check Failure #2 - Stack around the variable 'Music' was corrupted. Can you help me?
What is wrong with my nick? should be "Łukasz"

Pages: [1]