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

Pages: [1] 2
1
Graphics / Re: How can i do Vertex to dynamic?
« on: December 11, 2016, 01:38:29 pm »
Nice, thank you very much.

2
Graphics / Re: How can i do Vertex to dynamic?
« on: December 11, 2016, 09:26:23 am »
Damn, its works, but it doing +1 line, i dont know why. CODE:

#include <SFML/Graphics.hpp>
#include <iostream>
#include <windows.h>
using namespace std;
using namespace sf;
int main()
{

RenderWindow window(sf::VideoMode(500, 500), "LINES");
int x,y;
vector<sf::Vertex> vertices;


    while (window.isOpen())
    {
        sf::Event event;
        while (window.pollEvent(event))
        {
            if (event.type == sf::Event::Closed)
                window.close();
            if (event.type == sf::Event::MouseButtonPressed)
                {
                if (event.mouseButton.button == sf::Mouse::Left)
                {
                    x = Mouse::getPosition().x - 394;   // Its doing mouse position for window
                    y = Mouse::getPosition().y - 259;   // Its doing mouse position for window
                    vertices.push_back(sf::Vertex(Vector2f(x,y)));
                }
                }
        }

       window.clear();
       if(vertices.size() != 0)
       {for(int i = 0;i < vertices.size();++i){window.draw(&vertices,vertices.size(),LinesStrip);}}


        window.display();
        }

    return 0;
}



3
Graphics / Re: How can i do Vertex to dynamic?
« on: December 11, 2016, 09:04:23 am »
SOLVED, I FIXED IT OVER VECTOR

4
Graphics / How can i do Vertex to dynamic?
« on: December 11, 2016, 08:54:00 am »
How can i do this to dynamic?(I am sorry for my bad english)

sf::Vertex vertices[5] =
{
    sf::Vertex(...),
    sf::Vertex(...),
    sf::Vertex(...),
    sf::Vertex(...),
    sf::Vertex(...)
};

5
Network / Re: Network - not LAN connection
« on: November 29, 2016, 01:46:23 pm »
So , i can't use listen(2000)? but i must use it on router?

6
Network / Network - not LAN connection
« on: November 28, 2016, 06:51:22 pm »
How can I connect to another pc without LAN. Thank you very much.   (I am sorry for my english)

7
Network / Re: Selectors tutorial for IDIOTS
« on: November 21, 2016, 07:50:06 pm »
+ It need more demonstrations.

8
Network / Re: Selectors tutorial for IDIOTS
« on: November 21, 2016, 07:48:29 pm »
Read it and you will see.
Compare with the new version.

9
Network / Re: Packet Errors
« on: November 21, 2016, 06:34:13 pm »
Please screen of the errors.

10
Use selectors.

11
Network / Re: Selectors tutorial for IDIOTS
« on: November 21, 2016, 06:19:13 pm »
Because tutorial on the web, isn't actual. And tutorial on youtube isn't for Idiots.

12
Network / Selectors tutorial for IDIOTS
« on: November 21, 2016, 06:09:20 pm »
Hello, can anyone make tutorial about selectors for Idiots? Thank you very much.

13
Network / Re: "socket.receive(packet) to if"
« on: November 20, 2016, 03:36:09 pm »
SOLVED, i need selectors

14
Network / "socket.receive(packet) to if"
« on: November 20, 2016, 03:22:52 pm »
How can i use "socket.receive(packet)" to "if" ? I need it for live chat.

15
General / Re: Text event, strange thing
« on: November 20, 2016, 03:18:05 pm »
fixed

Pages: [1] 2