19 lines
278 B
C++
19 lines
278 B
C++
#pragma once
|
|
|
|
#include "typedefs.hpp"
|
|
|
|
class ShadowMap {
|
|
public:
|
|
ShadowMap(int resolution);
|
|
~ShadowMap();
|
|
|
|
void bind();
|
|
void unbind();
|
|
uint getDepthMap() const;
|
|
int getResolution() const;
|
|
private:
|
|
uint fbo;
|
|
uint depthMap;
|
|
int resolution;
|
|
};
|