KRNode::update is now fallible.

Added stub function, KRCamera::update.
This commit is contained in:
2022-09-23 23:43:06 -07:00
parent a186095c47
commit 1bb7238502
4 changed files with 23 additions and 4 deletions

View File

@@ -43,6 +43,17 @@ void KRCamera::InitNodeInfo(KrNodeInfo* nodeInfo)
nodeInfo->camera.skybox_texture = -1;
}
KrResult KRCamera::update(const KrNodeInfo* nodeInfo)
{
KrResult res = KRNode::update(nodeInfo);
if (res != KR_SUCCESS) {
return res;
}
// TODO - Implement surface changes
// TODO - Implement skybox changes
}
KRCamera::KRCamera(KRScene& scene, std::string name) : KRNode(scene, name)
{
m_last_frame_start = 0;
@@ -102,7 +113,6 @@ void KRCamera::setSkyBox(const std::string& skyBox)
{
m_pSkyBoxTexture = NULL;
m_skyBox = skyBox;
}
const std::string KRCamera::getSkyBox() const