Mercurial > hg > orthanc-stone
comparison Framework/Scene2D/Internals/CairoColorTextureRenderer.h @ 888:6e888cf6a48b
renderers now have access to canvas width/height
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 10 Jul 2019 11:58:38 +0200 |
parents | c237e0625065 |
children | 2d8ab34c8c91 |
comparison
equal
deleted
inserted
replaced
871:4bc8d9609447 | 888:6e888cf6a48b |
---|---|
41 CairoColorTextureRenderer(ICairoContextProvider& target, | 41 CairoColorTextureRenderer(ICairoContextProvider& target, |
42 const ISceneLayer& layer); | 42 const ISceneLayer& layer); |
43 | 43 |
44 virtual void Update(const ISceneLayer& layer); | 44 virtual void Update(const ISceneLayer& layer); |
45 | 45 |
46 virtual void Render(const AffineTransform2D& transform) | 46 virtual void Render(const AffineTransform2D& transform, |
47 unsigned int canvasWidth, | |
48 unsigned int canvasHeight) | |
47 { | 49 { |
48 RenderColorTexture(target_, transform, texture_, | 50 RenderColorTexture(target_, transform, texture_, |
49 textureTransform_, isLinearInterpolation_); | 51 textureTransform_, isLinearInterpolation_); |
50 } | 52 } |
51 | 53 |