mirror of
https://github.com/openharmony/graphic_utils.git
synced 2026-07-21 03:55:20 -04:00
Description:add interface Sig:graphic Feature or Bugfix:Bugfix Binary Source:No Signed-off-by: wangtiantian <wangtiantian19@huawei.com>
This commit is contained in:
@@ -218,9 +218,8 @@ void TransformMap::UpdateMap()
|
||||
if (!FloatEqual(cameraDistance_, 0)) {
|
||||
perspectiveMatrix[2][3] = -1.0f / cameraDistance_; // 2 3 : index
|
||||
}
|
||||
perspectiveMatrix = perspectiveMatrix * translateFromCamera;
|
||||
perspectiveMatrix = translateToCamera * perspectiveMatrix;
|
||||
matrix_ = perspectiveMatrix * matrix_;
|
||||
perspectiveMatrix_ = translateToCamera * (perspectiveMatrix * translateFromCamera);
|
||||
matrix_ = perspectiveMatrix_ * matrix_;
|
||||
SetMatrix(matrix_, true);
|
||||
}
|
||||
|
||||
|
||||
@@ -179,6 +179,11 @@ public:
|
||||
return shear_;
|
||||
}
|
||||
|
||||
const Matrix4<float>& GetPerspectiveMatrix() const
|
||||
{
|
||||
return perspectiveMatrix_;
|
||||
}
|
||||
|
||||
int16_t GetRotateAngle() const
|
||||
{
|
||||
return angle_;
|
||||
@@ -259,6 +264,7 @@ private:
|
||||
Matrix4<float>* trans_[TRANS_NUM];
|
||||
uint8_t opOrder_[TRANS_NUM];
|
||||
Matrix4<float> matrix_;
|
||||
Matrix4<float> perspectiveMatrix_;
|
||||
Matrix4<float> matrixOrig_;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user