37 explicit Plane(
const std::shared_ptr<Texture>& t = NullTextureObj);
38 virtual ~Plane(
void) { texture_.reset(); }
47 GLsizei
texWidth(
void)
const {
return texture_->width(); }
48 GLsizei
texHeight(
void)
const {
return texture_->height(); }
52 void Draw(
void)
override;
57 std::shared_ptr<Texture> texture_;
void SetupAllAttrPointer(void) override
Definition: renderable_object.h:25
bool FillVertexBuffer(GLfloat *pBuffer) override
GLsizei texHeight(void) const
Definition: plane.h:48
Plane(const std::shared_ptr< Texture > &t=NullTextureObj)
void set_texture(const std::shared_ptr< Texture > &t)
Definition: plane.h:40
static std::shared_ptr< Texture > NullTextureObj
Definition: plane.h:35
GLenum GetPrimitiveType(void) const override
Definition: plane.h:46
virtual ~Plane(void)
Definition: plane.h:38
GLsizei texWidth(void) const
Definition: plane.h:47