|
Blender V4.3
|
#include <iostream>#include <math.h>#include <string>#include <GL/gl.h>#include "GHOST_Rect.hh"#include "GHOST_IEvent.hh"#include "GHOST_IEventConsumer.hh"#include "GHOST_ISystem.hh"Go to the source code of this file.
Classes | |
| class | Application |
Macros | |
| #define | LEFT_EYE 0 |
| #define | RIGHT_EYE 1 |
Functions | |
| static void | gearsTimerProc (GHOST_ITimerTask *task, uint64_t time) |
| void | StereoProjection (float left, float right, float bottom, float top, float nearplane, float farplane, float zero_plane, float dist, float eye) |
| static void | testTimerProc (GHOST_ITimerTask *, uint64_t time) |
| static void | gearGL (GLfloat inner_radius, GLfloat outer_radius, GLfloat width, GLint teeth, GLfloat tooth_depth) |
| static void | drawGearGL (int id) |
| void | RenderCamera () |
| void | RenderScene () |
| static void | View (GHOST_IWindow *window, bool stereo, int eye=0) |
| int | main (int, char **) |
Variables | |
| static bool | nVidiaWindows |
| static class Application * | fApp |
| static GLfloat | view_rotx = 20.0 |
| static GLfloat | view_roty = 30.0 |
| static GLfloat | view_rotz = 0.0 |
| static GLfloat | fAngle = 0.0 |
| static GHOST_ISystem * | fSystem = 0 |
| #define LEFT_EYE 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. Stereo code by Raymond de Vries, januari 2002
Definition at line 37 of file GHOST_Test.cpp.
Referenced by Application::processEvent(), and View().
| #define RIGHT_EYE 1 |
Definition at line 38 of file GHOST_Test.cpp.
Referenced by Application::processEvent(), and View().
|
static |
Definition at line 171 of file GHOST_Test.cpp.
Referenced by RenderScene().
|
static |
Definition at line 64 of file GHOST_Test.cpp.
References angle(), cos(), len, sqrt(), and v.
Referenced by drawGearGL().
|
static |
Definition at line 716 of file GHOST_Test.cpp.
References fAngle, fApp, fSystem, GHOST_IWindow::invalidate(), Application::m_fullScreenWindow, GHOST_ISystem::validWindow(), and view_roty.
Referenced by Application::Application().
Definition at line 646 of file GHOST_Test.cpp.
References GHOST_ISystem::addEventConsumer(), GHOST_ISystem::createSystem(), GHOST_ISystem::dispatchEvents(), GHOST_ISystem::disposeSystem(), fSystem, GHOST_ISystem::getSystem(), Application::m_exitRequested, nVidiaWindows, printf, GHOST_ISystem::processEvents(), and GHOST_ISystem::removeEventConsumer().
| void RenderCamera | ( | ) |
Definition at line 203 of file GHOST_Test.cpp.
References view_rotx, view_roty, and view_rotz.
Referenced by Application::processEvent().
| void RenderScene | ( | ) |
Definition at line 210 of file GHOST_Test.cpp.
References drawGearGL(), and fAngle.
Referenced by Application::processEvent().
|
static |
Definition at line 59 of file GHOST_Test.cpp.
References int.
Referenced by Application::processEvent().
|
static |
Definition at line 232 of file GHOST_Test.cpp.
References GHOST_IWindow::activateDrawingContext(), distance(), GHOST_IWindow::getClientBounds(), GHOST_Rect::getHeight(), GHOST_Rect::getWidth(), left, LEFT_EYE, nVidiaWindows, RIGHT_EYE, StereoProjection(), and top.
Referenced by blender::draw::overlay::Fluids::begin_sync(), blender::workbench::ShadowPass::object_sync(), and Application::processEvent().
|
static |
Definition at line 46 of file GHOST_Test.cpp.
Referenced by gearsTimerProc(), and RenderScene().
|
static |
Definition at line 44 of file GHOST_Test.cpp.
Referenced by Application::Application(), and gearsTimerProc().
|
static |
Definition at line 47 of file GHOST_Test.cpp.
Referenced by gearsTimerProc(), and main().
|
static |
Definition at line 40 of file GHOST_Test.cpp.
|
static |
Definition at line 45 of file GHOST_Test.cpp.
Referenced by RenderCamera().
|
static |
Definition at line 45 of file GHOST_Test.cpp.
Referenced by gearsTimerProc(), and RenderCamera().
|
static |
Definition at line 45 of file GHOST_Test.cpp.
Referenced by Application::processEvent(), and RenderCamera().