-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstub.cpp
More file actions
37 lines (27 loc) · 825 Bytes
/
stub.cpp
File metadata and controls
37 lines (27 loc) · 825 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
/*
Стартов файл за използване на SDL обвиваката paint.
Кпирайте и модифицирайте този файл, за да създадете своята програма.
*/
/*
#include "cpppainter/sdlwrapper.h"
int main()
{
paint::drawLine(0,0,200,200);
paint::turtle::jump(200,200);
paint::turtle::down();
for(int i=0;i<4;i++)
{
paint::turtle::forward(100);
paint::turtle::right(90);
}
paint::drawText(220,230,20,"Hello!");
paint::updateGraphics();
paint::waitKeypress();
return 0;
}
int SDL_main(int argc, char* argv[]) {
// Това е необходимо за SDL под Windows:
// библиотекат сменя входната точка на програмата
return main();
}
*/