Program Listing for File GraphicalSceneCamera.h

Program Listing for File GraphicalSceneCamera.h#

Return to documentation for file (include/Karana/Scene/GraphicalSceneCamera.h)

/*
*Copyright(c)2024-2025KaranaDynamicsPtyLtd.Allrightsreserved.
*
*NOTICETOUSER:
*
*Thissourcecodeand/ordocumentation(the"LicensedMaterials")is
*theconfidentialandproprietaryinformationofKaranaDynamicsInc.
*UseoftheseLicensedMaterialsisgovernedbythetermsandconditions
*ofaseparatesoftwarelicenseagreementbetweenKaranaDynamicsandthe
*Licensee("LicenseAgreement").Unlessexpresslypermittedunderthat
*agreement,anyreproduction,modification,distribution,ordisclosure
*oftheLicensedMaterials,inwholeorinpart,toanythirdparty
*withoutthepriorwrittenconsentofKaranaDynamicsisstrictlyprohibited.
*
*THELICENSEDMATERIALSAREPROVIDED"ASIS"WITHOUTWARRANTYOFANYKIND.
*KARANADYNAMICSDISCLAIMSALLWARRANTIES,EXPRESSORIMPLIED,INCLUDING
*BUTNOTLIMITEDTOWARRANTIESOFMERCHANTABILITY,NON-INFRINGEMENT,AND
*FITNESSFORAPARTICULARPURPOSE.
*
*INNOEVENTSHALLKARANADYNAMICSBELIABLEFORANYDAMAGESWHATSOEVER,
*INCLUDINGBUTNOTLIMITEDTOLOSSOFPROFITS,DATA,ORUSE,EVENIF
*ADVISEDOFTHEPOSSIBILITYOFSUCHDAMAGES,WHETHERINCONTRACT,TORT,
*OROTHERWISEARISINGOUTOFORINCONNECTIONWITHTHELICENSEDMATERIALS.
*
*U.S.GovernmentEndUsers:TheLicensedMaterialsarea"commercialitem"
*asdefinedat48C.F.R.2.101,andareprovidedtotheU.S.Government
*onlyasacommercialenditemunderthetermsofthislicense.
*
*AnyuseoftheLicensedMaterialsinindividualorcommercialsoftwaremust
*include,intheuserdocumentationandinternalsourcecodecomments,
*thisNotice,Disclaimer,andU.S.GovernmentUseProvision.
*/


#pragmaonce
#include"Karana/Scene/GraphicalSceneNode.h"
#include"Karana/Scene/Layer.h"
#include"Karana/Scene/Projection.h"

namespaceKarana::Scene{
classGraphicalSceneCamera:publicvirtualGraphicalSceneNode{
protected:
GraphicalSceneCamera(std::string_viewname,
constkc::ks_ptr<Scene>&scene,
constVarProjection&proj=PerspectiveProjection{});

public:
constVarProjection&getProjection()const;

virtualvoidsetProjection(constVarProjection&proj);

layer_tgetMask()const;

virtualvoidsetMask(layer_tmask);

virtualvoidpointCameraAt(constKarana::Math::Vec3&offset,
constKarana::Math::Vec3&target,
constKarana::Math::Vec3&up)=0;

private:
VarProjection_projection;
layer_t_mask=LAYER_GRAPHICS;
};
}//namespaceKarana::Scene