yyc12345
4bfc4782b5
- refactor VxVector-like struct. split their declaration and implementatio because their implementation is too long. and occupy too much space in header. - refactor VxVector struct generator. use jinja2 template engine, rather ran hand-written format string to make it is easy to read (although it still tough when first reading). - add unary operator overloading for VxVector-like struct. - add some VxMatrix functions which are essential to CKCamera. - rename VxMatrix::ResetToIdentity to VxMatrix::SetIdentity to make it same as original Virtools SDK. - the spaceship overloading with auto return value still may have bugs. please watch it carefully.
48 lines
1.1 KiB
C++
48 lines
1.1 KiB
C++
#include "CKCamera.hpp"
|
|
#include "../CKStateChunk.hpp"
|
|
|
|
namespace LibCmo::CK2::ObjImpls {
|
|
|
|
#pragma region Class Operations
|
|
|
|
CK_CAMERA_PROJECTION CKCamera::GetProjectionType() const {
|
|
return CK_CAMERA_PROJECTION();
|
|
}
|
|
void CKCamera::SetProjectionType(CK_CAMERA_PROJECTION proj) {}
|
|
|
|
CKFLOAT CKCamera::GetOrthographicZoom() const {
|
|
return CKFLOAT();
|
|
}
|
|
void CKCamera::SetOrthographicZoom(CKFLOAT zoom) {}
|
|
|
|
CKFLOAT CKCamera::GetFrontPlane() const {
|
|
return CKFLOAT();
|
|
}
|
|
CKFLOAT CKCamera::GetBackPlane() const {
|
|
return CKFLOAT();
|
|
}
|
|
CKFLOAT CKCamera::GetFov() const {
|
|
return CKFLOAT();
|
|
}
|
|
void CKCamera::SetFrontPlane(CKFLOAT front) {}
|
|
void CKCamera::SetBackPlane(CKFLOAT back) {}
|
|
void CKCamera::SetFov(CKFLOAT fov) {}
|
|
|
|
void CKCamera::GetAspectRatio(int& width, int& height) const {}
|
|
void CKCamera::SetAspectRatio(int width, int height) {}
|
|
|
|
void CKCamera::ComputeProjectionMatrix(VxMath::VxMatrix& mat) const {}
|
|
|
|
void CKCamera::ResetRoll() {}
|
|
void CKCamera::Roll(CKFLOAT angle) {}
|
|
|
|
CK3dEntity* CKCamera::GetTarget() const {
|
|
return nullptr;
|
|
}
|
|
void CKCamera::SetTarget(CK3dEntity* target) {}
|
|
|
|
#pragma endregion
|
|
|
|
|
|
}
|