forked from organicmaps/organicmaps
added DisplayList::uploadData
This commit is contained in:
parent
dc50e6ca0c
commit
fac9865a58
2 changed files with 8 additions and 0 deletions
|
@ -78,6 +78,12 @@ namespace yg
|
|||
m_discardStorageCmd.push_back(cmd);
|
||||
}
|
||||
|
||||
void DisplayList::uploadData(shared_ptr<UploadDataCmd> const & cmd)
|
||||
{
|
||||
cmd->setIsDebugging(m_isDebugging);
|
||||
m_parent->processCommand(cmd);
|
||||
}
|
||||
|
||||
void DisplayList::draw(math::Matrix<double, 3, 3> const & m)
|
||||
{
|
||||
math::Matrix<float, 4, 4> mv;
|
||||
|
|
|
@ -17,6 +17,7 @@ namespace yg
|
|||
typedef GeometryRenderer::FreeStorage FreeStorageCmd;
|
||||
typedef GeometryRenderer::ApplyBlitStates ApplyBlitStatesCmd;
|
||||
typedef GeometryRenderer::ApplyStates ApplyStatesCmd;
|
||||
typedef GeometryRenderer::UploadData UploadDataCmd;
|
||||
|
||||
list<shared_ptr<Command> > m_commands;
|
||||
|
||||
|
@ -41,6 +42,7 @@ namespace yg
|
|||
void discardStorage(shared_ptr<DiscardStorageCmd> const & cmd);
|
||||
void freeTexture(shared_ptr<FreeTextureCmd> const & cmd);
|
||||
void freeStorage(shared_ptr<FreeStorageCmd> const & cmd);
|
||||
void uploadData(shared_ptr<UploadDataCmd> const & cmd);
|
||||
|
||||
void draw(math::Matrix<double, 3, 3> const & m);
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue