Remodel
This commit is contained in:
@@ -181,7 +181,7 @@ void dae::Camera::Update(const dae::Timer *pTimer) {
|
||||
|
||||
//Update Matrices
|
||||
CalculateViewMatrix();
|
||||
CalculateProjectionMatrix(); //Try to optimize this - should only be called once or when fov/aspectRatio changes
|
||||
CalculateProjectionMatrix();
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -6,9 +6,9 @@
|
||||
#include <SDL_mouse.h>
|
||||
|
||||
#include "Timer.h"
|
||||
#include "Vector3.h"
|
||||
#include "MathHelpers.h"
|
||||
#include "Matrix.h"
|
||||
#include "Math/Vector3.h"
|
||||
#include "Math/MathHelpers.h"
|
||||
#include "Math/Matrix.h"
|
||||
|
||||
namespace dae {
|
||||
class Camera {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#pragma once
|
||||
#include "MathHelpers.h"
|
||||
#include "Math/MathHelpers.h"
|
||||
|
||||
namespace dae
|
||||
{
|
||||
|
||||
@@ -8,8 +8,8 @@
|
||||
#include <d3d11.h>
|
||||
#include <d3dx11effect.h>
|
||||
|
||||
#include "Material.h"
|
||||
#include "Matrix.h"
|
||||
#include "../Material.h"
|
||||
#include "../Math/Matrix.h"
|
||||
|
||||
class BaseEffect {
|
||||
public:
|
||||
@@ -1,4 +1,4 @@
|
||||
#include "pch.h"
|
||||
#include "../pch.h"
|
||||
#include "Effect.h"
|
||||
|
||||
#include <fstream>
|
||||
@@ -1,7 +1,7 @@
|
||||
#pragma once
|
||||
#include "ColorRGB.h"
|
||||
#include "Vector2.h"
|
||||
#include "Vector3.h"
|
||||
#include "Vector4.h"
|
||||
#include "Matrix.h"
|
||||
#include "MathHelpers.h"
|
||||
#include "Math/Vector2.h"
|
||||
#include "Math/Vector3.h"
|
||||
#include "Math/Vector4.h"
|
||||
#include "Math/Matrix.h"
|
||||
#include "Math/MathHelpers.h"
|
||||
@@ -1,4 +1,4 @@
|
||||
#include "pch.h"
|
||||
#include "../pch.h"
|
||||
|
||||
#include "Matrix.h"
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#include "pch.h"
|
||||
#include "../pch.h"
|
||||
|
||||
#include "Vector2.h"
|
||||
#include <cassert>
|
||||
@@ -1,4 +1,4 @@
|
||||
#include "pch.h"
|
||||
#include "../pch.h"
|
||||
|
||||
#include "Vector3.h"
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#include "pch.h"
|
||||
#include "../pch.h"
|
||||
|
||||
#include "Vector4.h"
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
#include "pch.h"
|
||||
#include "Mesh.h"
|
||||
|
||||
#include "Effect.h"
|
||||
#include "Effects/Effect.h"
|
||||
|
||||
Mesh::Mesh(ID3D11Device *devicePtr, const std::vector<VertexIn> &verticesIn, const std::vector<Uint32> &indices, std::shared_ptr<Material> material, BaseEffect* effectPtr) :
|
||||
m_EffectPtr(effectPtr),
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#pragma once
|
||||
|
||||
#include "Texture.h"
|
||||
#include "BaseEffect.h"
|
||||
#include "Effects/BaseEffect.h"
|
||||
|
||||
#include <d3d11.h>
|
||||
#include <vector>
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
#include "Mesh.h"
|
||||
#include "Utils.h"
|
||||
#include "Texture.h"
|
||||
#include "Effect.h"
|
||||
#include "FireEffect.h"
|
||||
#include "Effects/Effect.h"
|
||||
#include "Effects/FireEffect.h"
|
||||
|
||||
namespace dae {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user