Mitsuba Renderer  0.5.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
nsglsession.h
Go to the documentation of this file.
1 /*
2  This file is part of Mitsuba, a physically based rendering system.
3 
4  Copyright (c) 2007-2014 by Wenzel Jakob and others.
5 
6  Mitsuba is free software; you can redistribute it and/or modify
7  it under the terms of the GNU General Public License Version 3
8  as published by the Free Software Foundation.
9 
10  Mitsuba is distributed in the hope that it will be useful,
11  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  GNU General Public License for more details.
14 
15  You should have received a copy of the GNU General Public License
16  along with this program. If not, see <http://www.gnu.org/licenses/>.
17 */
18 
19 #if !defined(__MITSUBA_HW_NSGLSESSION_H_)
20 #define __MITSUBA_HW_NSGLSESSION_H_
21 
22 #include <mitsuba/hw/session.h>
23 
25 
26 /** \brief A MacOS X (NSGL) windowing environment session
27  * \ingroup libhw
28  */
30 public:
31  /// Create a new session
32  NSGLSession();
33 
34  /// Initialize the session
35  void init();
36 
37  /// Shut the session down
38  void shutdown();
39 
40  /// Process all events and call event callbacks
41  void processEvents();
42 
43  /**
44  * \brief Process all events and call event callbacks.
45  *
46  * This function will run until the \c stop parameter is set
47  * to \c true from within an event callback.
48  */
49  void processEventsBlocking(bool &stop);
50 
52 protected:
53  /// Virtual destructor
54  virtual ~NSGLSession();
55 };
56 
58 
59 #endif /* __MITSUBA_HW_NSGLSESSION_H_ */
#define MTS_EXPORT_HW
Definition: platform.h:114
virtual void processEvents()=0
Process all events and call event callbacks.
A MacOS X (NSGL) windowing environment session.
Definition: nsglsession.h:29
virtual void init()
Initialize the session.
#define MTS_NAMESPACE_BEGIN
Definition: platform.h:137
virtual void shutdown()
Shut the session down.
#define MTS_DECLARE_CLASS()
This macro must be used in the initial definition in classes that derive from Object.
Definition: class.h:158
virtual void processEventsBlocking(bool &stop)=0
Process all events and call event callbacks.
Abstract windowing environment session.
Definition: session.h:32
#define MTS_NAMESPACE_END
Definition: platform.h:138