forked from organicmaps/organicmaps
fixed compilation of TestRenderPolicy
This commit is contained in:
parent
6950fba934
commit
f8822fa29a
3 changed files with 18 additions and 9 deletions
|
@ -48,6 +48,8 @@ namespace yg
|
|||
m2::PointF * geomPts,
|
||||
m2::PointF * texPts);
|
||||
|
||||
public:
|
||||
|
||||
struct IMMDrawTexturedPrimitives : Command
|
||||
{
|
||||
buffer_vector<m2::PointF, 8> m_pts;
|
||||
|
@ -71,8 +73,6 @@ namespace yg
|
|||
shared_ptr<ResourceManager> const & rm);
|
||||
};
|
||||
|
||||
public:
|
||||
|
||||
Blitter(base_t::Params const & params);
|
||||
~Blitter();
|
||||
|
||||
|
|
|
@ -286,6 +286,16 @@ namespace yg
|
|||
m_frameBuffer->setDepthBuffer(rt);
|
||||
}
|
||||
|
||||
Renderer::ClearCommand::ClearCommand(yg::Color const & color,
|
||||
bool clearRT,
|
||||
float depth,
|
||||
bool clearDepth)
|
||||
: m_color(color),
|
||||
m_clearRT(clearRT),
|
||||
m_depth(depth),
|
||||
m_clearDepth(clearDepth)
|
||||
{}
|
||||
|
||||
void Renderer::ClearCommand::perform()
|
||||
{
|
||||
if (isDebugging())
|
||||
|
@ -313,13 +323,7 @@ namespace yg
|
|||
|
||||
void Renderer::clear(yg::Color const & c, bool clearRT, float depth, bool clearDepth)
|
||||
{
|
||||
shared_ptr<ClearCommand> command(new ClearCommand());
|
||||
|
||||
command->m_color = c;
|
||||
command->m_clearRT = clearRT;
|
||||
command->m_depth = depth;
|
||||
command->m_clearDepth = clearDepth;
|
||||
|
||||
shared_ptr<ClearCommand> command(new ClearCommand(c, clearRT, depth, clearDepth));
|
||||
processCommand(command);
|
||||
}
|
||||
|
||||
|
|
|
@ -73,6 +73,11 @@ namespace yg
|
|||
float m_depth;
|
||||
bool m_clearDepth;
|
||||
|
||||
ClearCommand(yg::Color const & color,
|
||||
bool clearRT = true,
|
||||
float depth = 1.0,
|
||||
bool clearDepth = true);
|
||||
|
||||
void perform();
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue