ReactOS  0.4.13-dev-479-gec9c8fd
cylfrac.c File Reference
#include <windows.h>
#include <GL/gl.h>
#include <GL/glu.h>
#include <tchar.h>
#include <scrnsave.h>
#include "resource.h"
Include dependency graph for cylfrac.c:

Go to the source code of this file.

Macros

#define APPNAME   _T("Cylfrac")
 
#define wfactor   0.9
 
#define rotfactor   1.5
 
#define FPS   100
 
#define timerdelay   1000/FPS
 

Functions

float _RGB (float H, float M1, float M2)
 
void HLStoRGB (float H, float L, float S, float *R, float *G, float *B)
 
void DrawCylinder (int n, float rota, float width)
 
void DrawScene (HWND hwnd, HDC dc, int ticks)
 
void CALLBACK TimeProc (UINT uID, UINT uMsg, DWORD_PTR dwUser, DWORD_PTR dw1, DWORD_PTR dw2)
 
void MyPixelFormat (HDC dc)
 
void InitGL (HWND hwnd)
 
LRESULT WINAPI ScreenSaverProc (HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
 
BOOL WINAPI ScreenSaverConfigureDialog (HWND hWnd, UINT message, WPARAM wparam, LPARAM lparam)
 
BOOL WINAPI RegisterDialogClasses (HANDLE hmodule)
 

Variables

POINT initpoint
 
HDC dc
 
HGLRC hrc
 
DWORD oldticks
 
MMRESULT TimerID
 
DWORD lvls = 7
 
int cylquality = 8
 
HINSTANCE hInstance
 
GLUquadricObjcylinder
 
float angle = 0
 
float colorh = 0.0
 
float rval
 
float gval
 
float bval
 
BOOL fullscreen = FALSE
 

Macro Definition Documentation

◆ APPNAME

#define APPNAME   _T("Cylfrac")

Definition at line 27 of file cylfrac.c.

◆ FPS

#define FPS   100

Definition at line 30 of file cylfrac.c.

◆ rotfactor

#define rotfactor   1.5

Definition at line 29 of file cylfrac.c.

◆ timerdelay

#define timerdelay   1000/FPS

Definition at line 31 of file cylfrac.c.

◆ wfactor

#define wfactor   0.9

Definition at line 28 of file cylfrac.c.

Function Documentation

◆ _RGB()

float _RGB ( float  H,
float  M1,
float  M2 
)

Definition at line 52 of file cylfrac.c.

53 {
54  if(H < 0.0) H += 360.0;
55  else if(H > 360.0) H -= 360.0;
56  if(H < 60) return M1 + (M2 - M1) * H / 60.0;
57  if((H >= 60 )&&(H < 180)) return M2;
58  if((H >= 180)&&(H < 240)) return M1 + (M2 - M1)*(240 - H) / 60.0;
59  return M1;
60 }
#define H

Referenced by HLStoRGB().

◆ DrawCylinder()

void DrawCylinder ( int  n,
float  rota,
float  width 
)

Definition at line 81 of file cylfrac.c.

82 {
83  glPushMatrix();
84  glColor3f(rval/n, gval/n, bval/n);
85  glRotatef(rota, 0.0, 1.0, 0.0);
87  glTranslatef(0.0, 0.0, -n * 0.5);
89  if(n > 1)
90  {
91  float r = rota * rotfactor;
92  glRotatef(90.0, 1.0, 0.0, 0.0);
93  DrawCylinder(n - 1, r, width * wfactor);
94  glTranslatef(0.0, n, 0.0);
95  DrawCylinder(n - 1, -r, width * wfactor);
96  }
97  glPopMatrix();
98 }
GLAPI void GLAPIENTRY glTranslatef(GLfloat x, GLfloat y, GLfloat z)
GLint GLint GLsizei width
Definition: gl.h:1546
GLdouble GLdouble GLdouble r
Definition: gl.h:2055
GLUquadricObj * cylinder
Definition: cylfrac.c:44
GLAPI void GLAPIENTRY glRotatef(GLfloat angle, GLfloat x, GLfloat y, GLfloat z)
GLdouble n
Definition: glext.h:7729
float gval
Definition: cylfrac.c:48
#define wfactor
Definition: cylfrac.c:28
void DrawCylinder(int n, float rota, float width)
Definition: cylfrac.c:81
#define gluCylinder
Definition: glu_mangle.h:43
float rval
Definition: cylfrac.c:48
GLAPI void GLAPIENTRY glPushMatrix(void)
GLAPI void GLAPIENTRY glPopMatrix(void)
#define rotfactor
Definition: cylfrac.c:29
int cylquality
Definition: cylfrac.c:40
GLAPI void GLAPIENTRY glColor3f(GLfloat red, GLfloat green, GLfloat blue)
float bval
Definition: cylfrac.c:48

Referenced by DrawScene().

◆ DrawScene()

void DrawScene ( HWND  hwnd,
HDC  dc,
int  ticks 
)

Definition at line 100 of file cylfrac.c.

101 {
102  PAINTSTRUCT ps;
103  dc = BeginPaint(hwnd, &ps);
105  glRotatef(ticks * 0.01, 0.0, 1.0, -0.5);
106  angle += ticks * 0.01;
107  colorh += ticks * 0.003;
108  if (colorh > 360.0) colorh -= 360.0;
109  HLStoRGB(colorh, 1.0, 0.7, &rval, &gval, &bval);
110  DrawCylinder(lvls, angle, 0.2);
111  SwapBuffers(dc);
112  EndPaint(hwnd, &ps);
113 }
float colorh
Definition: cylfrac.c:47
#define GL_COLOR_BUFFER_BIT
Definition: gl.h:716
GLAPI void GLAPIENTRY glClear(GLbitfield mask)
const DOCKBAR PVOID HWND HWND * hwnd
Definition: tooldock.h:22
#define GL_DEPTH_BUFFER_BIT
Definition: gl.h:710
GLAPI void GLAPIENTRY glRotatef(GLfloat angle, GLfloat x, GLfloat y, GLfloat z)
HDC dc
Definition: cylfrac.c:34
GLfloat angle
Definition: glext.h:10853
BOOL WINAPI EndPaint(_In_ HWND, _In_ const PAINTSTRUCT *)
float gval
Definition: cylfrac.c:48
HDC WINAPI BeginPaint(_In_ HWND, _Out_ LPPAINTSTRUCT)
DWORD lvls
Definition: cylfrac.c:39
void DrawCylinder(int n, float rota, float width)
Definition: cylfrac.c:81
BOOL WINAPI SwapBuffers(HDC)
Definition: wingl.c:187
void HLStoRGB(float H, float L, float S, float *R, float *G, float *B)
Definition: cylfrac.c:62
float rval
Definition: cylfrac.c:48
float bval
Definition: cylfrac.c:48

Referenced by ScreenSaverProc().

◆ HLStoRGB()

void HLStoRGB ( float  H,
float  L,
float  S,
float *  R,
float *  G,
float *  B 
)

Definition at line 62 of file cylfrac.c.

64 {
65  float M1, M2;
66  if(S <= 0.5) M2 = S * (1 + L);
67  else M2 = S * (1 - L) + L;
68  M1 = 2 * S - M2;
69  if (L == 0.0)
70  {
71  *R = S;
72  *G = S;
73  *B = S;
74  } else {
75  *R = _RGB(H + 120.0, M1, M2);
76  *G = _RGB(H , M1, M2);
77  *B = _RGB(H - 120.0, M1, M2);
78  }
79 }
#define R(b, x)
Definition: sha2.c:134
#define S(x)
Definition: test.h:190
Definition: movable.cpp:7
float _RGB(float H, float M1, float M2)
Definition: cylfrac.c:52
static const WCHAR L[]
Definition: oid.c:1250
#define G(x, y, z)
Definition: md5.c:52
#define B(row, col)
#define H

Referenced by DrawScene().

◆ InitGL()

void InitGL ( HWND  hwnd)

Definition at line 135 of file cylfrac.c.

136 {
137  GLfloat lightpos[4] = {2.0, 2.0, -2.0, 0.7};
138  GLfloat ca = 1.0;
139  dc = GetDC(hwnd);
140  MyPixelFormat(dc);
146  glLightfv(GL_LIGHT0, GL_POSITION, (GLfloat *)&lightpos);
150 }
#define gluNewQuadric
Definition: glu_mangle.h:36
const DOCKBAR PVOID HWND HWND * hwnd
Definition: tooldock.h:22
HDC WINAPI GetDC(_In_opt_ HWND)
GLUquadricObj * cylinder
Definition: cylfrac.c:44
HDC dc
Definition: cylfrac.c:34
HGLRC hrc
Definition: cylfrac.c:35
#define GL_LIGHT0
Definition: gl.h:311
void MyPixelFormat(HDC dc)
Definition: cylfrac.c:120
#define GL_COLOR_MATERIAL
Definition: gl.h:340
#define GL_LIGHTING
Definition: gl.h:310
GLAPI void GLAPIENTRY glEnable(GLenum cap)
GLAPI void GLAPIENTRY glLightfv(GLenum light, GLenum pname, const GLfloat *params)
BOOL WINAPI wglMakeCurrent(HDC hdc, HGLRC hglrc)
Definition: wgl.c:650
#define GL_DEPTH_TEST
Definition: gl.h:301
float GLfloat
Definition: gl.h:161
#define GL_POSITION
Definition: gl.h:329
#define GL_LINEAR_ATTENUATION
Definition: gl.h:322
static const WCHAR ca[]
Definition: main.c:457
HGLRC WINAPI wglCreateContext(HDC hdc)
Definition: wgl.c:383

Referenced by ScreenSaverProc().

◆ MyPixelFormat()

void MyPixelFormat ( HDC  dc)

Definition at line 120 of file cylfrac.c.

121 {
122  int npf;
124 
125  ZeroMemory(&pfd, sizeof(pfd));
126  pfd.nSize = sizeof(pfd);
127  pfd.nVersion = 1;
129 
130  npf = ChoosePixelFormat(dc, &pfd);
131  if(npf != 0)
132  SetPixelFormat(dc, npf, &pfd);
133 }
#define ZeroMemory
Definition: winbase.h:1635
HDC dc
Definition: cylfrac.c:34
BOOL WINAPI SetPixelFormat(_In_ HDC, _In_ int, _In_ const PIXELFORMATDESCRIPTOR *)
#define PFD_DOUBLEBUFFER
Definition: wingdi.h:300
int WINAPI ChoosePixelFormat(_In_ HDC hdc, _In_ const PIXELFORMATDESCRIPTOR *ppfd)
static PIXELFORMATDESCRIPTOR pfd
Definition: ssstars.c:67
#define PFD_SUPPORT_OPENGL
Definition: wingdi.h:305
#define PFD_DRAW_TO_WINDOW
Definition: wingdi.h:302

Referenced by InitGL().

◆ RegisterDialogClasses()

BOOL WINAPI RegisterDialogClasses ( HANDLE  hmodule)

Definition at line 213 of file cylfrac.c.

214 {
215  TCHAR szTitle[256];
216  TCHAR szText[256];
217 
219  IDS_TITLE,
220  szTitle,
221  256);
222 
224  IDS_TEXT,
225  szText,
226  256);
227 
228  MessageBox(0,
229  szText,
230  szTitle,
232  return FALSE;
233 }
#define MB_ICONWARNING
Definition: winuser.h:780
static const WCHAR szText[]
Definition: dialog.c:139
static HMODULE hmodule
Definition: rasapi.c:29
char TCHAR
Definition: xmlstorage.h:189
#define IDS_TITLE
Definition: resource.h:30
TCHAR szTitle[MAX_LOADSTRING]
Definition: magnifier.c:35
#define MessageBox
Definition: winuser.h:5688
#define MB_OK
Definition: winuser.h:784
#define IDS_TEXT
Definition: resource.h:3
#define LoadString
Definition: winuser.h:5685

◆ ScreenSaverConfigureDialog()

BOOL WINAPI ScreenSaverConfigureDialog ( HWND  hWnd,
UINT  message,
WPARAM  wparam,
LPARAM  lparam 
)

Definition at line 208 of file cylfrac.c.

209 {
210  return FALSE;
211 }

◆ ScreenSaverProc()

LRESULT WINAPI ScreenSaverProc ( HWND  hwnd,
UINT  msg,
WPARAM  wParam,
LPARAM  lParam 
)

Definition at line 152 of file cylfrac.c.

153 {
154  switch(msg) {
155  case WM_CREATE:
156  {
158  InitGL(hwnd);
161  }
162  break;
163  case WM_PAINT:
164  {
165  DWORD ticks = oldticks;
166  POINT currpoint;
168  DrawScene(hwnd, dc, oldticks - ticks);
169  if(fullscreen)
170  {
171  GetCursorPos(&currpoint);
172  if(abs(currpoint.x - initpoint.x) + (abs(currpoint.y - initpoint.y)) > 10)
173  PostMessage(hwnd, WM_CLOSE, 0, 0);
174  }
175  }
176  break;
177  case WM_DESTROY:
178  {
181  wglMakeCurrent(0, 0);
183  ReleaseDC(hwnd, dc);
184  DeleteDC(dc);
185  if (fullscreen)
186  ShowCursor(TRUE);
187  PostQuitMessage(0);
188  }
189  break;
190  case WM_SIZE:
191  {
192  int width = LOWORD(lParam);
193  int height = HIWORD(lParam);
194  float fscale;
195  glViewport(0, 0, width, height);
197  glLoadIdentity();
198  fscale = 0.8/(float)lvls;
199  glScalef(fscale, fscale, fscale);
200  }
201  break;
202  default:
204  }
205  return 0;
206 }
#define abs(i)
Definition: fconv.c:206
const DOCKBAR PVOID HWND HWND * hwnd
Definition: tooldock.h:22
GLint GLint GLsizei width
Definition: gl.h:1546
#define TRUE
Definition: types.h:120
BOOL WINAPI wglDeleteContext(HGLRC hglrc)
Definition: wgl.c:514
long y
Definition: polytest.cpp:48
GLAPI void GLAPIENTRY glMatrixMode(GLenum mode)
long x
Definition: polytest.cpp:48
GLUquadricObj * cylinder
Definition: cylfrac.c:44
DWORD WINAPI GetTickCount(VOID)
Definition: time.c:445
#define timerdelay
Definition: cylfrac.c:31
HDC dc
Definition: cylfrac.c:34
void ShowCursor(void)
Definition: hardware.c:556
HGLRC hrc
Definition: cylfrac.c:35
BOOL WINAPI GetCursorPos(_Out_ LPPOINT)
Definition: cursoricon.c:2635
MMRESULT WINAPI timeSetEvent(UINT wDelay, UINT wResol, LPTIMECALLBACK lpFunc, DWORD_PTR dwUser, UINT wFlags)
Definition: time.c:359
WPARAM wParam
Definition: combotst.c:138
MMRESULT TimerID
Definition: cylfrac.c:37
int WINAPI ReleaseDC(_In_opt_ HWND, _In_ HDC)
BOOL fullscreen
Definition: cylfrac.c:50
DWORD lvls
Definition: cylfrac.c:39
MMRESULT WINAPI timeKillEvent(UINT wID)
Definition: time.c:369
GLAPI void GLAPIENTRY glScalef(GLfloat x, GLfloat y, GLfloat z)
#define WM_DESTROY
Definition: winuser.h:1591
#define PostMessage
Definition: winuser.h:5698
POINT initpoint
Definition: cylfrac.c:33
#define WM_SIZE
Definition: winuser.h:1593
DWORD oldticks
Definition: cylfrac.c:36
#define WM_CLOSE
Definition: winuser.h:1603
unsigned long DWORD
Definition: ntddk_ex.h:95
void DrawScene(HWND hwnd, HDC dc, int ticks)
Definition: cylfrac.c:100
#define WM_PAINT
Definition: winuser.h:1602
void InitGL(HWND hwnd)
Definition: cylfrac.c:135
void CALLBACK TimeProc(UINT uID, UINT uMsg, DWORD_PTR dwUser, DWORD_PTR dw1, DWORD_PTR dw2)
Definition: cylfrac.c:115
uint32_t DWORD_PTR
Definition: typedefs.h:63
BOOL WINAPI wglMakeCurrent(HDC hdc, HGLRC hglrc)
Definition: wgl.c:650
GLint GLint GLsizei GLsizei height
Definition: gl.h:1546
#define gluDeleteQuadric
Definition: glu_mangle.h:37
BOOL WINAPI DeleteDC(_In_ HDC)
GLAPI void GLAPIENTRY glViewport(GLint x, GLint y, GLsizei width, GLsizei height)
GLAPI void GLAPIENTRY glLoadIdentity(void)
#define GL_MODELVIEW
Definition: gl.h:245
#define msg(x)
Definition: auth_time.c:54
#define WM_CREATE
Definition: winuser.h:1590
#define HIWORD(l)
Definition: typedefs.h:246
LRESULT WINAPI DefScreenSaverProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam)
Definition: scrnsave.c:95
#define TIME_PERIODIC
Definition: mmsystem.h:422
LPARAM lParam
Definition: combotst.c:139
#define LOWORD(l)
Definition: pedump.c:82
__analysis_noreturn void WINAPI PostQuitMessage(_In_ int)

◆ TimeProc()

void CALLBACK TimeProc ( UINT  uID,
UINT  uMsg,
DWORD_PTR  dwUser,
DWORD_PTR  dw1,
DWORD_PTR  dw2 
)

Definition at line 115 of file cylfrac.c.

116 {
117  InvalidateRect((HWND)dwUser, NULL, 0);
118 }
smooth NULL
Definition: ftsmooth.c:416
BOOL WINAPI InvalidateRect(_In_opt_ HWND, _In_opt_ LPCRECT, _In_ BOOL)

Referenced by ScreenSaverProc().

Variable Documentation

◆ angle

float angle = 0

Definition at line 46 of file cylfrac.c.

◆ bval

float bval

◆ colorh

float colorh = 0.0

Definition at line 47 of file cylfrac.c.

Referenced by DrawScene().

◆ cylinder

◆ cylquality

int cylquality = 8

Definition at line 40 of file cylfrac.c.

Referenced by DrawCylinder().

◆ dc

HDC dc

Definition at line 34 of file cylfrac.c.

Referenced by _Function_class_(), _Success_(), add_children_to_move_list(), add_dir_child(), add_log_points(), add_log_points_new_stroke(), add_module(), AddPenLinesBounds(), append(), arm64_fetch_minidump_thread(), arm_fetch_minidump_thread(), array_tests(), AtlHiMetricToPixel(), AtlPixelToHiMetric(), BITMAP_CopyImage(), bus_query_capabilities(), check_pyramid_doub_carr(), CloseEnhMetaFile(), CloseMetaFile(), context_restore_gl_context(), context_restore_pixel_format(), context_set_pixel_format(), create_render_dc(), create_stream(), create_subvol(), CreateEnhMetaFileW(), CreateMetaFileW(), d3d9_surface_GetDC(), d3d9_surface_ReleaseDC(), d3drm_device_win_HandlePaint(), DceResetActiveDCEs(), DCU_SetDcUndeletable(), ddraw4_GetSurfaceFromDC(), ddraw7_GetSurfaceFromDC(), ddraw_surface1_GetDC(), ddraw_surface1_ReleaseDC(), ddraw_surface2_GetDC(), ddraw_surface2_ReleaseDC(), ddraw_surface3_GetDC(), ddraw_surface3_ReleaseDC(), ddraw_surface4_GetDC(), ddraw_surface4_ReleaseDC(), ddraw_surface7_GetDC(), delete_render_dc(), DIALOG_CreateIndirect(), DIB_CreateDIBSection(), do_create_snapshot(), DrawScene(), dump_exception_info(), dump_memory_info(), dump_misc_info(), dump_modules(), dump_system_info(), dump_threads(), EDIT_EM_SetMargins(), EDIT_PaintLine(), EDIT_PaintText(), EDIT_UpdateUniscribeData(), EDIT_UpdateUniscribeData_linedef(), EDIT_WM_NCPaint(), EDIT_WM_Paint(), EDIT_WM_SetFont(), EMFDRV_ArcChordPie(), EMFDRV_BeginPath(), EMFDRV_Ellipse(), EMFDRV_ExtTextOut(), EMFDRV_LineTo(), EMFDRV_Polylinegon(), EMFDRV_Rectangle(), EMFDRV_RestoreDC(), EMFDRV_RoundRect(), EMFDRV_SetDCBrushColor(), EMFDRV_SetDCPenColor(), emfdrv_stroke_and_fill_path(), emfpathdrv_AbortPath(), emfpathdrv_EndPath(), fetch_elf_module_info_cb(), fetch_macho_module_info_cb(), fetch_modules_info(), fetch_pe_module_info_cb(), fetch_process_info(), fetch_thread_info(), fetch_thread_stack(), file_create2(), fill_in_file_stream_information(), FillPolygon(), FillSolidRect(), find_dc_driver(), find_file_in_dir(), finish_inode(), flush_refs(), format_string_callback(), free_pyramid_doub_carr(), ftGdiGetGlyphOutline(), ftGdiGetTextMetricsW(), GdiFlushUserBatch(), GdipAddPathString(), GdiSelectVisRgn(), get_points_bounds(), get_window_region(), StartMenuRoot::GetLogoResId(), GetSurfaceFromDC(), GraphCtrl_InvalidateCtrl(), GraphCtrl_Paint(), GreDPtoLP(), GreExtTextOutW(), GreGetBkColor(), GreGetBkMode(), GreGetDCOrgEx(), GreGetGraphicsMode(), GreGetKerningPairs(), GreGetMapMode(), GreGetTextColor(), GreLPtoDP(), GreMoveTo(), GreSetDCOrg(), GreSetViewportOrgEx(), i386_fetch_minidump_thread(), InitGL(), insert_dir_child_into_hash_lists(), IntAnimatePalette(), IntArc(), IntDrawArc(), IntDrawEllipse(), IntDrawRoundRect(), IntEngGradientFillRect(), IntEngGradientFillTriangle(), INTERNAL_LPTODP_FLOAT(), IntExtTextOutW(), IntFillArc(), IntFillEllipse(), IntFillPolygon(), IntFillRect(), IntFillRoundRect(), IntGdiArcInternal(), IntGdiCleanDC(), IntGdiLineTo(), IntGdiMoveToEx(), IntGdiPolyBezier(), IntGdiPolyBezierTo(), IntGdiPolygon(), IntGdiPolyline(), IntGdiPolylineTo(), IntGdiPolyPolygon(), IntGdiPolyPolyline(), IntGdiSetBkColor(), IntGdiSetBkMode(), IntGdiSetHookFlags(), IntGdiSetMapMode(), IntGdiSetTextAlign(), IntGetCurrentPositionEx(), IntGetSystemPaletteEntries(), IntMirrorWindowOrg(), IntRectangle(), IntRoundRect(), IntSetDCBrushColor(), IntSetDCPenColor(), IOCS_OnDraw(), LISTVIEW_NCPaint(), load_dir_children(), make_file_orphan(), map_event(), MENU_DrawPopupGlyph(), MFDRV_AllocMetaFile(), MFDRV_CloseMetaFile(), mi_clip(), mi_paint_rect(), minidump_add_memory_block(), MiniDumpWriteDump(), mknod(), MyDrawFrameCaption(), MyDrawFrameScroll(), MyPixelFormat(), nc_paint(), next_dir_entry(), NtGdiAbortPath(), NtGdiArcInternal(), NtGdiBeginPath(), NtGdiCreateDIBSection(), NtGdiEllipse(), NtGdiEndPath(), NtGdiEscape(), NtGdiExtFloodFill(), NtGdiExtSelectClipRgn(), NtGdiFillPath(), NtGdiGetCharABCWidthsW(), NtGdiGetCharWidthW(), NtGdiGetDeviceGammaRamp(), NtGdiGetDeviceWidth(), NtGdiGetGlyphIndicesW(), NtGdiGetGlyphOutline(), NtGdiGetKerningPairs(), NtGdiGetNearestColor(), NtGdiGetOutlineTextMetricsInternalW(), NtGdiGetPath(), NtGdiGetTextExtentExW(), NtGdiLineTo(), NtGdiMirrorWindowOrg(), NtGdiOffsetViewportOrgEx(), NtGdiOffsetWindowOrgEx(), NtGdiPolyDraw(), NtGdiPolyPolyDraw(), NtGdiPtVisible(), NtGdiRectangle(), NtGdiRectVisible(), NtGdiRoundRect(), NtGdiSetDeviceGammaRamp(), NtGdiSetSizeDevice(), NtGdiSetViewportOrgEx(), NtGdiSetVirtualResolution(), NtGdiSetWindowOrgEx(), nulldrv_BeginPath(), CBrandBand::OnPaint(), CZipExtract::CCompleteSettingsPage::OnSetActive(), open_fcb(), open_fcb_stream(), open_file2(), open_fileref_child(), paint_scrollbar(), PATH_Arc(), PATH_CheckCorners(), PATH_Ellipse(), PATH_ExtTextOut(), PATH_FillPath(), PATH_FillPathEx(), PATH_LineTo(), PATH_MoveTo(), PATH_PolyBezier(), PATH_PolyBezierTo(), PATH_PolyDraw(), PATH_PolylineTo(), PATH_PolyPolygon(), PATH_PolyPolyline(), PATH_Rectangle(), PATH_RoundRect(), PATH_StrokePath(), PATH_WidenPath(), pathdrv_AbortPath(), pathdrv_EndPath(), plugin_proc(), Polygon(), POLYGONFILL_FillScanLineAlternate(), POLYGONFILL_FillScanLineWinding(), pop_dc_driver(), query_directory(), reap_fcb(), remove_dir_child_from_hash_lists(), run_operator(), s_make_pyramid_doub_carr(), s_sum_doub_carr(), ScreenSaverProc(), set_installer_properties(), set_link_information(), START_TEST(), swapchain_gdi_present(), test_destroy(), test_destroyed_window(), test_enumdisplaydevices(), test_EnumICMProfilesA(), test_EnumICMProfilesW(), test_GdipDrawImagePointsRectOnMemoryDC(), test_GdipFillRectanglesOnMemoryDCSolidBrush(), test_GdipFillRectanglesOnMemoryDCTextureBrush(), test_GdipGetVisibleClipBounds_memoryDC(), test_GetDIBits_selected_DDB(), test_GetDIBits_selected_DIB(), test_GetICMProfileA(), test_GetICMProfileW(), test_GetTextFace(), test_long_names(), test_message_window(), test_minimized(), test_SetICMMode(), test_SetICMProfileA(), test_SetICMProfileW(), test_SetWinMetaFileBits(), test_text_position_style(), test_window_dc(), TextIntGetTextExtentPoint(), TextIntUpdateSize(), TREEVIEW_NCPaint(), UDFPackDirectory__(), UITOOLS95_DFC_ButtonCheckRadio(), UITOOLS95_DFC_ButtonPush(), UITOOLS95_DrawFrameCaption(), UITOOLS95_DrawFrameMenu(), UITOOLS95_DrawFrameScroll(), UITOOLS_DrawCheckedRect(), VfdToolTip(), wined3d_adapter_init_fb_cfgs(), wined3d_palette_apply_to_dc(), wined3d_release_dc(), wined3d_swapchain_get_gamma_ramp(), wined3d_swapchain_set_gamma_ramp(), wined3d_texture_cleanup(), wined3d_texture_get_dc(), wined3d_texture_release_dc(), WndProc(), writeat(), x86_64_fetch_minidump_module(), and x86_64_fetch_minidump_thread().

◆ fullscreen

BOOL fullscreen = FALSE

Definition at line 50 of file cylfrac.c.

Referenced by ScreenSaverProc().

◆ gval

float gval

Definition at line 48 of file cylfrac.c.

Referenced by DrawCylinder(), and DrawScene().

◆ hInstance

HINSTANCE hInstance

Definition at line 42 of file cylfrac.c.

◆ hrc

HGLRC hrc

Definition at line 35 of file cylfrac.c.

Referenced by InitGL(), and ScreenSaverProc().

◆ initpoint

POINT initpoint

Definition at line 33 of file cylfrac.c.

Referenced by ScreenSaverProc().

◆ lvls

DWORD lvls = 7

Definition at line 39 of file cylfrac.c.

Referenced by DrawScene(), and ScreenSaverProc().

◆ oldticks

DWORD oldticks

Definition at line 36 of file cylfrac.c.

Referenced by ScreenSaverProc().

◆ rval

◆ TimerID

MMRESULT TimerID

Definition at line 37 of file cylfrac.c.

Referenced by DDOffscreenBufferTest(), DDPrimarySurfaceTest(), and ScreenSaverProc().