<commit_before>//https://code.google.com/p/nya-engine/

#include "texture.h"
#include "render.h"
#include "platform_specific_gl.h"

#include "memory/tmp_buffer.h"

//ToDo: mipmaps and dxt support for cubemaps, mipmaps support in dx11

namespace nya_render
{

namespace
{
    OPENGL_ONLY(unsigned int active_layer=0);

    const unsigned int max_layers=16;
    int current_layers[max_layers]={-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1};
    int active_layers[max_layers]={-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1};

#ifndef DIRECTX11
	const unsigned int cube_faces[]={GL_TEXTURE_CUBE_MAP_POSITIVE_X,GL_TEXTURE_CUBE_MAP_NEGATIVE_X,
                                     GL_TEXTURE_CUBE_MAP_POSITIVE_Y,GL_TEXTURE_CUBE_MAP_NEGATIVE_Y,<commit_msg>limited texture layers to 8<commit_after>//https://code.google.com/p/nya-engine/

#include "texture.h"
#include "render.h"
#include "platform_specific_gl.h"

#include "memory/tmp_buffer.h"

//ToDo: mipmaps and dxt support for cubemaps, mipmaps support in dx11

namespace nya_render
{

namespace
{
    OPENGL_ONLY(unsigned int active_layer=0);

    const unsigned int max_layers=8;
    int current_layers[max_layers]={-1,-1,-1,-1,-1,-1,-1,-1};
    int active_layers[max_layers]={-1,-1,-1,-1,-1,-1,-1,-1};

#ifndef DIRECTX11
	const unsigned int cube_faces[]={GL_TEXTURE_CUBE_MAP_POSITIVE_X,GL_TEXTURE_CUBE_MAP_NEGATIVE_X,
                                     GL_TEXTURE_CUBE_MAP_POSITIVE_Y,GL_TEXTURE_CUBE_MAP_NEGATIVE_Y,
{'fraction_non_alphanumeric': 0.1493550577053632, 'fraction_numerical': 0.042090970807875085, 'mean_word_length': 4.030716723549488, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3665014', 'n_tokens_mistral': 611, 'n_tokens_neox': 568, 'n_words': 85}