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:
iDunnoDev
2022-04-18 22:33:15 +01:00
committed by iDunnoDev
parent 65255f1321
commit 7a57c73ac3
47 changed files with 4323 additions and 91 deletions

View File

@ -26,12 +26,14 @@ public:
virtual void DoTestUpdate(float inputTest) { _testInt = inputTest; }
void SetWorldTransform(FXMMATRIX& worldTransformation) { XMStoreFloat4x4(&_worldTransformation, worldTransformation); }
void AddToWorldTransform(FXMMATRIX& transformation) { XMStoreFloat4x4(&_worldTransformation, XMLoadFloat4x4(&_worldTransformation) * transformation); }
// Although only required in the composite class, these are provided
// in order to simplify the code base.
virtual void Add(SceneNodePointer node) {}
virtual void Remove(SceneNodePointer node) {};
virtual SceneNodePointer Find(wstring name) { return (_name == name) ? shared_from_this() : nullptr; }
virtual SceneNodePointer GetFirstChild() { return shared_from_this(); }
protected:
XMFLOAT4X4 _worldTransformation;