Changes to player, and mesh renderer INCOMPLETE

This commit is contained in:
onTheZero
2025-08-15 16:12:18 -04:00
parent 4bf6b02255
commit 5201ca46ec
22 changed files with 3282 additions and 228 deletions

View File

@@ -1,22 +1,22 @@
#pragma once
#include <InputComponent.h>
#include <IInputComponent.h>
#include <iostream>
#include <InputEnums.h>
enum EInputDirection
{
FORWARD,
BACKWARD,
LEFT,
RIGHT
};
class Player;
class PlayerInputComponent : public InputComponent
class PlayerInputComponent : public IInputComponent
{
private:
Player& PlayerCharacter;
float lastX = 1600 / 2.0f;
float lastY = 900 / 2.0f;
bool bFirstMouse = true;
bool bFreeMouse = false;
public:
virtual void Update(float deltaTime)
{
}
};
PlayerInputComponent(GLFWwindow* Window, Player& PlayerCharacter);
void Update(float DeltaTime) override;
void ProcessKeyboard(float DeltaTime);
static void ProcessMouse(GLFWwindow* Window, double xposIn, double yposIn);
};