void GCamera::OnResize(uint32_t new_width, uint32_t new_height) { mClientWidth = new_width; mClientHeight = new_height; InitProjMatrix(mAngle, static_cast<float>(new_width), static_cast<float>(new_height), mNearest, mFarthest); InitOrthoMatrix(static_cast<float>(new_width), static_cast<float>(new_height), 0.0f, mFarthest); }
void GCamera::Angle(float angle) { mAngle = angle; InitProjMatrix(mAngle, mClientWidth, mClientHeight, mNearest, mFarthest); }