29#ifndef NOMLIB_GUI_DECORATOR_SPRITE_BATCH_HPP
30#define NOMLIB_GUI_DECORATOR_SPRITE_BATCH_HPP
33#include <Rocket/Core/Decorator.h>
35#include "nomlib/config.hpp"
66 const std::string& sheet_image_src,
68 const std::string& rml_source );
82 virtual void RenderElement(Rocket::Core::Element* element, Rocket::Core::DecoratorDataHandle element_data);
87 std::unique_ptr<Texture> texture_;
virtual void ReleaseElementData(Rocket::Core::DecoratorDataHandle element_data)
bool initialize(const std::string &sheet_src, const std::string &sheet_image_src, int sheet_frame, const std::string &rml_source)
virtual ~DecoratorSpriteBatch()
Destructor.
virtual Rocket::Core::DecoratorDataHandle GenerateElementData(Rocket::Core::Element *element)
virtual void RenderElement(Rocket::Core::Element *element, Rocket::Core::DecoratorDataHandle element_data)
DecoratorSpriteBatch()
Default constructor.
std::unique_ptr< SpriteBatch > sprite_
The sprite object used to render the decorator.
Extended sprite rendering using sprite sheets.