charcoal/CharcoalBuiltin/TexturedRenderable.h

38 lines
719 B
C
Raw Normal View History

#pragma once
#include <charcoal/Renderable.h>
#include <charcoal/Texture.h>
#include <charcoal/Sampler.h>
#include "TexturedTypes.h"
namespace charcoal
{
namespace builtin
{
namespace textured
{
class Renderable : public RenderableT<Vertex, Index>
{
public:
Renderable(
const Mesh<Vertex, Index>* mesh,
const DrawMode& draw_mode,
Texture* texture,
Sampler* sampler
)
: RenderableT<Vertex, Index>(mesh, draw_mode),
m_p_texture(texture),
m_p_sampler(sampler)
{}
Texture* get_texture() const { return m_p_texture; }
Sampler* get_sampler() const { return m_p_sampler; }
private:
Texture* m_p_texture;
Sampler* m_p_sampler;
};
}
}
}