#include <stub_renderable.h>
float mir::test::doubles::StubRenderable::alpha |
( |
| ) |
const |
|
inlineoverridevirtual |
bool mir::test::doubles::StubRenderable::alpha_enabled |
( |
| ) |
const |
|
inlinevirtual |
std::shared_ptr<graphics::Buffer> mir::test::doubles::StubRenderable::buffer |
( |
void const * |
user_id | ) |
const |
|
inlineoverridevirtual |
Return the next buffer that should be composited/rendered.
- Parameters
-
[in] | user_id | An arbitrary unique identifier used to distinguish separate threads/monitors/components which need to concurrently receive the same buffer. Calling with the same user_id will return a new (different) buffer to that user each time. For consistency, all callers need to determine their user_id in the same way (e.g. always use "this" pointer). |
Implements mir::graphics::Renderable.
int mir::test::doubles::StubRenderable::buffers_ready_for_compositor |
( |
| ) |
const |
|
inlineoverridevirtual |
bool mir::test::doubles::StubRenderable::shaped |
( |
| ) |
const |
|
inlineoverridevirtual |
glm::mat4 mir::test::doubles::StubRenderable::transformation |
( |
| ) |
const |
|
inlineoverridevirtual |
Transformation returns the transformation matrix that should be applied to the surface.
By default when there are no transformations this will be the identity matrix.
- Warning
- As this functionality is presently only used by mir_demo_standalone_render_surfaces for rotations it may be deprecated in future. It is expected that real transformations may become more transient things (e.g. applied by animation logic externally instead of being a semi-permanent attribute of the surface itself).
Implements mir::graphics::Renderable.
bool mir::test::doubles::StubRenderable::visible |
( |
| ) |
const |
|
inlinevirtual |
TODO: Its a bit questionable that we have this member function, why not just trim the renderable from the RenderableList? Its convenient to have this function temporarily while refactoring –kdub.
Implements mir::graphics::Renderable.
The documentation for this class was generated from the following file:
Copyright © 2012,2013 Canonical Ltd.
Generated on Fri Apr 11 21:14:53 UTC 2014