How to draw seven Tetris with straight lines?

How to draw seven Tetris with straight lines?
C++

under the statement "HDC hdc = BeginPaint(hWnd, &ps);" ?
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
The shapes are all made of squares
eg

1
2
3
4
5
6
7
[][][]
   [][][]

[][]
[][]

etc
Last edited on
Topic archived. No new replies allowed.