void Camera::Tick(float delta) { //Update Camera Update(delta); UpdateViewMatrix(); UpdateProjectMatrix(); }
//---------------------------------------------------------------------------------------------------------- // Camera //---------------------------------------------------------------------------------------------------------- //Camera::Camera(char *Nom, Ufloat sx, Ufloat sy ) Camera::Camera(LPCSTR Nom) { nom = Nom; SetPos(PosParDefaut); SetTarg(TargParDefaut); SetRoll(.0f); SetFov(75.f); CalcVue(); // SetClipFenetre( sx, sy ); Viewport viewport; // viewport de la camera UpdateProjectMatrix(); UpdateTransMatrix(); UpdatePlans(); Spos = NULL; Starg = NULL; Sroll = NULL; Sfov = NULL; callbackAnim = NULL; }