Panda3D

showBase.h

00001 // Filename: showBase.h
00002 // Created by:  shochet (02Feb00)
00003 //
00004 ////////////////////////////////////////////////////////////////////
00005 //
00006 // PANDA 3D SOFTWARE
00007 // Copyright (c) Carnegie Mellon University.  All rights reserved.
00008 //
00009 // All use of this software is subject to the terms of the revised BSD
00010 // license.  You should have received a copy of this license along
00011 // with this source code in a file named "LICENSE."
00012 //
00013 ////////////////////////////////////////////////////////////////////
00014 
00015 #ifndef SHOWBASE_H
00016 #define SHOWBASE_H
00017 
00018 #include "directbase.h"
00019 
00020 #include "eventHandler.h"
00021 #include "graphicsWindow.h"
00022 #include "graphicsPipe.h"
00023 #include "animControl.h"
00024 #include "pointerTo.h"
00025 #include "dconfig.h"
00026 #include "dSearchPath.h"
00027 #include "configVariableSearchPath.h"
00028 #include "nodePath.h"
00029 
00030 ConfigureDecl(config_showbase, EXPCL_DIRECT, EXPTP_DIRECT);
00031 
00032 class CollisionTraverser;
00033 class Camera;
00034 class GraphicsEngine;
00035 
00036 BEGIN_PUBLISH
00037 
00038 EXPCL_DIRECT ConfigVariableSearchPath &get_particle_path();
00039 
00040 EXPCL_DIRECT void throw_new_frame();
00041 
00042 EXPCL_DIRECT DConfig &get_config_showbase();
00043 EXPCL_DIRECT void init_app_for_gui();
00044 
00045 // klunky interface since we cant pass array from python->C++
00046 EXPCL_DIRECT void add_fullscreen_testsize(int xsize, int ysize);
00047 EXPCL_DIRECT void runtest_fullscreen_sizes(GraphicsWindow *win);
00048 EXPCL_DIRECT bool query_fullscreen_testresult(int xsize, int ysize);
00049 
00050 // to handle windows stickykeys
00051 EXPCL_DIRECT void store_accessibility_shortcut_keys();
00052 EXPCL_DIRECT void allow_accessibility_shortcut_keys(bool allowKeys);
00053 
00054 #ifdef IS_OSX
00055 void activate_osx_application();
00056 #endif
00057 
00058 END_PUBLISH
00059 
00060 
00061 
00062 #if 0
00063 class TempGridZoneManager {
00064 PUBLISHED:
00065   TempGridZoneManager() {}
00066   ~TempGridZoneManager() {}
00067   
00068   unsigned int add_grid_zone(
00069       unsigned int x, 
00070       unsigned int y, 
00071       unsigned int width, 
00072       unsigned int height, 
00073       unsigned int zoneBase, 
00074       unsigned int xZoneResolution,
00075       unsigned int yZoneResolution);
00076   int get_zone_list(int x, int y);
00077 
00078 protected:
00079   class GridZone {
00080   public:
00081     unsigned int base;
00082     unsigned int resolution;
00083     GridZone(
00084         unsigned int x, 
00085         unsigned int y, 
00086         unsigned int width, 
00087         unsigned int height, 
00088         unsigned int zoneBase, 
00089         unsigned int xZoneResolution,
00090         unsigned int yZoneResolution) {
00091       base=zoneBase;
00092       resolution=zoneResolution;
00093     }
00094   };
00095   Set<GridZone> _grids;
00096 };
00097 #endif
00098 
00099 #endif
 All Classes Functions Variables Enumerations