32 lines
576 B
C
32 lines
576 B
C
#pragma once
|
|
|
|
#include <Windows.h>
|
|
|
|
#define Length 5
|
|
|
|
enum images {
|
|
i_triangle,
|
|
i_arrow,
|
|
i_diamond,
|
|
i_flag,
|
|
i_crown
|
|
};
|
|
|
|
typedef struct Image_cords {
|
|
int x;
|
|
int y;
|
|
int vx;
|
|
int vy;
|
|
COLORREF color;
|
|
void (*func)(HDC, int, int, COLORREF);
|
|
} IMAGE;
|
|
|
|
void triangle(HDC hdc, int x, int y, COLORREF color);
|
|
void arrow(HDC hdc, int x, int y, COLORREF color);
|
|
void diamond(HDC hdc, int x, int y, COLORREF color);
|
|
void flag(HDC hdc, int x, int y, COLORREF color);
|
|
void crown(HDC hdc, int x, int y, COLORREF color);
|
|
|
|
void pattern1(HDC hdc, void (*f)(HDC, int, int, COLORREF));
|
|
|