First cut at Drawable fundamentals (#983)
Co-authored-by: mwilsnd <mwilsnd@gmail.com> Co-authored-by: Alex Cristici <alex.cristici@gmail.com>
This commit is contained in:
committed by
Bart Louwers
parent
42afe4189c
commit
14b53e54ec
14
src/mbgl/renderer/change_request.cpp
Normal file
14
src/mbgl/renderer/change_request.cpp
Normal file
@@ -0,0 +1,14 @@
|
||||
#include <mbgl/renderer/change_request.hpp>
|
||||
#include <mbgl/renderer/render_orchestrator.hpp>
|
||||
|
||||
namespace mbgl {
|
||||
|
||||
void AddDrawableRequest::execute(RenderOrchestrator &orchestrator) {
|
||||
orchestrator.addDrawable(std::move(drawable));
|
||||
}
|
||||
|
||||
void RemoveDrawableRequest::execute(RenderOrchestrator &orchestrator) {
|
||||
orchestrator.removeDrawable(drawableId);
|
||||
}
|
||||
|
||||
} // namespace mbgl
|
||||
Reference in New Issue
Block a user