9920dfc25b
YES! FINALLY LIGHTING! Next up is specular light!
41 lines
769 B
C++
41 lines
769 B
C++
#pragma once
|
|
|
|
#include <vector>
|
|
|
|
#include "AutoPrerenderingScene.h"
|
|
|
|
#include "BasicShaderProgram.h"
|
|
#include "BuiltinTypes.h"
|
|
#include "Camera2D.h"
|
|
#include "Batched.h"
|
|
#include "BasicBatch.h"
|
|
|
|
#include "constants.h"
|
|
|
|
namespace charcoal
|
|
{
|
|
namespace builtin
|
|
{
|
|
class BasicScene : public AutoPrerenderingScene, public Batched<BasicRenderable, BasicBatch>
|
|
{
|
|
public:
|
|
BasicScene(Application& application) : AutoPrerenderingScene(application) {}
|
|
virtual ~BasicScene() {}
|
|
|
|
void init() override;
|
|
|
|
void use() override;
|
|
|
|
void unuse() override;
|
|
|
|
void render() override;
|
|
|
|
protected:
|
|
void set_camera(const Camera* p_camera) { m_p_camera = p_camera; }
|
|
|
|
private:
|
|
BasicShaderProgram m_shader_program;
|
|
const Camera* m_p_camera = nullptr;
|
|
};
|
|
}
|
|
} |