Mitsuba Renderer  0.5.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
glxrenderer.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_GLXRENDERER_H_)
20 #define __MITSUBA_HW_GLXRENDERER_H_
21 
22 #include <mitsuba/hw/glrenderer.h>
23 #include <mitsuba/hw/glxdevice.h>
24 
26 
27 /** \brief GLX (XFree86) renderer
28  * \ingroup libhw
29  */
31 public:
32  /// Create a new renderer
33  GLXRenderer(X11Session *session);
34 
35  /// Return the rendering context
36  inline GLXContext getGLXContext() { return m_context; }
37 
38  /// Initialize the renderer
39  void init(Device *device, Renderer *other = NULL);
40 
41  /// Shut the renderer down
42  void shutdown();
43 
45 protected:
46  /// Virtual destructor
47  virtual ~GLXRenderer();
48 private:
49  GLXContext m_context;
50 };
51 
53 
54 #endif /* __MITSUBA_HW_GLXRENDERER_H_ */
virtual void init(Device *device, Renderer *other=NULL)
Initialize the renderer.
#define MTS_EXPORT_HW
Definition: platform.h:114
GLX (XFree86) renderer.
Definition: glxrenderer.h:30
X Window System (X11R6) session.
Definition: x11session.h:31
#define MTS_NAMESPACE_BEGIN
Definition: platform.h:137
An abstract drawing device.
Definition: device.h:136
GLXContext getGLXContext()
Return the rendering context.
Definition: glxrenderer.h:36
#define MTS_DECLARE_CLASS()
This macro must be used in the initial definition in classes that derive from Object.
Definition: class.h:158
Abstract renderer implementation.
Definition: renderer.h:79
virtual void shutdown()
Shut the renderer down.
OpenGL implementation of the Renderer interface.
Definition: glrenderer.h:43
#define MTS_NAMESPACE_END
Definition: platform.h:138