Imported Upstream version 2.81
[platform/upstream/libbullet.git] / Demos / OpenGL / Win32DemoApplication.cpp
1 /*
2 Bullet Continuous Collision Detection and Physics Library
3 Copyright (c) 2003-2009 Erwin Coumans  http://bulletphysics.org
4
5 This software is provided 'as-is', without any express or implied warranty.
6 In no event will the authors be held liable for any damages arising from the use of this software.
7 Permission is granted to anyone to use this software for any purpose, 
8 including commercial applications, and to alter it and redistribute it freely, 
9 subject to the following restrictions:
10
11 1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required.
12 2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software.
13 3. This notice may not be removed or altered from any source distribution.
14 */
15
16 #ifdef _WINDOWS
17
18 #include "Win32DemoApplication.h"
19
20
21
22
23 #if 0
24 void    Win32DemoApplication::renderme()
25 {
26 }
27 void    Win32DemoApplication::setTexturing(bool useTexture)
28 {
29 }
30         
31 void    Win32DemoApplication::setShadows(bool useShadows)
32 {
33 }
34         
35 void    Win32DemoApplication::setCameraDistance(float camDist)
36 {
37 }
38 void    Win32DemoApplication::clientResetScene()
39 {
40
41 }
42 #endif
43
44 void Win32DemoApplication::updateModifierKeys()
45 {
46         //not yet
47 }
48
49
50
51 void Win32DemoApplication::specialKeyboard(int key, int x, int y)       
52 {
53         (void)x;
54         (void)y;
55
56         switch (key) 
57         {
58         case VK_LEFT : stepLeft(); break;
59         case VK_RIGHT : stepRight(); break;
60         case VK_UP : stepFront(); break;
61         case VK_DOWN : stepBack(); break;
62
63 //      case GLUT_KEY_PAGE_UP : zoomIn(); break;
64 //      case GLUT_KEY_PAGE_DOWN : zoomOut(); break;
65 //      case GLUT_KEY_HOME : toggleIdle(); break;
66
67         default:
68                 //        std::cout << "unused (special) key : " << key << std::endl;
69                 break;
70         }
71
72 }
73
74 void    Win32DemoApplication::swapBuffers()
75 {
76 }
77         
78 #endif
79