Panda3D
showBase.h
Go to the documentation of this file.
1 /**
2  * PANDA 3D SOFTWARE
3  * Copyright (c) Carnegie Mellon University. All rights reserved.
4  *
5  * All use of this software is subject to the terms of the revised BSD
6  * license. You should have received a copy of this license along
7  * with this source code in a file named "LICENSE."
8  *
9  * @file showBase.h
10  * @author shochet
11  * @date 2000-02-02
12  */
13 
14 #ifndef SHOWBASE_H
15 #define SHOWBASE_H
16 
17 #include "directbase.h"
18 
19 #include "eventHandler.h"
20 #include "graphicsWindow.h"
21 #include "graphicsPipe.h"
22 #include "animControl.h"
23 #include "pointerTo.h"
24 #include "dconfig.h"
25 #include "dSearchPath.h"
27 #include "nodePath.h"
28 
29 ConfigureDecl(config_showbase, EXPCL_DIRECT_SHOWBASE, EXPTP_DIRECT_SHOWBASE);
30 
31 class CollisionTraverser;
32 class Camera;
33 class GraphicsEngine;
34 
35 BEGIN_PUBLISH
36 
37 EXPCL_DIRECT_SHOWBASE ConfigVariableSearchPath &get_particle_path();
38 
39 EXPCL_DIRECT_SHOWBASE void throw_new_frame();
40 
41 EXPCL_DIRECT_SHOWBASE void init_app_for_gui();
42 
43 // klunky interface since we cant pass array from python->C++
44 EXPCL_DIRECT_SHOWBASE void add_fullscreen_testsize(int xsize, int ysize);
45 EXPCL_DIRECT_SHOWBASE void runtest_fullscreen_sizes(GraphicsWindow *win);
46 EXPCL_DIRECT_SHOWBASE bool query_fullscreen_testresult(int xsize, int ysize);
47 
48 // to handle windows stickykeys
49 EXPCL_DIRECT_SHOWBASE void store_accessibility_shortcut_keys();
50 EXPCL_DIRECT_SHOWBASE void allow_accessibility_shortcut_keys(bool allowKeys);
51 
52 #ifdef IS_OSX
53 EXPCL_DIRECT_SHOWBASE void activate_osx_application();
54 #endif
55 
56 END_PUBLISH
57 
58 
59 #if 0
60 class TempGridZoneManager {
61 PUBLISHED:
62  TempGridZoneManager() {}
63  ~TempGridZoneManager() {}
64 
65  unsigned int add_grid_zone(
66  unsigned int x,
67  unsigned int y,
68  unsigned int width,
69  unsigned int height,
70  unsigned int zoneBase,
71  unsigned int xZoneResolution,
72  unsigned int yZoneResolution);
73  int get_zone_list(int x, int y);
74 
75 protected:
76  class GridZone {
77  public:
78  unsigned int base;
79  unsigned int resolution;
80  GridZone(
81  unsigned int x,
82  unsigned int y,
83  unsigned int width,
84  unsigned int height,
85  unsigned int zoneBase,
86  unsigned int xZoneResolution,
87  unsigned int yZoneResolution) {
88  base=zoneBase;
89  resolution=zoneResolution;
90  }
91  };
92  Set<GridZone> _grids;
93 };
94 #endif
95 
96 #endif
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
This is similar to a ConfigVariableList, but it returns its list as a DSearchPath,...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
A window, fullscreen or on a desktop, into which a graphics device sends its output for interactive d...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
This class manages the traversal through the scene graph to detect collisions.
This class is the main interface to controlling the render process.
A node that can be positioned around in the scene graph to represent a point of view for rendering a ...
Definition: camera.h:35
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.