<commit_before>#include "sgct.h"
#include "ParticleSystem.h"
#include "Snow.h"
#include "World.h"
#include "HelperFunctions.h"
#include "Field.h"
#include "Gravity.h"
#include "Wind.h"
#include "SoapBubble.h"
#include "Vortex.h"

#include <iostream>



sgct::Engine* gEngine;
Snow* gParticles;
World* gWorld;
SoapBubble* gBubble;


void initialize();
void draw();

int main(int argc, char *argv[])
{
	initRandom();

	gEngine = new sgct::Engine(argc, argv);

	gEngine->setInitOGLFunction(initialize);
	gEngine->setDrawFunction(draw);

	gParticles = new Snow(gEngine);
	gWorld = new World(gEngine);
	gBubble = new SoapBubble(gEngine);

	Gravity* grav = new Gravity();
	grav->init(-0.1f);
	gParticles->addField(grav);

	Wind* wind = new Wind();
	wind->init(getRandom(-0.2, 0.2), 0.0f, getRandom(-0.2, 0.2));
	gParticles->addField(wind);

	Vortex* turbine = new Vortex();
	turbine->init(0.0f, -4.0f, 2.0f);
	turbine->setForce(-10.0f, 0.0f, -1.0f);
	gParticles->addField(turbine);

	cout << "---- Fields active on gParticles ----" << endl;
	gParticles->printFields();
	cout << "---------------" << endl << endl;

	if(!gEngine->init(sgct::Engine::OpenGL_3_3_Core_Profile))
	{
		delete gEngine;
		return EXIT_FAILURE;
	}

	gEngine->render();


	gParticles->destroy();
	delete gEngine;
	delete gParticles;
	delete gWorld;
	delete gBubble;

	exit(EXIT_SUCCESS);
}

void initialize()
{
	gParticles->initialize();
	gWorld->initializeWorld();
	gBubble->createSphere(1.5f, 100);
}

void draw()
{
	double delta = gEngine->getDt();

	gWorld->drawWorld();
	gBubble->drawBubble();

	//gParticles->move(delta);
	//gParticles->draw(delta);
}
<commit_msg>TEKKO PUSHADE AVKOMMENTERADKODgit pull origin developgit pull origin develop<commit_after>#include "sgct.h"
#include "ParticleSystem.h"
#include "Snow.h"
#include "World.h"
#include "HelperFunctions.h"
#include "Field.h"
#include "Gravity.h"
#include "Wind.h"
#include "SoapBubble.h"
#include "Vortex.h"

#include <iostream>



sgct::Engine* gEngine;
Snow* gParticles;
World* gWorld;
SoapBubble* gBubble;


void initialize();
void draw();

int main(int argc, char *argv[])
{
	initRandom();

	gEngine = new sgct::Engine(argc, argv);

	gEngine->setInitOGLFunction(initialize);
	gEngine->setDrawFunction(draw);

	gParticles = new Snow(gEngine);
	gWorld = new World(gEngine);
	gBubble = new SoapBubble(gEngine);

	Gravity* grav = new Gravity();
	grav->init(-0.1f);
	gParticles->addField(grav);

	Wind* wind = new Wind();
	wind->init(getRandom(-0.2, 0.2), 0.0f, getRandom(-0.2, 0.2));
	gParticles->addField(wind);

	Vortex* turbine = new Vortex();
	turbine->init(0.0f, -4.0f, 2.0f);
	turbine->setForce(-10.0f, 0.0f, -1.0f);
	gParticles->addField(turbine);

	cout << "---- Fields active on gParticles ----" << endl;
	gParticles->printFields();
	cout << "---------------" << endl << endl;

	if(!gEngine->init(sgct::Engine::OpenGL_3_3_Core_Profile))
	{
		delete gEngine;
		return EXIT_FAILURE;
	}

	gEngine->render();


	gParticles->destroy();
	delete gEngine;
	delete gParticles;
	delete gWorld;
	delete gBubble;

	exit(EXIT_SUCCESS);
}

void initialize()
{
	gParticles->initialize();
	gWorld->initializeWorld();
	gBubble->createSphere(1.5f, 100);
}

void draw()
{
	double delta = gEngine->getDt();

	gWorld->drawWorld();
	gBubble->drawBubble();

	gParticles->move(delta);
	gParticles->draw(delta);
}

{'fraction_non_alphanumeric': 0.18684289576449384, 'fraction_numerical': 0.01922499249023731, 'mean_word_length': 4.711835334476844, 'pattern_counts': {'":': 0, '<': 25, '<?xml version=': 0, '>': 47, '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': '2025010', 'n_tokens_mistral': 1375, 'n_tokens_neox': 1301, 'n_words': 254}