mirror of
https://codeberg.org/comaps/comaps
synced 2026-01-08 05:17:56 +00:00
committed by
Konstantin Pastbin
parent
c9cbb64f12
commit
76ffc99abd
19
libs/drape/drape_tests/dummy_texture.hpp
Normal file
19
libs/drape/drape_tests/dummy_texture.hpp
Normal file
@@ -0,0 +1,19 @@
|
||||
#pragma once
|
||||
|
||||
#include "drape/pointers.hpp"
|
||||
#include "drape/texture.hpp"
|
||||
|
||||
class DummyTexture : public dp::Texture
|
||||
{
|
||||
public:
|
||||
ref_ptr<ResourceInfo> FindResource(Key const & key)
|
||||
{
|
||||
bool dummy = false;
|
||||
return FindResource(key, dummy);
|
||||
}
|
||||
|
||||
virtual ref_ptr<ResourceInfo> FindResource(Key const & /*key*/, bool & /*newResource*/)
|
||||
{
|
||||
return nullptr;
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user