feat: add 4 new added classes in Unvirt.

- fix a fatal issue that make the output message from CKContext is empty.
- fix argument type error for CKCamera::GetAspect and CKCamera::SetAspect.
- add enums annotation and struct diaplay function in Unvirt for showing 4 new added classes.
This commit is contained in:
2024-12-25 13:58:39 +08:00
parent eef3a352d9
commit 86b27557c9
6 changed files with 94 additions and 7 deletions

View File

@ -117,11 +117,11 @@ SetObjectFlags(obj_flags); \
REMOVE_UPTODATE_FLAG;
}
void CKCamera::GetAspectRatio(int& width, int& height) const {
void CKCamera::GetAspectRatio(CKDWORD& width, CKDWORD& height) const {
width = m_Width;
height = m_Height;
}
void CKCamera::SetAspectRatio(int width, int height) {
void CKCamera::SetAspectRatio(CKDWORD width, CKDWORD height) {
m_Width = width;
m_Height = height;
REMOVE_UPTODATE_FLAG;

View File

@ -33,8 +33,8 @@ namespace LibCmo::CK2::ObjImpls {
void SetBackPlane(CKFLOAT back);
void SetFov(CKFLOAT fov);
void GetAspectRatio(int& width, int& height) const;
void SetAspectRatio(int width, int height);
void GetAspectRatio(CKDWORD& width, CKDWORD& height) const;
void SetAspectRatio(CKDWORD width, CKDWORD height);
void ComputeProjectionMatrix(VxMath::VxMatrix& mat) const;