<commit_before>package com.amittaigames.engine.graphics;

import com.amittaigames.engine.util.Buffers;

import java.nio.FloatBuffer;
import java.nio.IntBuffer;

import static org.lwjgl.opengl.GL11.*;
import static org.lwjgl.opengl.GL15.*;

public class Render {
	
	/**
	 * Clear the color buffer
	 * @param r Red component
	 * @param g Green component
	 * @param b Blue component
	 */
	public void clear(int r, int g, int b) {
		glClearColor((float)r/255.0f, (float)g/255.0f, (float)b/255.0f, 1);
		glClear(GL_COLOR_BUFFER_BIT);
	}

	/**
	 * Wrapper for mesh drawing<commit_msg>Commit #0025 (Set line render mode)<commit_after>package com.amittaigames.engine.graphics;

import com.amittaigames.engine.util.Buffers;

import java.nio.FloatBuffer;
import java.nio.IntBuffer;

import static org.lwjgl.opengl.GL11.*;
import static org.lwjgl.opengl.GL15.*;

public class Render {
	
	/**
	 * Clear the color buffer
	 * @param r Red component
	 * @param g Green component
	 * @param b Blue component
	 */
	public void clear(int r, int g, int b) {
		glClearColor((float)r/255.0f, (float)g/255.0f, (float)b/255.0f, 1);
		glClear(GL_COLOR_BUFFER_BIT);
	}
	
	/**
	 * Set line render mode
	 * @param lines Should render draw lines or fill?
	 */
	public void setLineMode(boolean lines) {
		if (lines)
			glPolygonMode(GL_FRONT, GL_LINE);
		else
			glPolygonMode(GL_FRONT, GL_FILL);
	}

	/**
	 * Wrapper for mesh drawing
{'fraction_non_alphanumeric': 0.12384341637010676, 'fraction_numerical': 0.02704626334519573, 'mean_word_length': 3.8819444444444446, 'pattern_counts': {'":': 0, '<': 3, '<?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': '5444074', 'n_tokens_mistral': 559, 'n_tokens_neox': 506, 'n_words': 127}