Added WIP support for affine transformations to BViews.
Everything untested, but compiles, so it must work. The idea is to introduce BAffineTransform additionally to the existing Origin and Scale properties of BViews. One may use it in parallel or as an alternative. Painter in app_server is not yet aware of the additional transformation. It is however already used to transform drawing coordinates. It probably needs to work differently, perhaps only in Painter and AGGTextRenderer.
This commit is contained in:
@@ -9,6 +9,7 @@
|
||||
#define APP_SERVER_PROTOCOL_STRUCTS_H
|
||||
|
||||
|
||||
#include <AffineTransform.h>
|
||||
#include <Rect.h>
|
||||
|
||||
|
||||
@@ -21,6 +22,7 @@ struct ViewSetStateInfo {
|
||||
drawing_mode drawingMode;
|
||||
BPoint origin;
|
||||
float scale;
|
||||
BAffineTransform transform;
|
||||
join_mode lineJoin;
|
||||
cap_mode lineCap;
|
||||
float miterLimit;
|
||||
|
||||
Reference in New Issue
Block a user