Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2012-07-01 02:49:33 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-07-01 02:49:33 +0400
commit8b865c01cd659006a721f4db3d6796d618c35d3c (patch)
tree96c49858e2b2fd36b5fa7c045d2fca966f1689a5 /intern/ghost/test
parent273f56ace03e1556df17b8a6e7e4343bf73726e5 (diff)
style cleanup: comments
Diffstat (limited to 'intern/ghost/test')
-rw-r--r--intern/ghost/test/gears/GHOST_C-Test.c25
-rw-r--r--intern/ghost/test/gears/GHOST_Test.cpp60
2 files changed, 42 insertions, 43 deletions
diff --git a/intern/ghost/test/gears/GHOST_C-Test.c b/intern/ghost/test/gears/GHOST_C-Test.c
index c32d78f0358..98e2b9c2497 100644
--- a/intern/ghost/test/gears/GHOST_C-Test.c
+++ b/intern/ghost/test/gears/GHOST_C-Test.c
@@ -26,7 +26,6 @@
*/
/**
-
* Copyright (C) 2001 NaN Technologies B.V.
*
* Simple test file for the GHOST library.
@@ -294,14 +293,14 @@ int processEvent(GHOST_EventHandle hEvent, GHOST_TUserDataPtr userData)
switch (GHOST_GetEventType(hEvent))
{
- /*
- case GHOST_kEventUnknown:
- break;
- case GHOST_kEventCursorButton:
- break;
- case GHOST_kEventCursorMove:
- break;
- */
+#if 0
+ case GHOST_kEventUnknown:
+ break;
+ case GHOST_kEventCursorButton:
+ break;
+ case GHOST_kEventCursorMove:
+ break;
+#endif
case GHOST_kEventWheel:
{
wheelData = (GHOST_TEventWheelData *)GHOST_GetEventData(hEvent);
@@ -345,10 +344,10 @@ int processEvent(GHOST_EventHandle hEvent, GHOST_TUserDataPtr userData)
setting.yPixels = 480;
/*
- setting.bpp = 16;
- setting.frequency = 75;
- setting.xPixels = 640;
- setting.yPixels = 480;
+ * setting.bpp = 16;
+ * setting.frequency = 75;
+ * setting.xPixels = 640;
+ * setting.yPixels = 480;
*/
sFullScreenWindow = GHOST_BeginFullScreen(shSystem, &setting,
diff --git a/intern/ghost/test/gears/GHOST_Test.cpp b/intern/ghost/test/gears/GHOST_Test.cpp
index d338f11ddde..c02272094f4 100644
--- a/intern/ghost/test/gears/GHOST_Test.cpp
+++ b/intern/ghost/test/gears/GHOST_Test.cpp
@@ -1,4 +1,4 @@
-/**
+/*
* ***** BEGIN GPL LICENSE BLOCK *****
*
* This program is free software; you can redistribute it and/or
@@ -26,7 +26,6 @@
*/
/**
-
* 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,
@@ -344,27 +343,27 @@ void StereoProjection(float left, float right, float bottom, float top, float ne
float zero_plane, float dist,
float eye)
/* Perform the perspective projection for one eye's subfield.
- The projection is in the direction of the negative z axis.
-
- -6.0, 6.0, -4.8, 4.8,
- left, right, bottom, top = the coordinate range, in the plane of zero
- parallax setting, which will be displayed on the screen. The
- ratio between (right-left) and (top-bottom) should equal the aspect
- ratio of the display.
-
- 6.0, -6.0,
- near, far = the z-coordinate values of the clipping planes.
-
- 0.0,
- zero_plane = the z-coordinate of the plane of zero parallax setting.
-
- 14.5,
- dist = the distance from the center of projection to the plane
- of zero parallax.
-
- -0.31
- eye = half the eye separation; positive for the right eye subfield,
- negative for the left eye subfield.
+ * The projection is in the direction of the negative z axis.
+ *
+ * -6.0, 6.0, -4.8, 4.8,
+ * left, right, bottom, top = the coordinate range, in the plane of zero
+ * parallax setting, which will be displayed on the screen. The
+ * ratio between (right-left) and (top-bottom) should equal the aspect
+ * ratio of the display.
+ *
+ * 6.0, -6.0,
+ * near, far = the z-coordinate values of the clipping planes.
+ *
+ * 0.0,
+ * zero_plane = the z-coordinate of the plane of zero parallax setting.
+ *
+ * 14.5,
+ * dist = the distance from the center of projection to the plane
+ * of zero parallax.
+ *
+ * -0.31
+ * eye = half the eye separation; positive for the right eye subfield,
+ * negative for the left eye subfield.
*/
{
float xmid, ymid, clip_near, clip_far, topw, bottomw, leftw, rightw,
@@ -462,13 +461,14 @@ bool Application::processEvent(GHOST_IEvent *event)
bool handled = true;
switch (event->getType()) {
-/* case GHOST_kEventUnknown:
- break;
- case GHOST_kEventCursorButton:
- std::cout << "GHOST_kEventCursorButton"; break;
- case GHOST_kEventCursorMove:
- std::cout << "GHOST_kEventCursorMove"; break;
- */
+#if 0
+ case GHOST_kEventUnknown:
+ break;
+ case GHOST_kEventCursorButton:
+ std::cout << "GHOST_kEventCursorButton"; break;
+ case GHOST_kEventCursorMove:
+ std::cout << "GHOST_kEventCursorMove"; break;
+ #endif
case GHOST_kEventWheel:
{
GHOST_TEventWheelData *wheelData = (GHOST_TEventWheelData *) event->getData();