<commit_before>#include <string>
#include <sstream>
#include <iostream>
#include <utility>
#include <glad/glad.h>
#include "vfs.hpp"
#include "texture.hpp"

#if USE_LIB_PNGCPP
#include <png.hpp>
#endif

#define STB_IMAGE_IMPLEMENTATION
#define STBI_NO_STDIO
//exclude image formats
#define STBI_NO_PIC
#define STBI_NO_PNM
#define STBI_NO_PSD
#define STBI_NO_GIF
// This leaves us with the following supported image formats:
// jpg  png  bmp  tga  hdr
#include <stb_image.h>

namespace ORCore
{
    static int _texCount = 0;
    static GLuint _currentBoundtexture = 0;


#if USE_LIB_PNGCPP
    Image loadPNG(std::string filename)
    {
        std::istringstream file(ORCore::read_file( filename, FileMode::Binary ));
        png::image<png::rgba_pixel> image(file);

        auto pixelBuffer = image.get_pixbuf();

        Image imgData;

        imgData.width = image.get_width();<commit_msg>Slience errors with stb_image on windows<commit_after>#include <string>
#include <sstream>
#include <iostream>
#include <utility>
#include <glad/glad.h>
#include "vfs.hpp"
#include "texture.hpp"

#if USE_LIB_PNGCPP
#include <png.hpp>
#endif

#define STB_IMAGE_IMPLEMENTATION
#define STBI_NO_STDIO
//exclude image formats
#define STBI_NO_PIC
#define STBI_NO_PNM
#define STBI_NO_PSD
#define STBI_NO_GIF
// This leaves us with the following supported image formats:
// jpg  png  bmp  tga  hdr
#pragma warning(push, 0)
#include <stb_image.h>
#pragma warning(pop)

namespace ORCore
{
    static int _texCount = 0;
    static GLuint _currentBoundtexture = 0;


#if USE_LIB_PNGCPP
    Image loadPNG(std::string filename)
    {
        std::istringstream file(ORCore::read_file( filename, FileMode::Binary ));
        png::image<png::rgba_pixel> image(file);

        auto pixelBuffer = image.get_pixbuf();

        Image imgData;

        imgData.width = image.get_width();
{'fraction_non_alphanumeric': 0.10597095212479828, 'fraction_numerical': 0.0026896180742334587, 'mean_word_length': 4.329512893982808, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 19, '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': '2317702', 'n_tokens_mistral': 682, 'n_tokens_neox': 662, 'n_words': 165}