mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
18 lines
278 B
C++
18 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;
|
|
};
|