<commit_before>﻿using System;
using System.Runtime.InteropServices;
using System.Text;

namespace GLDotNet
{
    public static unsafe partial class GL
    {
        public static void glBufferData(uint target, int size, IntPtr data, uint usage)
        {
            glBufferData(target, size, data.ToPointer(), usage);
        }

        public static void glBufferData<T>(uint target, int size, T[] data, uint usage)
            where T: unmanaged
        {
            fixed (void* dataPtr = data)
            {
                glBufferData(target, size, dataPtr, usage);
            }
        }

        public static void glDeleteBuffer(uint buffer)
        {
            glDeleteBuffers(1, &buffer);
        }

        public static void glDeleteTexture(uint texture)
        {
            glDeleteVertexArrays(1, &texture);
        }

        public static void glDeleteVertexArray(uint vertexArray)
        {
            glDeleteVertexArrays(1, &vertexArray);
        }

        public static void glDrawElements(uint mode, int count, uint type, IntPtr indices)
        {
            glDrawElements(mode, count, type, indices.ToPointer());
        }

        public static uint glGenBuffer()
        {
            uint buffer;
            glGenBuffers(1, &buffer);
            return buffer;
        }

        public static uint glGenTexture()
        {
            uint texture;
            glGenTextures(1, &texture);
            return texture;
        }

        public static uint glGenVertexArray()<commit_msg>Adding glDeleteFramebuffer / glGenFramebuffer overloads.<commit_after>﻿using System;
using System.Runtime.InteropServices;
using System.Text;

namespace GLDotNet
{
    public static unsafe partial class GL
    {
        public static void glBufferData(uint target, int size, IntPtr data, uint usage)
        {
            glBufferData(target, size, data.ToPointer(), usage);
        }

        public static void glBufferData<T>(uint target, int size, T[] data, uint usage)
            where T: unmanaged
        {
            fixed (void* dataPtr = data)
            {
                glBufferData(target, size, dataPtr, usage);
            }
        }

        public static void glDeleteBuffer(uint buffer)
        {
            glDeleteBuffers(1, &buffer);
        }

        public static void glDeleteFramebuffer(uint framebuffer)
        {
            glDeleteFramebuffers(1, &framebuffer);
        }

        public static void glDeleteTexture(uint texture)
        {
            glDeleteVertexArrays(1, &texture);
        }

        public static void glDeleteVertexArray(uint vertexArray)
        {
            glDeleteVertexArrays(1, &vertexArray);
        }

        public static void glDrawElements(uint mode, int count, uint type, IntPtr indices)
        {
            glDrawElements(mode, count, type, indices.ToPointer());
        }

        public static uint glGenBuffer()
        {
            uint buffer;
            glGenBuffers(1, &buffer);
            return buffer;
        }

        public static uint glGenFramebuffer()
        {
            uint framebuffer;
            glGenFramebuffers(1, &framebuffer);
            return framebuffer;
        }

        public static uint glGenTexture()
        {
            uint texture;
            glGenTextures(1, &texture);
            return texture;
        }

        public static uint glGenVertexArray()
{'fraction_non_alphanumeric': 0.07631347226298797, 'fraction_numerical': 0.0035221602582917524, 'mean_word_length': 1.7843137254901962, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '4911410', 'n_tokens_mistral': 875, 'n_tokens_neox': 857, 'n_words': 241}