Search
 
SCRIPT & CODE EXAMPLE
 

CPP

sfml draw line

sf::Vertex line[] =
{
    sf::Vertex(sf::Vector2f(10, 10)),
    sf::Vertex(sf::Vector2f(150, 150))
};

window.draw(line, 2, sf::Lines);
Comment

draw line sfml

sf::RectangleShape line(sf::Vector2f(150, 5));
line.rotate(45);
Comment

PREVIOUS NEXT
Code Example
Cpp :: c++ vector decimal to binary 
Cpp :: qstring mid 
Cpp :: print stack c++ 
Cpp :: qchar to char 
Cpp :: How to make two dimensional string in c++ 
Cpp :: unreal engine delay c++ 
Cpp :: c++ hello word 
Cpp :: c++ file is empty 
Cpp :: sort a vector of strings according to their length c++ 
Cpp :: maximum in vector 
Cpp :: on component end overlap c++ 
Cpp :: C++ red text output 
Cpp :: c++ fill array with 0 
Cpp :: should i learn c or c++ 
Cpp :: rotation to vector2 godot 
Cpp :: how to fix class friendship errors in c++ 
Cpp :: how to create a pair of double quotes in c++ 
Cpp :: c++ writing to file 
Cpp :: xmake run with arg 
Cpp :: compile notepad++ c++ 
Cpp :: differency between c++ std and stl 
Cpp :: sort in descending order c++ stl 
Cpp :: size of 2d array in c++ 
Cpp :: c++ get last character of string 
Cpp :: how to clear screen in C++ console 
Cpp :: float max value c++ 
Cpp :: replace komma with space C++ 
Cpp :: c++ lcm 
Cpp :: C++ convert integer to digits, as vector 
Cpp :: queue in c++ 
ADD CONTENT
Topic
Content
Source link
Name
4+1 =