<commit_before>﻿using OpenTK;
using OpenTK.Graphics.OpenGL;
using System;
using System.Drawing;
using System.Windows.Forms;
using PropertyGridExtensionHacks;
using Quad64.src.LevelInfo;
using Quad64.Scripts;
using Quad64.src.JSON;
using Quad64.src;
using Quad64.src.Viewer;
using System.IO;
using Quad64.src.TestROM;
using Quad64.src.Forms;

namespace Quad64
{
    partial class MainForm : Form
    {
        Model3D model1 = new Model3D(), model2 = new Model3D();
        Color bgColor = Color.Black;
        Camera camera = new Camera();
        Vector3 savedCamPos = new Vector3();
        Matrix4 camMtx = Matrix4.Identity;
        Matrix4 ProjMatrix;
        bool isMouseDown = false, isShiftDown = false, moveState = false;
        static Level level;
        float FOV = 1.048f;

        public Level getLevelData { get { return level; } }

        public object SettingsForms { get; private set; }

        private short keepDegreesWithin360(short value)
        {
            if (value < 0)
                return (short)(360 + value);
            else
                return (short)(value % 360);
        }
        
        public MainForm()
        {
            InitializeComponent();
            SettingsFile.LoadGlobalSettings("default");
            glControl1.MouseWheel += new MouseEventHandler(glControl1_Wheel);
            ProjMatrix = Matrix4.CreatePerspectiveFieldOfView(FOV, (float)glControl1.Width/(float)glControl1.Height, 100f, 100000f);
            glControl1.Enabled = false;
            KeyPreview = true;
            treeView1.HideSelection = false;
            camera.updateMatrix(ref camMtx);
            //foreach(ObjectComboEntry entry in Globals.objectComboEntries) Console.WriteLine(entry.ToString());
        }<commit_msg>Avoids prompt "Platform not supported" error<commit_after>﻿using OpenTK;
using OpenTK.Graphics.OpenGL;
using System;
using System.Drawing;
using System.Windows.Forms;
using PropertyGridExtensionHacks;
using Quad64.src.LevelInfo;
using Quad64.Scripts;
using Quad64.src.JSON;
using Quad64.src;
using Quad64.src.Viewer;
using System.IO;
using Quad64.src.TestROM;
using Quad64.src.Forms;

namespace Quad64
{
    partial class MainForm : Form
    {
        Model3D model1 = new Model3D(), model2 = new Model3D();
        Color bgColor = Color.Black;
        Camera camera = new Camera();
        Vector3 savedCamPos = new Vector3();
        Matrix4 camMtx = Matrix4.Identity;
        Matrix4 ProjMatrix;
        bool isMouseDown = false, isShiftDown = false, moveState = false;
        static Level level;
        float FOV = 1.048f;

        public Level getLevelData { get { return level; } }

        public object SettingsForms { get; private set; }

        private short keepDegreesWithin360(short value)
        {
            if (value < 0)
                return (short)(360 + value);
            else
                return (short)(value % 360);
        }
        
        public MainForm()
        {
            InitializeComponent();
            OpenTK.Toolkit.Init();
            glControl1.CreateControl();
            SettingsFile.LoadGlobalSettings("default");
            glControl1.MouseWheel += new MouseEventHandler(glControl1_Wheel);
            ProjMatrix = Matrix4.CreatePerspectiveFieldOfView(FOV, (float)glControl1.Width/(float)glControl1.Height, 100f, 100000f);
            glControl1.Enabled = false;
            KeyPreview = true;
            treeView1.HideSelection = false;
            camera.updateMatrix(ref camMtx);
            //foreach(ObjectComboEntry entry in Globals.objectComboEntries) Console.WriteLine(entry.ToString());
        }
{'fraction_non_alphanumeric': 0.0902317880794702, 'fraction_numerical': 0.03118101545253863, 'mean_word_length': 2.455672068636797, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, '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': '5663891', 'n_tokens_mistral': 1084, 'n_tokens_neox': 999, 'n_words': 249}