47
47
delete paint_layer_;
50
void TextureArea::Draw (GraphicsEngine &GfxContext, bool force_draw)
50
void TextureArea::Draw (GraphicsEngine &graphics_engine, bool force_draw)
52
52
// Ability to rotate the widget around its center
53
GfxContext.PushModelViewMatrix(Matrix4::TRANSLATE(-GetBaseX() - GetBaseWidth() / 2, -GetBaseY() - GetBaseHeight() / 2, 0));
54
GfxContext.PushModelViewMatrix(Get2DRotation());
55
GfxContext.PushModelViewMatrix(Matrix4::TRANSLATE(GetBaseX() + GetBaseWidth() / 2, GetBaseY() + GetBaseHeight() / 2, 0));
53
graphics_engine.PushModelViewMatrix(Matrix4::TRANSLATE(-GetBaseX() - GetBaseWidth() / 2, -GetBaseY() - GetBaseHeight() / 2, 0));
54
graphics_engine.PushModelViewMatrix(Get2DRotation());
55
graphics_engine.PushModelViewMatrix(Matrix4::TRANSLATE(GetBaseX() + GetBaseWidth() / 2, GetBaseY() + GetBaseHeight() / 2, 0));
57
57
// The TextureArea should not render the accumulated background. That is left to the caller.
58
// GetPainter().PaintBackground (GfxContext, GetGeometry() );
58
// GetPainter().PaintBackground (graphics_engine, GetGeometry() );
62
62
paint_layer_->SetGeometry(GetGeometry());
63
GetPainter().RenderSinglePaintLayer(GfxContext, GetGeometry(), paint_layer_);
63
GetPainter().RenderSinglePaintLayer(graphics_engine, GetGeometry(), paint_layer_);
66
GfxContext.PopModelViewMatrix();
67
GfxContext.PopModelViewMatrix();
68
GfxContext.PopModelViewMatrix();
66
graphics_engine.PopModelViewMatrix();
67
graphics_engine.PopModelViewMatrix();
68
graphics_engine.PopModelViewMatrix();
71
void TextureArea::DrawContent(GraphicsEngine &GfxContext, bool force_draw)
71
void TextureArea::DrawContent(GraphicsEngine &graphics_engine, bool force_draw)
76
void TextureArea::PostDraw(GraphicsEngine &GfxContext, bool force_draw)
76
void TextureArea::PostDraw(GraphicsEngine &graphics_engine, bool force_draw)