This file is indexed.

/usr/include/BALL/VIEW/RENDERING/glOffscreenTarget.h is in libballview1.4-dev 1.4.3~beta1-3.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 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
// -*- Mode: C++; tab-width: 2; -*-
// vi: set ts=2:
//

#ifndef BALL_VIEW_RENDERING_GLOFFSCREENTARGET_H
#define BALL_VIEW_RENDERING_GLOFFSCREENTARGET_H

#ifndef BALL_COMMON_GLOBAL_H
# include <BALL/COMMON/global.h>
#endif

#ifndef BALL_VIEW_RENDERING_RENDERWINDOW_H
# include <BALL/VIEW/RENDERING/renderWindow.h>
#endif

#ifndef BALL_VIEW_RENDERING_GLRENDERWINDOW_H
# include <BALL/VIEW/RENDERING/glRenderWindow.h>
#endif


#include <QtGui/QPaintDevice>

#include <boost/shared_ptr.hpp>

class QGLPixelBuffer;

namespace BALL
{
	namespace VIEW
	{				
		/** Model of the \link RenderWindow \endlink which uses OpenGL to render its buffer into a file.
		 * 
		 *  The class will try to use a pixel buffer target if this is available. If the OpenGL driver has
		 *  no support for PixelBufferObjects, we try to render into a window on screen instead.
		 */
		class BALL_VIEW_EXPORT GLOffscreenTarget
			: public RenderWindow,
				public QPaintDevice
		{
			public:
				/** Create a new GLOffscreenTarget with context shared from an existing GLRenderWindow.
				 */
				GLOffscreenTarget(GLRenderWindow* share_from, const String& filename);

				virtual void prepareRendering();
				virtual void prepareUpscaling(Size final_width, Size final_height);

				virtual bool resize(const unsigned int width, const unsigned int height);
				virtual void refresh();

				void tryUsePixelBuffer(bool use_pbo = true);

				QImage getImage();
				void updateImageTile(Size x_lower, Size y_lower, Size x_upper, Size y_upper);

				virtual QPaintEngine* paintEngine() const;
				virtual int metric(PaintDeviceMetric metric) const;

			protected:
				String     		 filename_;

				GLRenderWindow* share_from_;

				boost::shared_ptr<QGLPixelBuffer> pixel_buffer_;

				bool use_pixel_buffer_;

				QImage current_image_;
		};

	}
}
#endif // BALL_VIEW_RENDERING_GLOFFSCREENTARGET_H