<commit_before>﻿#include "Globals.h"
#include "Application.h"
#include "ModuleSceneIntro.h"
#include"Devil\include\ilut.h"

#pragma comment (lib, "../StartingEngine/Devil/libx86/DevIL.lib")
#pragma comment (lib, "../StartingEngine/Devil/libx86/ILU.lib")
#pragma comment (lib, "../StartingEngine/Devil/libx86/ILUT.lib")


ModuleSceneIntro::ModuleSceneIntro(bool start_enabled) : Module(start_enabled)
{
}

ModuleSceneIntro::~ModuleSceneIntro()
{}

// Load assets
bool ModuleSceneIntro::Start()
{
	GLfloat LightModelAmbient[] = { 0.0f, 0.0f, 0.0f, 1.0f };
	glLightModelfv(GL_LIGHT_MODEL_AMBIENT, LightModelAmbient);
	lights[0].ref = GL_LIGHT0;
	lights[0].ambient.Set(0.5f, 0.5f, 0.5f, 1.0f);
	lights[0].diffuse.Set(.5f, .5f, 0.5f, 1.0f);
	lights[0].SetPos(1.0f, 0.0f, 2.5f);
	lights[0].Init();

	glEnable(GL_DEPTH_TEST);
	glEnable(GL_CULL_FACE);
	lights[0].Active(true);
	glEnable(GL_LIGHTING);
	glEnable(GL_COLOR_MATERIAL);
	//LOG("Loading Intro assets");
	bool ret = true;
	//
	sphere = new Sphere({ 0,0,0 }, 3);
	sphere->Triangulate(&vect_v, &norm_v, NULL, 6144, false);

	vec p1 = { 2,0,0 };
	vec p2 = { -2,0,0 };
	n_sphere_o = new Sphere(p1, 1);
	//App->scene_intro->n_sphere_one->Intersects(*App->scene_intro->n_sphere_two);

	n_sphere_o->Triangulate(&vec1, &vec2, NULL, 1536, false);



	
	planeindex =
	{
		// bottom
		0, 1, 2,
		2, 3, 0,
	};
	plane_vert =
	{
		100,0,100,
		100,0,-100,
		-100,0,-100,
		-100,0,100,

	};


	static std::vector<GLfloat>  vertices =
	{
		0.0f,0.0f,0.0f,
		1.0f,0.0f,0.0f,
		1.0f,0.0f,1.0f,
		0.0f,0.0f,1.0f,
		0.0f,1.0f,1.0f,
		0.0f,1.0f,0.0f,
		1.0f,1.0f,0.0f,
		1.0f,1.0f,1.0f
	};
	static std::vector<uint> indices =
	{
		3,7,4,
		3,2,7,
		2,6,7,
		2,1,6,
		1,5,6,
		1,0,5,
		0,4,5,
		0,3,4,
		4,6,5,
		4,7,6,
		1,3,0,
		2,3,1
	};


	texture_coord =
	{
		0.0f, 0.0f,
		1.0f, 1.0f,
		0.0f, 1.0f,
		0.0f, 0.0f,
		1.0f, 0.0f,
		1.0f, 1.0f,
		0.0f, 0.0f,
		1.0f, 1.0f,
		0.0f, 1.0f,
		0.0f, 0.0f,
		1.0f, 0.0f,
		1.0f, 1.0f,
		0.0f, 0.0f,
		1.0f, 1.0f,
		0.0f, 1.0f,
		0.0f, 0.0f,
		1.0f, 0.0f,
		1.0f, 1.0f,
	};<commit_msg>Almost finishing index texture painting<commit_after>﻿#include "Globals.h"
#include "Application.h"
#include "ModuleSceneIntro.h"
#include"Devil\include\ilut.h"

#pragma comment (lib, "../StartingEngine/Devil/libx86/DevIL.lib")
#pragma comment (lib, "../StartingEngine/Devil/libx86/ILU.lib")
#pragma comment (lib, "../StartingEngine/Devil/libx86/ILUT.lib")


ModuleSceneIntro::ModuleSceneIntro(bool start_enabled) : Module(start_enabled)
{
}

ModuleSceneIntro::~ModuleSceneIntro()
{}

// Load assets
bool ModuleSceneIntro::Start()
{
	GLfloat LightModelAmbient[] = { 0.0f, 0.0f, 0.0f, 1.0f };
	glLightModelfv(GL_LIGHT_MODEL_AMBIENT, LightModelAmbient);
	lights[0].ref = GL_LIGHT0;
	lights[0].ambient.Set(0.5f, 0.5f, 0.5f, 1.0f);
	lights[0].diffuse.Set(.5f, .5f, 0.5f, 1.0f);
	lights[0].SetPos(1.0f, 0.0f, 2.5f);
	lights[0].Init();

	glEnable(GL_DEPTH_TEST);
	glEnable(GL_CULL_FACE);
	lights[0].Active(true);
	glEnable(GL_LIGHTING);
	glEnable(GL_COLOR_MATERIAL);
	//LOG("Loading Intro assets");
	bool ret = true;
	//
	sphere = new Sphere({ 0,0,0 }, 3);
	sphere->Triangulate(&vect_v, &norm_v, NULL, 6144, false);

	vec p1 = { 2,0,0 };
	vec p2 = { -2,0,0 };
	n_sphere_o = new Sphere(p1, 1);
	//App->scene_intro->n_sphere_one->Intersects(*App->scene_intro->n_sphere_two);

	n_sphere_o->Triangulate(&vec1, &vec2, NULL, 1536, false);



	
	planeindex =
	{
		// bottom
		0, 1, 2,
		2, 3, 0,
	};
	plane_vert =
	{
		100,0,100,
		100,0,-100,
		-100,0,-100,
		-100,0,100,

	};


	static std::vector<GLfloat>  vertices =
	{
		0.0f,0.0f,0.0f,
		1.0f,0.0f,0.0f,
		1.0f,0.0f,1.0f,
		0.0f,0.0f,1.0f,

		0.0f,1.0f,0.0f,
		1.0f,1.0f,0.0f,
		1.0f,1.0f,1.0f,
		0.0f,1.0f,1.0f,

		1.0f,0.0f,0.0f,
		1.0f,0.0f,1.0f,
		1.0f,1.0f,1.0f,
		1.0f,1.0f,0.0f,

		0.0f,0.0f,1.0f,
		0.0f,0.0f,0.0f,
		0.0f,1.0f,0.0f,
		0.0f,1.0f,1.0f
	};
	static std::vector<uint> indices =
	{
		0,1,2,
		2,3,0,
		//Need to fix

		8,9,10,
		10,11,8,


		12,13,14,
		14,15,12,

		4,5,6,
		6,7,4,

	};


	texture_coord =
	{

		0.0f, 0.0f,
		1.0f, 0.0f,
		1.0f, 1.0f,
		0.0f, 1.0f,

		0.0f, 0.0f,
		1.0f, 0.0f,
		1.0f, 1.0f,
		0.0f, 1.0f,

		0.0f, 0.0f,
		1.0f, 0.0f,
		1.0f, 1.0f,
		0.0f, 1.0f,

		0.0f, 0.0f,
		1.0f, 0.0f,
		1.0f, 1.0f,
		0.0f, 1.0f,

		/*0.0f, 1.0f,
		0.0f, 0.0f,
		1.0f, 0.0f,
		1.0f, 1.0f,
		0.0f, 0.0f,
		1.0f, 1.0f,
		0.0f, 1.0f,
		0.0f, 0.0f,
		1.0f, 0.0f,
		1.0f, 1.0f,
		0.0f, 0.0f,
		1.0f, 1.0f,
		0.0f, 1.0f,
		0.0f, 0.0f,
		1.0f, 0.0f,
		1.0f, 1.0f,*/
	};
{'fraction_non_alphanumeric': 0.2228902248942329, 'fraction_numerical': 0.13604987753284348, 'mean_word_length': 3.087352138307552, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 21, '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': '4804857', 'n_tokens_mistral': 2876, 'n_tokens_neox': 2552, 'n_words': 363}