Added the camera class
Added the DDS Texture Loading for future use Added the gamepad class for future use Added first child method to the scenegraph Added RGB to intensity and lerp methods to the shared methods class Added the terrain node class with normals Fixed issue with submeshnode not passing the world transform to the actual meshes
This commit is contained in:
41
Graphics2/Camera.h
Normal file
41
Graphics2/Camera.h
Normal file
@ -0,0 +1,41 @@
|
||||
#pragma once
|
||||
#include "core.h"
|
||||
#include "DirectXCore.h"
|
||||
|
||||
class Camera
|
||||
{
|
||||
public:
|
||||
Camera();
|
||||
~Camera();
|
||||
|
||||
void Update();
|
||||
XMMATRIX GetViewMatrix();
|
||||
XMVECTOR GetCameraPosition();
|
||||
XMFLOAT4 GetRawCameraPosition();
|
||||
void SetCameraPosition(float x, float y, float z);
|
||||
void SetPitch(float pitch);
|
||||
void SetTotalPitch(float pitch);
|
||||
float GetPitch() const;
|
||||
void SetYaw(float yaw);
|
||||
void SetTotalYaw(float yaw);
|
||||
float GetYaw() const;
|
||||
void SetRoll(float roll);
|
||||
void SetTotalRoll(float roll);
|
||||
float GetRoll() const;
|
||||
void SetLeftRight(float leftRight);
|
||||
void SetForwardBack(float forwardBack);
|
||||
|
||||
private:
|
||||
XMFLOAT4 _cameraPosition;
|
||||
|
||||
XMFLOAT4X4 _viewMatrix;
|
||||
|
||||
float _moveLeftRight;
|
||||
float _moveForwardBack;
|
||||
|
||||
float _cameraYaw;
|
||||
float _cameraPitch;
|
||||
float _cameraRoll;
|
||||
|
||||
};
|
||||
|
Reference in New Issue
Block a user