charcoal/OpenGLEngine/ImageScene.h
elipzer b7456401e0 Almost able to render the image
Added image scene to render an image in a scene. There is also now
a testing image that is an uber meme. Currently the problem is
that the spritebatch cannot use the offsetof macro because it is a
templated class. Possible solutions to this are changing it to be
specifyable or implemented per vertex type as the other batches
have been.
2018-10-09 11:42:17 -04:00

36 lines
631 B
C++

#pragma once
#include "AutoPrerenderingScene.h"
#include "WithCamera.h"
#include "Batched.h"
#include "SpriteBatch.h"
#include "ImageShaderProgram.h"
#include "ImageTypes.h"
namespace charcoal
{
namespace builtin
{
namespace image
{
class Scene : public AutoPrerenderingScene, public WithCamera, public Batched<Renderable, Batch>
{
public:
Scene(Application& application) : AutoPrerenderingScene(application) {}
virtual ~Scene() {}
void init() override;
void use() override;
void unuse() override;
void render() override;
private:
ShaderProgram m_shader_program;
};
}
}
}