cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
How to draw seven Tetris with straight l
How to draw seven Tetris with straight lines?
Nov 7, 2020 at 12:45pm UTC
lynxcpp
(2)
How to draw seven Tetris with straight lines?
C++
under the statement "HDC hdc = BeginPaint(hWnd, &ps);" ?
Nov 7, 2020 at 1:07pm UTC
Thomas1965
(4571)
To draw a line you can use the LineTo function
https://docs.microsoft.com/en-us/windows/win32/api/wingdi/nf-wingdi-lineto
To move to the start pos use the MoveToEx function
https://docs.microsoft.com/en-us/windows/win32/api/wingdi/nf-wingdi-movetoex
Nov 7, 2020 at 5:31pm UTC
jonnin
(11443)
The shapes are all made of squares
eg
1
2
3
4
5
6
7
[][][] [][][] [][] [][] etc
Last edited on
Nov 7, 2020 at 5:31pm UTC
Topic archived. No new replies allowed.