charcoal/CharcoalBuiltin/BasicPipeline.h
elipzer e3c85324c6 Changed Filters to be more representitive
Also moved all the code for each pipeline into the header files
rather than the .cpp files to keep it all in one place.
Considering just moving all the code into one file just to make it
easier to create new pipelines but that may be overkill and may
make the project harder to maintain in the future.
2018-10-14 15:44:04 -04:00

31 lines
553 B
C++

#pragma once
#include "GLUtil.h"
#include "BuiltinPipeline.h"
#include "WithCamera.h"
#include "BasicShaderProgram.h"
#include "BasicBatch.h"
namespace charcoal
{
namespace builtin
{
namespace basic
{
class Pipeline : public builtin::Pipeline<ShaderProgram, Batch>, public WithCamera
{
public:
void prepare_opengl() override
{
glEnable(GL_DEPTH_TEST);
glDepthFunc(GL_LESS);
}
void prepare_uniforms() override
{
glutil::uniform_matrix(0, get_camera()->get_world_to_view_matrix());
}
};
}
}
}