forked from panda3d/panda3d
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathshowBase.h
More file actions
96 lines (78 loc) · 2.27 KB
/
showBase.h
File metadata and controls
96 lines (78 loc) · 2.27 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
/**
* PANDA 3D SOFTWARE
* Copyright (c) Carnegie Mellon University. All rights reserved.
*
* All use of this software is subject to the terms of the revised BSD
* license. You should have received a copy of this license along
* with this source code in a file named "LICENSE."
*
* @file showBase.h
* @author shochet
* @date 2000-02-02
*/
#ifndef SHOWBASE_H
#define SHOWBASE_H
#include "directbase.h"
#include "eventHandler.h"
#include "graphicsWindow.h"
#include "graphicsPipe.h"
#include "animControl.h"
#include "pointerTo.h"
#include "dconfig.h"
#include "dSearchPath.h"
#include "configVariableSearchPath.h"
#include "nodePath.h"
ConfigureDecl(config_showbase, EXPCL_DIRECT_SHOWBASE, EXPTP_DIRECT_SHOWBASE);
class CollisionTraverser;
class Camera;
class GraphicsEngine;
BEGIN_PUBLISH
EXPCL_DIRECT_SHOWBASE ConfigVariableSearchPath &get_particle_path();
EXPCL_DIRECT_SHOWBASE void throw_new_frame();
EXPCL_DIRECT_SHOWBASE void init_app_for_gui();
// klunky interface since we cant pass array from python->C++
EXPCL_DIRECT_SHOWBASE void add_fullscreen_testsize(int xsize, int ysize);
EXPCL_DIRECT_SHOWBASE void runtest_fullscreen_sizes(GraphicsWindow *win);
EXPCL_DIRECT_SHOWBASE bool query_fullscreen_testresult(int xsize, int ysize);
// to handle windows stickykeys
EXPCL_DIRECT_SHOWBASE void store_accessibility_shortcut_keys();
EXPCL_DIRECT_SHOWBASE void allow_accessibility_shortcut_keys(bool allowKeys);
#ifdef IS_OSX
EXPCL_DIRECT_SHOWBASE void activate_osx_application();
#endif
END_PUBLISH
#if 0
class TempGridZoneManager {
PUBLISHED:
TempGridZoneManager() {}
~TempGridZoneManager() {}
unsigned int add_grid_zone(
unsigned int x,
unsigned int y,
unsigned int width,
unsigned int height,
unsigned int zoneBase,
unsigned int xZoneResolution,
unsigned int yZoneResolution);
int get_zone_list(int x, int y);
protected:
class GridZone {
public:
unsigned int base;
unsigned int resolution;
GridZone(
unsigned int x,
unsigned int y,
unsigned int width,
unsigned int height,
unsigned int zoneBase,
unsigned int xZoneResolution,
unsigned int yZoneResolution) {
base=zoneBase;
resolution=zoneResolution;
}
};
Set<GridZone> _grids;
};
#endif
#endif