|
ReactOS 0.4.17-dev-1266-g5d5a280
|
#include <windows.h>#include <GL/gl.h>#include <stdio.h>#include <stdlib.h>#include <string.h>#include <math.h>
Go to the source code of this file.
Classes | |
| struct | _MODE |
Macros | |
| #define | M_PI 3.14159265358979323846 |
| #define | MAX_MODES 16 |
| #define | TIMER_SWITCH 1 |
Typedefs | |
| typedef struct _MODE | MODE |
Functions | |
| static void | Report (const char *msg) |
| static void | Log (const char *fmt,...) |
| static void | gear (GLfloat inner, GLfloat outer, GLfloat width, GLint teeth, GLfloat depth) |
| static GLuint | MakeGear (const GLfloat *color, GLfloat inner, GLfloat outer, GLfloat width, GLint teeth) |
| static void | InitGL (void) |
| static void | DrawWrapped (int *y, const char *text, int cols) |
| static void | DrawOverlay (void) |
| static void | Reshape (int width, int height) |
| static void | CountFrame (void) |
| static void | Draw (void) |
| static void | FitToScreen (void) |
| static void | SetFullscreen (BOOL bFullscreen) |
| static const char * | DispChangeName (LONG ret) |
| static void | SwitchMode (int index) |
| static void | NextMode (void) |
| static void | Usage (void) |
| static LRESULT CALLBACK | WndProc (HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam) |
| static BOOL | ParseArgs (void) |
| int WINAPI | WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) |
Variables | |
| static HWND | g_hwnd |
| static HDC | g_hdc |
| static HGLRC | g_hglrc |
| static GLuint | g_gear1 |
| static GLuint | g_gear2 |
| static GLuint | g_gear3 |
| static GLuint | g_FontBase |
| static int | g_CharW = 8 |
| static int | g_CharH = 16 |
| static BOOL | g_ShowOverlay = TRUE |
| static char | g_Status [128] |
| static char | g_Renderer [128] |
| static char | g_Fps [32] |
| static const char * | g_HelpLines [] |
| static MODE | g_Modes [MAX_MODES] |
| static int | g_nModes |
| static int | g_CurMode = -1 |
| static BOOL | g_Fullscreen |
| static BOOL | g_Restore = TRUE |
| static BOOL | g_ExitWhenDone |
| static UINT | g_Interval = 2000 |
| static BOOL | g_AutoSwitch |
| static int | g_SwitchesLeft = -1 |
| static DWORD | g_SavedStyle |
| static RECT | g_SavedRect |
| #define M_PI 3.14159265358979323846 |
Definition at line 17 of file glmodeswitch.c.
| #define MAX_MODES 16 |
Definition at line 20 of file glmodeswitch.c.
| #define TIMER_SWITCH 1 |
Definition at line 21 of file glmodeswitch.c.
Definition at line 309 of file glmodeswitch.c.
Referenced by Draw().
Definition at line 393 of file glmodeswitch.c.
Referenced by SwitchMode().
Definition at line 324 of file glmodeswitch.c.
Referenced by DECLARE_INTERFACE_(), ATL::CImage::Draw(), CardButton::Redraw(), ViewDlg_OnTreeCustomDraw(), WinMain(), and WndProc().
Definition at line 257 of file glmodeswitch.c.
Referenced by Draw().
Definition at line 227 of file glmodeswitch.c.
Referenced by DrawOverlay().
Definition at line 362 of file glmodeswitch.c.
Referenced by SetFullscreen(), and SwitchMode().
Definition at line 80 of file glmodeswitch.c.
Referenced by MakeGear().
Definition at line 199 of file glmodeswitch.c.
Referenced by OnCreate(), ScreenSaverProc(), and WinMain().
Definition at line 69 of file glmodeswitch.c.
Referenced by CmpInitializeHive(), CmpOpenHiveFiles(), EncodeRecordSize(), FatLogOf(), NdisMCloseLog(), NdisMCreateLog(), NdisMFlushLog(), SetupInitializeFileLogW(), SetupTerminateFileLog(), and SwitchMode().
|
static |
Definition at line 189 of file glmodeswitch.c.
Referenced by InitGL().
Definition at line 527 of file glmodeswitch.c.
Referenced by WinMain().
Definition at line 58 of file glmodeswitch.c.
Referenced by HandleLinkStateChange(), HidP_GetScaledUsageValue(), HidP_GetUsages(), HidP_GetUsagesEx(), HidP_GetUsageValue(), HidParser_AddMainItem(), HidParser_AllocateReport(), HidParser_GetMaxUsageListLengthWithReportAndPage(), HidParser_GetReportItemCountFromReportType(), HidParser_GetReportItemTypeCountFromReportType(), HidParser_GetReportLength(), HidParser_GetScaledUsageValue(), HidParser_GetScaledUsageValueWithReport(), HidParser_GetSpecificValueCapsWithReport(), HidParser_GetUsages(), HidParser_GetUsagesEx(), HidParser_GetUsagesWithReport(), HidParser_GetUsageValue(), HidParser_GetUsageValueWithReport(), HidParser_InitReportItem(), HidParser_ParseReportDescriptor(), HidParser_ReserveReportItems(), HidParser_SearchReportInCollection(), HidParser_UpdateCollectionReport(), HidParser_UpdateCurrentCollectionReport(), HidParser_UsesReportId(), HidUsb_GetReportDescriptor(), Log(), MediaMonitor21040Dpc(), MediaMonitor21041Dpc(), NvNetMediaDetectionDpc(), SetReportInfo(), and WinMain().
Definition at line 295 of file glmodeswitch.c.
Referenced by WndProc().
Definition at line 370 of file glmodeswitch.c.
Definition at line 408 of file glmodeswitch.c.
Referenced by NextMode(), and WndProc().
Definition at line 451 of file glmodeswitch.c.
Definition at line 565 of file glmodeswitch.c.
Definition at line 467 of file glmodeswitch.c.
Referenced by WinMain().
|
static |
Definition at line 52 of file glmodeswitch.c.
Referenced by ParseArgs(), WinMain(), and WndProc().
|
static |
Definition at line 33 of file glmodeswitch.c.
Referenced by DrawWrapped(), and InitGL().
|
static |
Definition at line 33 of file glmodeswitch.c.
Referenced by DrawOverlay(), and InitGL().
|
static |
Definition at line 47 of file glmodeswitch.c.
Referenced by NextMode(), SwitchMode(), and WinMain().
|
static |
Definition at line 50 of file glmodeswitch.c.
Referenced by ParseArgs(), and WndProc().
|
static |
Definition at line 32 of file glmodeswitch.c.
Referenced by DrawOverlay(), and InitGL().
|
static |
Definition at line 37 of file glmodeswitch.c.
Referenced by CountFrame(), and DrawOverlay().
|
static |
Definition at line 48 of file glmodeswitch.c.
Referenced by ParseArgs(), SetFullscreen(), SwitchMode(), WinMain(), and WndProc().
|
static |
Definition at line 31 of file glmodeswitch.c.
|
static |
Definition at line 31 of file glmodeswitch.c.
|
static |
Definition at line 31 of file glmodeswitch.c.
|
static |
Definition at line 29 of file glmodeswitch.c.
Definition at line 39 of file glmodeswitch.c.
Referenced by DrawOverlay().
|
static |
Definition at line 30 of file glmodeswitch.c.
Referenced by WinMain().
|
static |
Definition at line 28 of file glmodeswitch.c.
Referenced by CountFrame(), DrawOverlay(), FitToScreen(), Report(), SetFullscreen(), Usage(), and WinMain().
|
static |
Definition at line 51 of file glmodeswitch.c.
Referenced by ParseArgs(), WinMain(), and WndProc().
Definition at line 45 of file glmodeswitch.c.
Referenced by ParseArgs(), and SwitchMode().
|
static |
Definition at line 46 of file glmodeswitch.c.
Referenced by NextMode(), and ParseArgs().
|
static |
Definition at line 36 of file glmodeswitch.c.
Referenced by DrawOverlay(), and WinMain().
Definition at line 49 of file glmodeswitch.c.
Referenced by ParseArgs(), and WinMain().
|
static |
Definition at line 55 of file glmodeswitch.c.
Referenced by SetFullscreen().
|
static |
Definition at line 54 of file glmodeswitch.c.
Referenced by SetFullscreen().
Definition at line 34 of file glmodeswitch.c.
Referenced by DrawOverlay(), and WndProc().
|
static |
Definition at line 35 of file glmodeswitch.c.
Referenced by DrawOverlay(), and Log().
|
static |
Definition at line 53 of file glmodeswitch.c.
Referenced by ParseArgs(), and WndProc().