|
Blender V5.0
|
#include <math.h>#include <stdio.h>#include <stdlib.h>#include <string.h>#include "GHOST_C-api.h"#include <GL/gl.h>Go to the source code of this file.
Macros | |
| #define | FALSE 0 |
Functions | |
| static void | gearsTimerProc (GHOST_TimerTaskHandle task, uint64_t time) |
| bool | processEvent (GHOST_EventHandle hEvent, GHOST_TUserDataPtr user_data) |
| static void | testTimerProc (GHOST_TimerTaskHandle task, uint64_t time) |
| static void | gearGL (GLfloat inner_radius, GLfloat outer_radius, GLfloat width, GLint teeth, GLfloat tooth_depth) |
| static void | drawGearGL (int id) |
| static void | drawGL (void) |
| static void | setViewPortGL (GHOST_WindowHandle hWindow) |
| int | main (int argc, char **argv) |
Variables | |
| static GLfloat | view_rotx = 20.0 |
| static GLfloat | view_roty = 30.0 |
| static GLfloat | view_rotz = 0.0 |
| static GLfloat | fAngle = 0.0 |
| static int | sExitRequested = 0 |
| static GHOST_SystemHandle | shSystem = NULL |
| static GHOST_WindowHandle | sMainWindow = NULL |
| static GHOST_WindowHandle | sSecondaryWindow = NULL |
| static GHOST_TStandardCursor | sCursor = GHOST_kStandardCursorFirstCursor |
| static GHOST_TimerTaskHandle | sTestTimer |
| static GHOST_TimerTaskHandle | sGearsTimer |
| #define FALSE 0 |
Copyright (C) 2001 NaN Technologies B.V.
Simple test file for the GHOST library. The OpenGL gear code is taken from the Qt sample code which, in turn, is probably taken from somewhere as well.
Definition at line 18 of file GHOST_C-Test.c.
Referenced by GHOST_WindowWin32::adjustWindowRectForClosestMonitor(), bli_windows_system_backtrace_threads(), getProcessName(), GHOST_SystemCocoa::handleTabletEvent(), GHOST_WindowWin32::invalidate(), LaunchedFromSteam(), GHOST_WindowWin32::loadCursor(), GHOST_DirectManipulationViewportEventHandler::resetViewport(), GHOST_SystemWin32::setConsoleWindowState(), and GHOST_WindowWin32::setOrder().
|
static |
Definition at line 181 of file GHOST_C-Test.c.
Referenced by drawGL().
|
static |
Definition at line 213 of file GHOST_C-Test.c.
References drawGearGL(), fAngle, view_rotx, view_roty, and view_rotz.
Referenced by processEvent().
|
static |
|
static |
Definition at line 466 of file GHOST_C-Test.c.
References fAngle, GHOST_GetTimerTaskUserData(), GHOST_InvalidateWindow(), GHOST_ValidWindow(), shSystem, and view_roty.
Referenced by main().
| int main | ( | int | argc, |
| char ** | argv ) |
Definition at line 391 of file GHOST_C-Test.c.
References gearsTimerProc(), GHOST_AddEventConsumer(), GHOST_CreateEventConsumer(), GHOST_CreateSystem(), GHOST_CreateWindow(), GHOST_DispatchEvents(), GHOST_DisposeSystem(), GHOST_DisposeWindow(), GHOST_InstallTimer(), GHOST_kWindowStateNormal, GHOST_ProcessEvents(), GHOST_ValidWindow(), printf, processEvent(), sExitRequested, sGearsTimer, shSystem, sMainWindow, and sSecondaryWindow.
| bool processEvent | ( | GHOST_EventHandle | hEvent, |
| GHOST_TUserDataPtr | user_data ) |
Definition at line 272 of file GHOST_C-Test.c.
References drawGL(), free(), GHOST_DisposeWindow(), GHOST_GetCursorVisibility(), GHOST_GetEventData(), GHOST_GetEventType(), GHOST_GetEventWindow(), GHOST_GetTitle(), GHOST_InstallTimer(), GHOST_kEventCursorMove, GHOST_kEventKeyDown, GHOST_kEventKeyUp, GHOST_kEventUnknown, GHOST_kEventWheel, GHOST_kEventWindowActivate, GHOST_kEventWindowClose, GHOST_kEventWindowDeactivate, GHOST_kEventWindowUpdate, GHOST_kKeyC, GHOST_kKeyH, GHOST_kKeyQ, GHOST_kKeyT, GHOST_kKeyW, GHOST_kStandardCursorFirstCursor, GHOST_kStandardCursorNumCursors, GHOST_RemoveTimer(), GHOST_SetCursorShape(), GHOST_SetCursorVisibility(), GHOST_SetTitle(), GHOST_SwapWindowBufferAcquire(), GHOST_SwapWindowBufferRelease(), GHOST_ValidWindow(), GHOST_TEventKeyData::key, sCursor, setViewPortGL(), sExitRequested, sGearsTimer, shSystem, sMainWindow, sTestTimer, testTimerProc(), GHOST_TEventWheelData::value, and view_rotz.
Referenced by main().
|
static |
Definition at line 245 of file GHOST_C-Test.c.
References float, GHOST_ActivateWindowDrawingContext(), GHOST_DisposeRectangle(), GHOST_GetClientBounds(), GHOST_GetHeightRectangle(), GHOST_GetWidthRectangle(), and w().
Referenced by processEvent().
|
static |
|
static |
Definition at line 38 of file GHOST_C-Test.c.
Referenced by drawGL(), gearsTimerProc(), gearsTimerProc(), btTransformUtil::integrateTransform(), predictPositionsMultiDof(), RenderScene(), and stepPositionsMultiDof().
|
static |
Definition at line 43 of file GHOST_C-Test.c.
Referenced by processEvent().
|
static |
Definition at line 39 of file GHOST_C-Test.c.
Referenced by main(), and processEvent().
|
static |
Definition at line 45 of file GHOST_C-Test.c.
Referenced by main(), and processEvent().
|
static |
Definition at line 40 of file GHOST_C-Test.c.
Referenced by gearsTimerProc(), main(), and processEvent().
|
static |
Definition at line 41 of file GHOST_C-Test.c.
Referenced by main(), and processEvent().
|
static |
Definition at line 42 of file GHOST_C-Test.c.
Referenced by main().
|
static |
Definition at line 44 of file GHOST_C-Test.c.
Referenced by processEvent().
|
static |
Definition at line 37 of file GHOST_C-Test.c.
Referenced by drawGL(), and RenderCamera().
|
static |
Definition at line 37 of file GHOST_C-Test.c.
Referenced by drawGL(), gearsTimerProc(), gearsTimerProc(), and RenderCamera().
|
static |
Definition at line 37 of file GHOST_C-Test.c.
Referenced by drawGL(), processEvent(), and RenderCamera().