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:
@ -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;
|
||||
|
@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user