<commit_before>#ifndef _DRAG2D_SKETCH3D_H_
#define _DRAG2D_SKETCH3D_H_

#include "Vector.h"

#include <vector>

typedef unsigned int uint32;

namespace z3d 
{

struct Material
{
	vec3 ambient;
	vec3 diffuse;
	vec3 specular;
};

struct Mesh
{
	uint32 vertex_buffer;
	uint32 index_buffer;
	uint32 index_count;

	Material material;
};

class IModel
{
public:
	virtual const std::vector<Mesh>& GetAllMeshes() const = 0;
	virtual ~IModel() {}
};

}

#endif // _DRAG2D_SKETCH3D_H_<commit_msg>[FIXED] Material初始化<commit_after>#ifndef _DRAG2D_SKETCH3D_H_
#define _DRAG2D_SKETCH3D_H_

#include "Vector.h"

#include <vector>

typedef unsigned int uint32;

namespace z3d 
{

struct Material
{
	vec3 ambient;
	vec3 diffuse;
	vec3 specular;

	Material()
		: ambient(0.2, 0, 0)
		, diffuse(0.3, 0, 0)
		, specular(0.4, 0, 0)
	{}
};

struct Mesh
{
	uint32 vertex_buffer;
	uint32 index_buffer;
	uint32 index_count;

	Material material;
};

class IModel
{
public:
	virtual const std::vector<Mesh>& GetAllMeshes() const = 0;
	virtual ~IModel() {}
};

}

#endif // _DRAG2D_SKETCH3D_H_
{'fraction_non_alphanumeric': 0.11455399061032864, 'fraction_numerical': 0.046948356807511735, 'mean_word_length': 4.793478260869565, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '5918619', 'n_tokens_mistral': 489, 'n_tokens_neox': 455, 'n_words': 100}