-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathExample11.cpp
More file actions
48 lines (48 loc) · 1016 Bytes
/
Example11.cpp
File metadata and controls
48 lines (48 loc) · 1016 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
//#include<iostream>
//#include"SFML\Graphics.hpp"
//#include"SFML\Window.hpp"
//#include"SFML\System.hpp"
//
//using namespace sf;
//
//int main()
//{
// RenderWindow window(VideoMode(800, 600), "Text intro", Style::Default);
// window.setFramerateLimit(60);
//
// Font font;
// if (!font.loadFromFile("Fonts/Metropolian-Display.ttf"))
// throw("COULD NOT LOAD FONT!");
//
// Text text;
// text.setFont(font);
// text.setCharacterSize(24);
// text.setColor(Color::Red);
// text.setStyle(Text::Bold);
// text.setString("HEY I AM A STRING OF TEXT IN SFML BRAH!");
// text.setPosition(10.f, window.getSize().y / 2);
//
// while (window.isOpen())
// {
// Event event;
// while (window.pollEvent(event))
// {
// if (event.type == Event::Closed)
// window.close();
// }
//
// text.move(5.f, 0.f);
//
// if (text.getPosition().x > window.getSize().x)
// text.setPosition(0.f, text.getPosition().y);
//
// //Draw
// window.clear();
//
// window.draw(text);
//
// window.display();
// }
//
// return 0;
//}