<commit_before>#ifndef GRAPHICSDLL_GRAPHICSCOMPONENT_H
#define GRAPHICSDLL_GRAPHICSCOMPONENT_H

#include <d3d11_1.h>
#include <DirectXMath.h>
#include <string>
#include "../ResourceLib/Model.h"

struct GraphicsComponent
{
	int active = 0;
	unsigned int modelID = 0;
	Resources::Model* modelPtr = nullptr;
	DirectX::XMMATRIX worldMatrix;
	DirectX::XMMATRIX ort;
	DirectX::XMFLOAT3 pos;
	DirectX::XMFLOAT3 extensions;
	GraphicsComponent() {}
	GraphicsComponent(const GraphicsComponent& a) {

		this->active	  = a.active;
		this->modelID     = a.modelID;
		this->modelPtr    = a.modelPtr;
		this->worldMatrix = a.worldMatrix;
		this->ort		  = a.ort;
		this->pos		  = a.pos;
		this->extensions  = a.extensions;
	} // user-defined copy ctor
	void* operator new(size_t i) { return _aligned_malloc(i, 16); };
	void operator delete(void* p) { _aligned_free(p); };

};

struct GraphicsAnimationComponent : GraphicsComponent
{
	int jointCount = 0;
	DirectX::XMMATRIX finalJointTransforms[22];

	void* operator new(size_t i) { return _aligned_malloc(i, 16); };
	void operator delete(void* p) {	_aligned_free(p); };
};

struct UIComponent
{
	int active = 0;
	int spriteID = -1;
	bool wasClicked = false;
	bool isHovered = false;
	DirectX::XMFLOAT2 position = DirectX::XMFLOAT2(0.0f, 0.0f);
	DirectX::FXMVECTOR origin = DirectX::XMVectorSet(0.f, 0.f, 0.f, 0.f);
	DirectX::XMFLOAT2 size = DirectX::XMFLOAT2(10.0f, 10.0f);
	float scale = 1.f;
	float rotation = 0.f;
	float layerDepth = 1.f;

	void ResetValuesToDefault()
	{
		this->active = 0;
		this->spriteID = -1;
		this->wasClicked = false;
		this->isHovered = false;
		this->position = DirectX::XMFLOAT2(0.0f, 0.0f);
		this->size = DirectX::XMFLOAT2(10.0f, 10.0f);
		this->scale = 1.f;
		this->rotation = 0.f;
		this->layerDepth = 1.f;
	}<commit_msg>UPDATE function requesting fxmvector taking float2<commit_after>#ifndef GRAPHICSDLL_GRAPHICSCOMPONENT_H
#define GRAPHICSDLL_GRAPHICSCOMPONENT_H

#include <d3d11_1.h>
#include <DirectXMath.h>
#include <string>
#include "../ResourceLib/Model.h"

struct GraphicsComponent
{
	int active = 0;
	unsigned int modelID = 0;
	Resources::Model* modelPtr = nullptr;
	DirectX::XMMATRIX worldMatrix;
	DirectX::XMMATRIX ort;
	DirectX::XMFLOAT3 pos;
	DirectX::XMFLOAT3 extensions;
	GraphicsComponent() {}
	GraphicsComponent(const GraphicsComponent& a) {

		this->active	  = a.active;
		this->modelID     = a.modelID;
		this->modelPtr    = a.modelPtr;
		this->worldMatrix = a.worldMatrix;
		this->ort		  = a.ort;
		this->pos		  = a.pos;
		this->extensions  = a.extensions;
	} // user-defined copy ctor
	void* operator new(size_t i) { return _aligned_malloc(i, 16); };
	void operator delete(void* p) { _aligned_free(p); };

};

struct GraphicsAnimationComponent : GraphicsComponent
{
	int jointCount = 0;
	DirectX::XMMATRIX finalJointTransforms[22];

	void* operator new(size_t i) { return _aligned_malloc(i, 16); };
	void operator delete(void* p) {	_aligned_free(p); };
};

struct UIComponent
{
	int active = 0;
	int spriteID = -1;
	bool wasClicked = false;
	bool isHovered = false;
	DirectX::XMFLOAT2 position = DirectX::XMFLOAT2(0.0f, 0.0f);
	DirectX::XMFLOAT2 origin = DirectX::XMFLOAT2(0.0f, 0.0f);
	DirectX::XMFLOAT2 size = DirectX::XMFLOAT2(10.0f, 10.0f);
	float scale = 1.f;
	float rotation = 0.f;
	float layerDepth = 1.f;

	void ResetValuesToDefault()
	{
		this->active = 0;
		this->spriteID = -1;
		this->wasClicked = false;
		this->isHovered = false;
		this->position = DirectX::XMFLOAT2(0.0f, 0.0f);
		this->size = DirectX::XMFLOAT2(10.0f, 10.0f);
		this->scale = 1.f;
		this->rotation = 0.f;
		this->layerDepth = 1.f;
	}
{'fraction_non_alphanumeric': 0.1420249653259362, 'fraction_numerical': 0.031345353675450764, 'mean_word_length': 4.430722891566265, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 41, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3095585', 'n_tokens_mistral': 1523, 'n_tokens_neox': 1393, 'n_words': 291}