How to draw seven Tetris with straight lines?

Nov 7, 2020 at 12:45pm
How to draw seven Tetris with straight lines?
C++

under the statement "HDC hdc = BeginPaint(hWnd, &ps);" ?
Nov 7, 2020 at 1:07pm
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
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
Topic archived. No new replies allowed.