DepthMap.h
Go to the documentation of this file.
1 #ifndef B_DEPTH_MAP_H
2 #define B_DEPTH_MAP_H
3 
4 #include <vector>
5 #include "Texture.h"
6 
10 class DepthMap : public Texture
11 {
12 public:
13 
14  /* Functions */
15 
20  DepthMap(GLint width, GLint height);
21 
24  virtual ~DepthMap() { deleteTexture(); }
25 
26 };
27 
28 typedef std::shared_ptr< DepthMap > DepthMapPtr;
29 
30 #endif /* defined(B_DEPTH_MAP_H) */
virtual ~DepthMap()
Virtual destructor.
Definition: DepthMap.h:24
The depth map stores depth values in a texture.
Definition: DepthMap.h:10
std::shared_ptr< DepthMap > DepthMapPtr
Definition: DepthMap.h:28
virtual void deleteTexture()
Delete the OpenGL texture.
Definition: Texture.h:54
An image that can be applied to a surface of a drawable object.
Definition: Texture.h:13
DepthMap(GLint width, GLint height)
Constructor.
Definition: DepthMap.cpp:4