ReactOS 0.4.16-dev-306-g647d351
matrix.h
Go to the documentation of this file.
1#ifndef MATRIX_INCLUDED
2#define MATRIX_INCLUDED
3
4#ifdef __cplusplus
5extern "C" {
6#endif
7
8//
9// Top BYTE of each glyph is used as flags
10// (redraw state, intensity etc)
11//
12// Bottom BYTE of each glyph is the character value
13//
14// Bit: 15 14 13-8 | 7-0
15//
16// [Redraw][Blank][Intensity] [Glyph]
17//
18typedef unsigned short GLYPH;
19
20#define GLYPH_REDRAW 0x8000
21#define GLYPH_BLANK 0x4000
22
23//
24// The "matrix" is basically an array of these
25// column structures, positioned side-by-side
26//
27typedef struct
28{
31
33 int runlen;
34
37
38 int length;
40
42
43typedef struct
44{
45 int width;
46 int height;
49
50 // bitmap containing glyphs.
53
55
57
58} MATRIX;
59
60GLYPH RandomGlyph(int intensity);
61void DrawGlyph(MATRIX *matrix, HDC hdc, int xpos, int ypos, GLYPH glyph);
62
65
66#ifdef __cplusplus
67}
68#endif
69
70#endif
static HWND hwndParent
Definition: cryptui.c:300
unsigned int BOOL
Definition: ntddk_ex.h:94
GLuint GLenum matrix
Definition: glext.h:9407
unsigned short GLYPH
Definition: matrix.h:18
HWND CreateScreenSaveWnd(HWND hwndParent, RECT *rect)
Definition: matrix.c:390
GLYPH RandomGlyph(int intensity)
Definition: matrix.c:45
void DrawGlyph(MATRIX *matrix, HDC hdc, int xpos, int ypos, GLYPH glyph)
Definition: matrix.c:167
void InitScreenSaveClass()
HDC hdc
Definition: main.c:9
static HBITMAP
Definition: button.c:44
static HDC
Definition: imagelist.c:88
& rect
Definition: startmenu.cpp:1413
int countdown
Definition: matrix.h:30
int blippos
Definition: matrix.h:35
GLYPH * glyph
Definition: matrix.h:39
BOOL state
Definition: matrix.h:29
int runlen
Definition: matrix.h:33
int bliplen
Definition: matrix.h:36
int length
Definition: matrix.h:38
BOOL started
Definition: matrix.h:32
Definition: matrix.h:44
HDC hdcBitmap
Definition: matrix.h:51
int numcols
Definition: matrix.h:47
int height
Definition: matrix.h:46
int numrows
Definition: matrix.h:48
MATRIX_MESSAGE * message
Definition: matrix.h:54
int width
Definition: matrix.h:45
HBITMAP hbmBitmap
Definition: matrix.h:52