<commit_before>#include "App.hpp"
#include <GL/gl.h>
#include <GL/glu.h>

#pragma comment(lib, "glu32.lib")

GLfloat Rotation = 0.0f;

App::App() : my_Done(false)
{

}

App::~App()
{
	Finalize();
}

void App::Initialize()
{
	Finalize();

	my_Window.Initialize(L"GLTSF", Video_Mode(Width, Height, Bits_Per_Pixel), Fullscreen);
	my_Window.Set_Listener(this);
	my_Window.Show();
	my_Window.Hide_Cursor();
}

void App::Finalize()
{
	my_Window.Finalize();
}

void App::Run()
{
	Initialize();
	while (!my_Done)
	{
		my_Window.Handle_Events();

		Update();
		Draw();
		my_Window.Display();
	}
}

void App::On_Close()
{
	my_Done = true;
	my_Window.Hide();
}

void App::On_Key_Down(int Key)
{
	switch (Key)
	{
	case VK_ESCAPE:
		On_Close();
		break;
	}
}

void App::On_Key_Up(int Key)
{

}

void App::On_Char(unsigned int Char)
{
	printf("Char: U+%04X\n", Char);
}

void App::On_Resized(unsigned int Width, unsigned int Height)
{<commit_msg>Fixed window title (from GLTSF to GLIMM).<commit_after>#include "App.hpp"
#include <GL/gl.h>
#include <GL/glu.h>

#pragma comment(lib, "glu32.lib")

GLfloat Rotation = 0.0f;

App::App() : my_Done(false)
{

}

App::~App()
{
	Finalize();
}

void App::Initialize()
{
	Finalize();

	my_Window.Initialize(L"GLIMM", Video_Mode(Width, Height, Bits_Per_Pixel), Fullscreen);
	my_Window.Set_Listener(this);
	my_Window.Show();
	my_Window.Hide_Cursor();
}

void App::Finalize()
{
	my_Window.Finalize();
}

void App::Run()
{
	Initialize();
	while (!my_Done)
	{
		my_Window.Handle_Events();

		Update();
		Draw();
		my_Window.Display();
	}
}

void App::On_Close()
{
	my_Done = true;
	my_Window.Hide();
}

void App::On_Key_Down(int Key)
{
	switch (Key)
	{
	case VK_ESCAPE:
		On_Close();
		break;
	case VK_TAB:
		my_Window.Get_IMM().Toggle();
		break;
	}
}

void App::On_Key_Up(int Key)
{

}

void App::On_Char(unsigned int Char)
{
	printf("Char: U+%04X\n", Char);
}

void App::On_Resized(unsigned int Width, unsigned int Height)
{
{'fraction_non_alphanumeric': 0.18284540318438625, 'fraction_numerical': 0.0061633281972265025, 'mean_word_length': 4.84984984984985, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '2067088', 'n_tokens_mistral': 871, 'n_tokens_neox': 847, 'n_words': 150}