24 lines
439 B
C++
24 lines
439 B
C++
#pragma once
|
|
|
|
#include <td/render/shader/ShaderProgram.h>
|
|
|
|
namespace td {
|
|
namespace shader {
|
|
|
|
class CameraShaderProgram : public ShaderProgram {
|
|
private:
|
|
unsigned int m_LocationProjection = 0, m_LocationView = 0;
|
|
|
|
public:
|
|
CameraShaderProgram() {}
|
|
|
|
void SetProjectionMatrix(const Mat4f& proj) const;
|
|
void SetViewMatrix(const Mat4f& view) const;
|
|
|
|
virtual void GetAllUniformLocation();
|
|
};
|
|
|
|
|
|
} // namespace shader
|
|
} // namespace td
|