Page MenuHomePhorge

Material.pb.cc
No OneTemporary

Size
285 KB
Referenced Files
None
Subscribers
None

Material.pb.cc

This file is larger than 256 KB, so syntax highlighting was skipped.
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: Material.proto
#define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION
#include <echo/generated/Material.pb.h>
#include <algorithm>
#include <google/protobuf/stubs/common.h>
#include <google/protobuf/stubs/once.h>
#include <google/protobuf/io/coded_stream.h>
#include <google/protobuf/wire_format_lite_inl.h>
#include <google/protobuf/descriptor.h>
#include <google/protobuf/generated_message_reflection.h>
#include <google/protobuf/reflection_ops.h>
#include <google/protobuf/wire_format.h>
// @@protoc_insertion_point(includes)
namespace Echo {
namespace Resources {
namespace {
const ::google::protobuf::Descriptor* Material_descriptor_ = NULL;
const ::google::protobuf::internal::GeneratedMessageReflection*
Material_reflection_ = NULL;
const ::google::protobuf::Descriptor* Material_Colour_descriptor_ = NULL;
const ::google::protobuf::internal::GeneratedMessageReflection*
Material_Colour_reflection_ = NULL;
const ::google::protobuf::Descriptor* Material_BlendMode_descriptor_ = NULL;
const ::google::protobuf::internal::GeneratedMessageReflection*
Material_BlendMode_reflection_ = NULL;
const ::google::protobuf::EnumDescriptor* Material_BlendMode_BlendModeEnum_descriptor_ = NULL;
const ::google::protobuf::Descriptor* Material_MemoryMode_descriptor_ = NULL;
const ::google::protobuf::internal::GeneratedMessageReflection*
Material_MemoryMode_reflection_ = NULL;
const ::google::protobuf::EnumDescriptor* Material_MemoryMode_MemoryModeEnum_descriptor_ = NULL;
const ::google::protobuf::Descriptor* Material_Blend_descriptor_ = NULL;
const ::google::protobuf::internal::GeneratedMessageReflection*
Material_Blend_reflection_ = NULL;
const ::google::protobuf::Descriptor* Material_Blend_BlendSource_descriptor_ = NULL;
const ::google::protobuf::internal::GeneratedMessageReflection*
Material_Blend_BlendSource_reflection_ = NULL;
const ::google::protobuf::EnumDescriptor* Material_Blend_BlendSource_BlendSourceEnum_descriptor_ = NULL;
const ::google::protobuf::Descriptor* Material_Blend_BlendOperation_descriptor_ = NULL;
const ::google::protobuf::internal::GeneratedMessageReflection*
Material_Blend_BlendOperation_reflection_ = NULL;
const ::google::protobuf::EnumDescriptor* Material_Blend_BlendOperation_BlendOperationEnum_descriptor_ = NULL;
const ::google::protobuf::Descriptor* Material_TextureWrapMode_descriptor_ = NULL;
const ::google::protobuf::internal::GeneratedMessageReflection*
Material_TextureWrapMode_reflection_ = NULL;
const ::google::protobuf::EnumDescriptor* Material_TextureWrapMode_TextureWrapModeEnum_descriptor_ = NULL;
const ::google::protobuf::Descriptor* Material_TextureFilter_descriptor_ = NULL;
const ::google::protobuf::internal::GeneratedMessageReflection*
Material_TextureFilter_reflection_ = NULL;
const ::google::protobuf::EnumDescriptor* Material_TextureFilter_TextureFilterEnum_descriptor_ = NULL;
const ::google::protobuf::Descriptor* Material_TextureGeneration_descriptor_ = NULL;
const ::google::protobuf::internal::GeneratedMessageReflection*
Material_TextureGeneration_reflection_ = NULL;
const ::google::protobuf::Descriptor* Material_TextureGeneration_Plane_descriptor_ = NULL;
const ::google::protobuf::internal::GeneratedMessageReflection*
Material_TextureGeneration_Plane_reflection_ = NULL;
const ::google::protobuf::Descriptor* Material_TextureGeneration_CubeMap_descriptor_ = NULL;
const ::google::protobuf::internal::GeneratedMessageReflection*
Material_TextureGeneration_CubeMap_reflection_ = NULL;
const ::google::protobuf::EnumDescriptor* Material_TextureGeneration_TextureGenerationModeEnum_descriptor_ = NULL;
const ::google::protobuf::Descriptor* Material_DepthFunction_descriptor_ = NULL;
const ::google::protobuf::internal::GeneratedMessageReflection*
Material_DepthFunction_reflection_ = NULL;
const ::google::protobuf::EnumDescriptor* Material_DepthFunction_DepthFunctionEnum_descriptor_ = NULL;
const ::google::protobuf::Descriptor* Material_AlphaTestFunction_descriptor_ = NULL;
const ::google::protobuf::internal::GeneratedMessageReflection*
Material_AlphaTestFunction_reflection_ = NULL;
const ::google::protobuf::EnumDescriptor* Material_AlphaTestFunction_AlphaTestFunctionEnum_descriptor_ = NULL;
const ::google::protobuf::Descriptor* Material_CullMode_descriptor_ = NULL;
const ::google::protobuf::internal::GeneratedMessageReflection*
Material_CullMode_reflection_ = NULL;
const ::google::protobuf::EnumDescriptor* Material_CullMode_CullModeEnum_descriptor_ = NULL;
const ::google::protobuf::Descriptor* Material_StripFrame_descriptor_ = NULL;
const ::google::protobuf::internal::GeneratedMessageReflection*
Material_StripFrame_reflection_ = NULL;
const ::google::protobuf::Descriptor* Material_AutoStripAnimation_descriptor_ = NULL;
const ::google::protobuf::internal::GeneratedMessageReflection*
Material_AutoStripAnimation_reflection_ = NULL;
const ::google::protobuf::Descriptor* Material_StripAnimation_descriptor_ = NULL;
const ::google::protobuf::internal::GeneratedMessageReflection*
Material_StripAnimation_reflection_ = NULL;
const ::google::protobuf::Descriptor* Material_TextureUnit_descriptor_ = NULL;
const ::google::protobuf::internal::GeneratedMessageReflection*
Material_TextureUnit_reflection_ = NULL;
const ::google::protobuf::Descriptor* Material_ShaderProgram_descriptor_ = NULL;
const ::google::protobuf::internal::GeneratedMessageReflection*
Material_ShaderProgram_reflection_ = NULL;
const ::google::protobuf::Descriptor* Material_Pass_descriptor_ = NULL;
const ::google::protobuf::internal::GeneratedMessageReflection*
Material_Pass_reflection_ = NULL;
const ::google::protobuf::Descriptor* Materials_descriptor_ = NULL;
const ::google::protobuf::internal::GeneratedMessageReflection*
Materials_reflection_ = NULL;
} // namespace
void protobuf_AssignDesc_Material_2eproto() {
protobuf_AddDesc_Material_2eproto();
const ::google::protobuf::FileDescriptor* file =
::google::protobuf::DescriptorPool::generated_pool()->FindFileByName(
"Material.proto");
GOOGLE_CHECK(file != NULL);
Material_descriptor_ = file->message_type(0);
static const int Material_offsets_[2] = {
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Material, pass_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Material, name_),
};
Material_reflection_ =
new ::google::protobuf::internal::GeneratedMessageReflection(
Material_descriptor_,
Material::default_instance_,
Material_offsets_,
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Material, _has_bits_[0]),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Material, _unknown_fields_),
-1,
::google::protobuf::DescriptorPool::generated_pool(),
::google::protobuf::MessageFactory::generated_factory(),
sizeof(Material));
Material_Colour_descriptor_ = Material_descriptor_->nested_type(0);
static const int Material_Colour_offsets_[5] = {
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Material_Colour, r_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Material_Colour, g_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Material_Colour, b_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Material_Colour, a_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Material_Colour, s_),
};
Material_Colour_reflection_ =
new ::google::protobuf::internal::GeneratedMessageReflection(
Material_Colour_descriptor_,
Material_Colour::default_instance_,
Material_Colour_offsets_,
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Material_Colour, _has_bits_[0]),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Material_Colour, _unknown_fields_),
-1,
::google::protobuf::DescriptorPool::generated_pool(),
::google::protobuf::MessageFactory::generated_factory(),
sizeof(Material_Colour));
Material_BlendMode_descriptor_ = Material_descriptor_->nested_type(1);
static const int Material_BlendMode_offsets_[1] = {
};
Material_BlendMode_reflection_ =
new ::google::protobuf::internal::GeneratedMessageReflection(
Material_BlendMode_descriptor_,
Material_BlendMode::default_instance_,
Material_BlendMode_offsets_,
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Material_BlendMode, _has_bits_[0]),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Material_BlendMode, _unknown_fields_),
-1,
::google::protobuf::DescriptorPool::generated_pool(),
::google::protobuf::MessageFactory::generated_factory(),
sizeof(Material_BlendMode));
Material_BlendMode_BlendModeEnum_descriptor_ = Material_BlendMode_descriptor_->enum_type(0);
Material_MemoryMode_descriptor_ = Material_descriptor_->nested_type(2);
static const int Material_MemoryMode_offsets_[1] = {
};
Material_MemoryMode_reflection_ =
new ::google::protobuf::internal::GeneratedMessageReflection(
Material_MemoryMode_descriptor_,
Material_MemoryMode::default_instance_,
Material_MemoryMode_offsets_,
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Material_MemoryMode, _has_bits_[0]),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Material_MemoryMode, _unknown_fields_),
-1,
::google::protobuf::DescriptorPool::generated_pool(),
::google::protobuf::MessageFactory::generated_factory(),
sizeof(Material_MemoryMode));
Material_MemoryMode_MemoryModeEnum_descriptor_ = Material_MemoryMode_descriptor_->enum_type(0);
Material_Blend_descriptor_ = Material_descriptor_->nested_type(3);
static const int Material_Blend_offsets_[3] = {
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Material_Blend, source1_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Material_Blend, source2_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Material_Blend, operation_),
};
Material_Blend_reflection_ =
new ::google::protobuf::internal::GeneratedMessageReflection(
Material_Blend_descriptor_,
Material_Blend::default_instance_,
Material_Blend_offsets_,
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Material_Blend, _has_bits_[0]),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Material_Blend, _unknown_fields_),
-1,
::google::protobuf::DescriptorPool::generated_pool(),
::google::protobuf::MessageFactory::generated_factory(),
sizeof(Material_Blend));
Material_Blend_BlendSource_descriptor_ = Material_Blend_descriptor_->nested_type(0);
static const int Material_Blend_BlendSource_offsets_[1] = {
};
Material_Blend_BlendSource_reflection_ =
new ::google::protobuf::internal::GeneratedMessageReflection(
Material_Blend_BlendSource_descriptor_,
Material_Blend_BlendSource::default_instance_,
Material_Blend_BlendSource_offsets_,
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Material_Blend_BlendSource, _has_bits_[0]),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Material_Blend_BlendSource, _unknown_fields_),
-1,
::google::protobuf::DescriptorPool::generated_pool(),
::google::protobuf::MessageFactory::generated_factory(),
sizeof(Material_Blend_BlendSource));
Material_Blend_BlendSource_BlendSourceEnum_descriptor_ = Material_Blend_BlendSource_descriptor_->enum_type(0);
Material_Blend_BlendOperation_descriptor_ = Material_Blend_descriptor_->nested_type(1);
static const int Material_Blend_BlendOperation_offsets_[1] = {
};
Material_Blend_BlendOperation_reflection_ =
new ::google::protobuf::internal::GeneratedMessageReflection(
Material_Blend_BlendOperation_descriptor_,
Material_Blend_BlendOperation::default_instance_,
Material_Blend_BlendOperation_offsets_,
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Material_Blend_BlendOperation, _has_bits_[0]),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Material_Blend_BlendOperation, _unknown_fields_),
-1,
::google::protobuf::DescriptorPool::generated_pool(),
::google::protobuf::MessageFactory::generated_factory(),
sizeof(Material_Blend_BlendOperation));
Material_Blend_BlendOperation_BlendOperationEnum_descriptor_ = Material_Blend_BlendOperation_descriptor_->enum_type(0);
Material_TextureWrapMode_descriptor_ = Material_descriptor_->nested_type(4);
static const int Material_TextureWrapMode_offsets_[1] = {
};
Material_TextureWrapMode_reflection_ =
new ::google::protobuf::internal::GeneratedMessageReflection(
Material_TextureWrapMode_descriptor_,
Material_TextureWrapMode::default_instance_,
Material_TextureWrapMode_offsets_,
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Material_TextureWrapMode, _has_bits_[0]),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Material_TextureWrapMode, _unknown_fields_),
-1,
::google::protobuf::DescriptorPool::generated_pool(),
::google::protobuf::MessageFactory::generated_factory(),
sizeof(Material_TextureWrapMode));
Material_TextureWrapMode_TextureWrapModeEnum_descriptor_ = Material_TextureWrapMode_descriptor_->enum_type(0);
Material_TextureFilter_descriptor_ = Material_descriptor_->nested_type(5);
static const int Material_TextureFilter_offsets_[1] = {
};
Material_TextureFilter_reflection_ =
new ::google::protobuf::internal::GeneratedMessageReflection(
Material_TextureFilter_descriptor_,
Material_TextureFilter::default_instance_,
Material_TextureFilter_offsets_,
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Material_TextureFilter, _has_bits_[0]),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Material_TextureFilter, _unknown_fields_),
-1,
::google::protobuf::DescriptorPool::generated_pool(),
::google::protobuf::MessageFactory::generated_factory(),
sizeof(Material_TextureFilter));
Material_TextureFilter_TextureFilterEnum_descriptor_ = Material_TextureFilter_descriptor_->enum_type(0);
Material_TextureGeneration_descriptor_ = Material_descriptor_->nested_type(6);
static const int Material_TextureGeneration_offsets_[6] = {
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Material_TextureGeneration, mode_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Material_TextureGeneration, q_plane_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Material_TextureGeneration, r_plane_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Material_TextureGeneration, s_plane_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Material_TextureGeneration, t_plane_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Material_TextureGeneration, cube_map_),
};
Material_TextureGeneration_reflection_ =
new ::google::protobuf::internal::GeneratedMessageReflection(
Material_TextureGeneration_descriptor_,
Material_TextureGeneration::default_instance_,
Material_TextureGeneration_offsets_,
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Material_TextureGeneration, _has_bits_[0]),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Material_TextureGeneration, _unknown_fields_),
-1,
::google::protobuf::DescriptorPool::generated_pool(),
::google::protobuf::MessageFactory::generated_factory(),
sizeof(Material_TextureGeneration));
Material_TextureGeneration_Plane_descriptor_ = Material_TextureGeneration_descriptor_->nested_type(0);
static const int Material_TextureGeneration_Plane_offsets_[4] = {
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Material_TextureGeneration_Plane, a_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Material_TextureGeneration_Plane, b_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Material_TextureGeneration_Plane, c_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Material_TextureGeneration_Plane, d_),
};
Material_TextureGeneration_Plane_reflection_ =
new ::google::protobuf::internal::GeneratedMessageReflection(
Material_TextureGeneration_Plane_descriptor_,
Material_TextureGeneration_Plane::default_instance_,
Material_TextureGeneration_Plane_offsets_,
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Material_TextureGeneration_Plane, _has_bits_[0]),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Material_TextureGeneration_Plane, _unknown_fields_),
-1,
::google::protobuf::DescriptorPool::generated_pool(),
::google::protobuf::MessageFactory::generated_factory(),
sizeof(Material_TextureGeneration_Plane));
Material_TextureGeneration_CubeMap_descriptor_ = Material_TextureGeneration_descriptor_->nested_type(1);
static const int Material_TextureGeneration_CubeMap_offsets_[6] = {
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Material_TextureGeneration_CubeMap, pos_x_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Material_TextureGeneration_CubeMap, pos_y_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Material_TextureGeneration_CubeMap, pos_z_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Material_TextureGeneration_CubeMap, neg_x_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Material_TextureGeneration_CubeMap, neg_y_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Material_TextureGeneration_CubeMap, neg_z_),
};
Material_TextureGeneration_CubeMap_reflection_ =
new ::google::protobuf::internal::GeneratedMessageReflection(
Material_TextureGeneration_CubeMap_descriptor_,
Material_TextureGeneration_CubeMap::default_instance_,
Material_TextureGeneration_CubeMap_offsets_,
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Material_TextureGeneration_CubeMap, _has_bits_[0]),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Material_TextureGeneration_CubeMap, _unknown_fields_),
-1,
::google::protobuf::DescriptorPool::generated_pool(),
::google::protobuf::MessageFactory::generated_factory(),
sizeof(Material_TextureGeneration_CubeMap));
Material_TextureGeneration_TextureGenerationModeEnum_descriptor_ = Material_TextureGeneration_descriptor_->enum_type(0);
Material_DepthFunction_descriptor_ = Material_descriptor_->nested_type(7);
static const int Material_DepthFunction_offsets_[1] = {
};
Material_DepthFunction_reflection_ =
new ::google::protobuf::internal::GeneratedMessageReflection(
Material_DepthFunction_descriptor_,
Material_DepthFunction::default_instance_,
Material_DepthFunction_offsets_,
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Material_DepthFunction, _has_bits_[0]),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Material_DepthFunction, _unknown_fields_),
-1,
::google::protobuf::DescriptorPool::generated_pool(),
::google::protobuf::MessageFactory::generated_factory(),
sizeof(Material_DepthFunction));
Material_DepthFunction_DepthFunctionEnum_descriptor_ = Material_DepthFunction_descriptor_->enum_type(0);
Material_AlphaTestFunction_descriptor_ = Material_descriptor_->nested_type(8);
static const int Material_AlphaTestFunction_offsets_[1] = {
};
Material_AlphaTestFunction_reflection_ =
new ::google::protobuf::internal::GeneratedMessageReflection(
Material_AlphaTestFunction_descriptor_,
Material_AlphaTestFunction::default_instance_,
Material_AlphaTestFunction_offsets_,
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Material_AlphaTestFunction, _has_bits_[0]),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Material_AlphaTestFunction, _unknown_fields_),
-1,
::google::protobuf::DescriptorPool::generated_pool(),
::google::protobuf::MessageFactory::generated_factory(),
sizeof(Material_AlphaTestFunction));
Material_AlphaTestFunction_AlphaTestFunctionEnum_descriptor_ = Material_AlphaTestFunction_descriptor_->enum_type(0);
Material_CullMode_descriptor_ = Material_descriptor_->nested_type(9);
static const int Material_CullMode_offsets_[1] = {
};
Material_CullMode_reflection_ =
new ::google::protobuf::internal::GeneratedMessageReflection(
Material_CullMode_descriptor_,
Material_CullMode::default_instance_,
Material_CullMode_offsets_,
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Material_CullMode, _has_bits_[0]),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Material_CullMode, _unknown_fields_),
-1,
::google::protobuf::DescriptorPool::generated_pool(),
::google::protobuf::MessageFactory::generated_factory(),
sizeof(Material_CullMode));
Material_CullMode_CullModeEnum_descriptor_ = Material_CullMode_descriptor_->enum_type(0);
Material_StripFrame_descriptor_ = Material_descriptor_->nested_type(10);
static const int Material_StripFrame_offsets_[3] = {
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Material_StripFrame, u_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Material_StripFrame, v_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Material_StripFrame, frame_time_),
};
Material_StripFrame_reflection_ =
new ::google::protobuf::internal::GeneratedMessageReflection(
Material_StripFrame_descriptor_,
Material_StripFrame::default_instance_,
Material_StripFrame_offsets_,
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Material_StripFrame, _has_bits_[0]),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Material_StripFrame, _unknown_fields_),
-1,
::google::protobuf::DescriptorPool::generated_pool(),
::google::protobuf::MessageFactory::generated_factory(),
sizeof(Material_StripFrame));
Material_AutoStripAnimation_descriptor_ = Material_descriptor_->nested_type(11);
static const int Material_AutoStripAnimation_offsets_[5] = {
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Material_AutoStripAnimation, start_frame_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Material_AutoStripAnimation, frame_count_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Material_AutoStripAnimation, frame_width_percent_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Material_AutoStripAnimation, frame_height_percent_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Material_AutoStripAnimation, frame_time_),
};
Material_AutoStripAnimation_reflection_ =
new ::google::protobuf::internal::GeneratedMessageReflection(
Material_AutoStripAnimation_descriptor_,
Material_AutoStripAnimation::default_instance_,
Material_AutoStripAnimation_offsets_,
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Material_AutoStripAnimation, _has_bits_[0]),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Material_AutoStripAnimation, _unknown_fields_),
-1,
::google::protobuf::DescriptorPool::generated_pool(),
::google::protobuf::MessageFactory::generated_factory(),
sizeof(Material_AutoStripAnimation));
Material_StripAnimation_descriptor_ = Material_descriptor_->nested_type(12);
static const int Material_StripAnimation_offsets_[5] = {
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Material_StripAnimation, frame_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Material_StripAnimation, loop_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Material_StripAnimation, randomise_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Material_StripAnimation, use_transform_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Material_StripAnimation, auto_frames_),
};
Material_StripAnimation_reflection_ =
new ::google::protobuf::internal::GeneratedMessageReflection(
Material_StripAnimation_descriptor_,
Material_StripAnimation::default_instance_,
Material_StripAnimation_offsets_,
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Material_StripAnimation, _has_bits_[0]),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Material_StripAnimation, _unknown_fields_),
-1,
::google::protobuf::DescriptorPool::generated_pool(),
::google::protobuf::MessageFactory::generated_factory(),
sizeof(Material_StripAnimation));
Material_TextureUnit_descriptor_ = Material_descriptor_->nested_type(13);
static const int Material_TextureUnit_offsets_[20] = {
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Material_TextureUnit, blend_mode_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Material_TextureUnit, wrap_u_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Material_TextureUnit, wrap_v_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Material_TextureUnit, min_filter_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Material_TextureUnit, mag_filter_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Material_TextureUnit, image_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Material_TextureUnit, tex_gen_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Material_TextureUnit, u_scroll_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Material_TextureUnit, v_scroll_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Material_TextureUnit, u_scale_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Material_TextureUnit, v_scale_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Material_TextureUnit, x_rot_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Material_TextureUnit, y_rot_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Material_TextureUnit, z_rot_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Material_TextureUnit, strip_animation_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Material_TextureUnit, alpha_blend_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Material_TextureUnit, colour_blend_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Material_TextureUnit, memory_mode_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Material_TextureUnit, texture_coordinate_set_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Material_TextureUnit, manual_colour_),
};
Material_TextureUnit_reflection_ =
new ::google::protobuf::internal::GeneratedMessageReflection(
Material_TextureUnit_descriptor_,
Material_TextureUnit::default_instance_,
Material_TextureUnit_offsets_,
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Material_TextureUnit, _has_bits_[0]),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Material_TextureUnit, _unknown_fields_),
-1,
::google::protobuf::DescriptorPool::generated_pool(),
::google::protobuf::MessageFactory::generated_factory(),
sizeof(Material_TextureUnit));
Material_ShaderProgram_descriptor_ = Material_descriptor_->nested_type(14);
static const int Material_ShaderProgram_offsets_[3] = {
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Material_ShaderProgram, fragment_shader_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Material_ShaderProgram, vertex_shader_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Material_ShaderProgram, matrix_variable_),
};
Material_ShaderProgram_reflection_ =
new ::google::protobuf::internal::GeneratedMessageReflection(
Material_ShaderProgram_descriptor_,
Material_ShaderProgram::default_instance_,
Material_ShaderProgram_offsets_,
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Material_ShaderProgram, _has_bits_[0]),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Material_ShaderProgram, _unknown_fields_),
-1,
::google::protobuf::DescriptorPool::generated_pool(),
::google::protobuf::MessageFactory::generated_factory(),
sizeof(Material_ShaderProgram));
Material_Pass_descriptor_ = Material_descriptor_->nested_type(15);
static const int Material_Pass_offsets_[17] = {
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Material_Pass, blend_mode_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Material_Pass, depth_function_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Material_Pass, cull_mode_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Material_Pass, lighting_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Material_Pass, depth_write_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Material_Pass, depth_check_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Material_Pass, ambient_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Material_Pass, diffuse_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Material_Pass, specular_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Material_Pass, emissive_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Material_Pass, shininess_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Material_Pass, texture_unit_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Material_Pass, vertex_colour_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Material_Pass, active_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Material_Pass, program_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Material_Pass, alpha_test_function_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Material_Pass, alpha_test_value_),
};
Material_Pass_reflection_ =
new ::google::protobuf::internal::GeneratedMessageReflection(
Material_Pass_descriptor_,
Material_Pass::default_instance_,
Material_Pass_offsets_,
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Material_Pass, _has_bits_[0]),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Material_Pass, _unknown_fields_),
-1,
::google::protobuf::DescriptorPool::generated_pool(),
::google::protobuf::MessageFactory::generated_factory(),
sizeof(Material_Pass));
Materials_descriptor_ = file->message_type(1);
static const int Materials_offsets_[1] = {
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Materials, material_),
};
Materials_reflection_ =
new ::google::protobuf::internal::GeneratedMessageReflection(
Materials_descriptor_,
Materials::default_instance_,
Materials_offsets_,
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Materials, _has_bits_[0]),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Materials, _unknown_fields_),
-1,
::google::protobuf::DescriptorPool::generated_pool(),
::google::protobuf::MessageFactory::generated_factory(),
sizeof(Materials));
}
namespace {
GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AssignDescriptors_once_);
inline void protobuf_AssignDescriptorsOnce() {
::google::protobuf::GoogleOnceInit(&protobuf_AssignDescriptors_once_,
&protobuf_AssignDesc_Material_2eproto);
}
void protobuf_RegisterTypes(const ::std::string&) {
protobuf_AssignDescriptorsOnce();
::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
Material_descriptor_, &Material::default_instance());
::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
Material_Colour_descriptor_, &Material_Colour::default_instance());
::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
Material_BlendMode_descriptor_, &Material_BlendMode::default_instance());
::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
Material_MemoryMode_descriptor_, &Material_MemoryMode::default_instance());
::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
Material_Blend_descriptor_, &Material_Blend::default_instance());
::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
Material_Blend_BlendSource_descriptor_, &Material_Blend_BlendSource::default_instance());
::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
Material_Blend_BlendOperation_descriptor_, &Material_Blend_BlendOperation::default_instance());
::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
Material_TextureWrapMode_descriptor_, &Material_TextureWrapMode::default_instance());
::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
Material_TextureFilter_descriptor_, &Material_TextureFilter::default_instance());
::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
Material_TextureGeneration_descriptor_, &Material_TextureGeneration::default_instance());
::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
Material_TextureGeneration_Plane_descriptor_, &Material_TextureGeneration_Plane::default_instance());
::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
Material_TextureGeneration_CubeMap_descriptor_, &Material_TextureGeneration_CubeMap::default_instance());
::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
Material_DepthFunction_descriptor_, &Material_DepthFunction::default_instance());
::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
Material_AlphaTestFunction_descriptor_, &Material_AlphaTestFunction::default_instance());
::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
Material_CullMode_descriptor_, &Material_CullMode::default_instance());
::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
Material_StripFrame_descriptor_, &Material_StripFrame::default_instance());
::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
Material_AutoStripAnimation_descriptor_, &Material_AutoStripAnimation::default_instance());
::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
Material_StripAnimation_descriptor_, &Material_StripAnimation::default_instance());
::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
Material_TextureUnit_descriptor_, &Material_TextureUnit::default_instance());
::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
Material_ShaderProgram_descriptor_, &Material_ShaderProgram::default_instance());
::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
Material_Pass_descriptor_, &Material_Pass::default_instance());
::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
Materials_descriptor_, &Materials::default_instance());
}
} // namespace
void protobuf_ShutdownFile_Material_2eproto() {
delete Material::default_instance_;
delete Material_reflection_;
delete Material_Colour::default_instance_;
delete Material_Colour_reflection_;
delete Material_Colour::_default_s_;
delete Material_BlendMode::default_instance_;
delete Material_BlendMode_reflection_;
delete Material_MemoryMode::default_instance_;
delete Material_MemoryMode_reflection_;
delete Material_Blend::default_instance_;
delete Material_Blend_reflection_;
delete Material_Blend_BlendSource::default_instance_;
delete Material_Blend_BlendSource_reflection_;
delete Material_Blend_BlendOperation::default_instance_;
delete Material_Blend_BlendOperation_reflection_;
delete Material_TextureWrapMode::default_instance_;
delete Material_TextureWrapMode_reflection_;
delete Material_TextureFilter::default_instance_;
delete Material_TextureFilter_reflection_;
delete Material_TextureGeneration::default_instance_;
delete Material_TextureGeneration_reflection_;
delete Material_TextureGeneration_Plane::default_instance_;
delete Material_TextureGeneration_Plane_reflection_;
delete Material_TextureGeneration_CubeMap::default_instance_;
delete Material_TextureGeneration_CubeMap_reflection_;
delete Material_DepthFunction::default_instance_;
delete Material_DepthFunction_reflection_;
delete Material_AlphaTestFunction::default_instance_;
delete Material_AlphaTestFunction_reflection_;
delete Material_CullMode::default_instance_;
delete Material_CullMode_reflection_;
delete Material_StripFrame::default_instance_;
delete Material_StripFrame_reflection_;
delete Material_AutoStripAnimation::default_instance_;
delete Material_AutoStripAnimation_reflection_;
delete Material_StripAnimation::default_instance_;
delete Material_StripAnimation_reflection_;
delete Material_TextureUnit::default_instance_;
delete Material_TextureUnit_reflection_;
delete Material_ShaderProgram::default_instance_;
delete Material_ShaderProgram_reflection_;
delete Material_Pass::default_instance_;
delete Material_Pass_reflection_;
delete Materials::default_instance_;
delete Materials_reflection_;
}
void protobuf_AddDesc_Material_2eproto() {
static bool already_here = false;
if (already_here) return;
already_here = true;
GOOGLE_PROTOBUF_VERIFY_VERSION;
::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
"\n\016Material.proto\022\016Echo.Resources\"\363\"\n\010Mat"
"erial\022+\n\004pass\030\001 \003(\0132\035.Echo.Resources.Mat"
"erial.Pass\022\014\n\004name\030\002 \001(\t\032V\n\006Colour\022\014\n\001r\030"
"\001 \001(\002:\0011\022\014\n\001g\030\002 \001(\002:\0011\022\014\n\001b\030\003 \001(\002:\0011\022\014\n\001"
"a\030\004 \001(\002:\0011\022\024\n\001s\030\005 \001(\t:\t#FFFFFFFF\032\262\001\n\tBle"
"ndMode\"\244\001\n\rBlendModeEnum\022\010\n\004NONE\020\000\022\017\n\013TR"
"ANSPARENT\020\001\022\014\n\010ADDITIVE\020\002\022\023\n\017ADDITIVE_CO"
"LOUR\020\003\022\014\n\010MODULATE\020\004\022\031\n\025MODULATE_AND_BRI"
"GHTEN\020\005\022\036\n\032MODULATE_AND_BRIGHTEN_MORE\020\006\022"
"\014\n\010SUBTRACT\020\007\032I\n\nMemoryMode\";\n\016MemoryMod"
"eEnum\022\010\n\004NONE\020\000\022\017\n\013FAST_RELOAD\020\001\022\016\n\nLOW_"
"MEMORY\020\002\032\214\005\n\005Blend\022K\n\007source1\030\002 \001(\0162:.Ec"
"ho.Resources.Material.Blend.BlendSource."
"BlendSourceEnum\022K\n\007source2\030\003 \001(\0162:.Echo."
"Resources.Material.Blend.BlendSource.Ble"
"ndSourceEnum\022S\n\toperation\030\004 \002(\0162@.Echo.R"
"esources.Material.Blend.BlendOperation.B"
"lendOperationEnum\032a\n\013BlendSource\"R\n\017Blen"
"dSourceEnum\022\013\n\007CURRENT\020\000\022\013\n\007TEXTURE\020\001\022\013\n"
"\007DIFFUSE\020\002\022\014\n\010SPECULAR\020\003\022\n\n\006MANUAL\020\004\032\260\002\n"
"\016BlendOperation\"\235\002\n\022BlendOperationEnum\022\007"
"\n\003ADD\020\000\022\016\n\nADD_SIGNED\020\001\022\016\n\nADD_SMOOTH\020\002\022"
"\014\n\010MODULATE\020\003\022\017\n\013MODULATE_X2\020\004\022\017\n\013MODULA"
"TE_X4\020\005\022\014\n\010SUBTRACT\020\006\022\013\n\007SOURCE1\020\007\022\013\n\007SO"
"URCE2\020\010\022\027\n\023BLEND_DIFFUSE_ALPHA\020\t\022\027\n\023BLEN"
"D_TEXTURE_ALPHA\020\n\022\027\n\023BLEND_CURRENT_ALPHA"
"\020\013\022\030\n\024BLEND_DIFFUSE_COLOUR\020\014\022\n\n\006MANUAL\020\r"
"\022\025\n\021BLEND_DOT_PRODUCT\020\016\032R\n\017TextureWrapMo"
"de\"\?\n\023TextureWrapModeEnum\022\t\n\005CLAMP\020\000\022\021\n\r"
"CLAMP_TO_EDGE\020\001\022\n\n\006REPEAT\020\002\032=\n\rTextureFi"
"lter\",\n\021TextureFilterEnum\022\013\n\007NEAREST\020\000\022\n"
"\n\006LINEAR\020\001\032\254\005\n\021TextureGeneration\022R\n\004mode"
"\030\001 \002(\0162D.Echo.Resources.Material.Texture"
"Generation.TextureGenerationModeEnum\022A\n\007"
"q_plane\030\002 \001(\01320.Echo.Resources.Material."
"TextureGeneration.Plane\022A\n\007r_plane\030\003 \001(\013"
"20.Echo.Resources.Material.TextureGenera"
"tion.Plane\022A\n\007s_plane\030\004 \001(\01320.Echo.Resou"
"rces.Material.TextureGeneration.Plane\022A\n"
"\007t_plane\030\005 \001(\01320.Echo.Resources.Material"
".TextureGeneration.Plane\022D\n\010cube_map\030\006 \001"
"(\01322.Echo.Resources.Material.TextureGene"
"ration.CubeMap\0323\n\005Plane\022\t\n\001a\030\001 \002(\002\022\t\n\001b\030"
"\002 \002(\002\022\t\n\001c\030\003 \002(\002\022\t\n\001d\030\004 \002(\002\032c\n\007CubeMap\022\r"
"\n\005pos_x\030\001 \002(\t\022\r\n\005pos_y\030\002 \002(\t\022\r\n\005pos_z\030\003 "
"\002(\t\022\r\n\005neg_x\030\004 \002(\t\022\r\n\005neg_y\030\005 \002(\t\022\r\n\005neg"
"_z\030\006 \002(\t\"W\n\031TextureGenerationModeEnum\022\010\n"
"\004NONE\020\000\022\n\n\006LINEAR\020\001\022\016\n\nEYE_LINEAR\020\002\022\n\n\006S"
"PHERE\020\003\022\010\n\004CUBE\020\004\032\226\001\n\rDepthFunction\"\204\001\n\021"
"DepthFunctionEnum\022\t\n\005NEVER\020\000\022\010\n\004LESS\020\001\022\t"
"\n\005EQUAL\020\002\022\021\n\rLESS_OR_EQUAL\020\003\022\013\n\007GREATER\020"
"\004\022\r\n\tNOT_EQUAL\020\005\022\024\n\020GREATER_OR_EQUAL\020\006\022\n"
"\n\006ALWAYS\020\007\032\236\001\n\021AlphaTestFunction\"\210\001\n\025Alp"
"haTestFunctionEnum\022\t\n\005NEVER\020\000\022\010\n\004LESS\020\001\022"
"\t\n\005EQUAL\020\002\022\021\n\rLESS_OR_EQUAL\020\003\022\013\n\007GREATER"
"\020\004\022\r\n\tNOT_EQUAL\020\005\022\024\n\020GREATER_OR_EQUAL\020\006\022"
"\n\n\006ALWAYS\020\007\0329\n\010CullMode\"-\n\014CullModeEnum\022"
"\010\n\004NONE\020\000\022\t\n\005FRONT\020\001\022\010\n\004BACK\020\002\0326\n\nStripF"
"rame\022\t\n\001u\030\001 \002(\002\022\t\n\001v\030\002 \002(\002\022\022\n\nframe_time"
"\030\003 \002(\002\032\215\001\n\022AutoStripAnimation\022\023\n\013start_f"
"rame\030\001 \002(\r\022\023\n\013frame_count\030\002 \002(\r\022\033\n\023frame"
"_width_percent\030\003 \002(\002\022\034\n\024frame_height_per"
"cent\030\004 \002(\002\022\022\n\nframe_time\030\005 \002(\002\032\276\001\n\016Strip"
"Animation\0222\n\005frame\030\001 \003(\0132#.Echo.Resource"
"s.Material.StripFrame\022\014\n\004loop\030\002 \001(\010\022\021\n\tr"
"andomise\030\003 \001(\010\022\025\n\ruse_transform\030\004 \001(\010\022@\n"
"\013auto_frames\030\005 \001(\0132+.Echo.Resources.Mate"
"rial.AutoStripAnimation\032\230\007\n\013TextureUnit\022"
"D\n\nblend_mode\030\001 \001(\01620.Echo.Resources.Mat"
"erial.BlendMode.BlendModeEnum\022L\n\006wrap_u\030"
"\002 \001(\0162<.Echo.Resources.Material.TextureW"
"rapMode.TextureWrapModeEnum\022L\n\006wrap_v\030\003 "
"\001(\0162<.Echo.Resources.Material.TextureWra"
"pMode.TextureWrapModeEnum\022L\n\nmin_filter\030"
"\004 \001(\01628.Echo.Resources.Material.TextureF"
"ilter.TextureFilterEnum\022L\n\nmag_filter\030\005 "
"\001(\01628.Echo.Resources.Material.TextureFil"
"ter.TextureFilterEnum\022\r\n\005image\030\006 \001(\t\022;\n\007"
"tex_gen\030\007 \001(\0132*.Echo.Resources.Material."
"TextureGeneration\022\020\n\010u_scroll\030\010 \001(\002\022\020\n\010v"
"_scroll\030\t \001(\002\022\017\n\007u_scale\030\n \001(\002\022\017\n\007v_scal"
"e\030\013 \001(\002\022\r\n\005x_rot\030\014 \001(\002\022\r\n\005y_rot\030\r \001(\002\022\r\n"
"\005z_rot\030\016 \001(\002\022@\n\017strip_animation\030\017 \001(\0132\'."
"Echo.Resources.Material.StripAnimation\0223"
"\n\013alpha_blend\030\020 \001(\0132\036.Echo.Resources.Mat"
"erial.Blend\0224\n\014colour_blend\030\021 \001(\0132\036.Echo"
".Resources.Material.Blend\022G\n\013memory_mode"
"\030\022 \001(\01622.Echo.Resources.Material.MemoryM"
"ode.MemoryModeEnum\022\036\n\026texture_coordinate"
"_set\030\023 \001(\r\0226\n\rmanual_colour\030\024 \001(\0132\037.Echo"
".Resources.Material.Colour\032X\n\rShaderProg"
"ram\022\027\n\017fragment_shader\030\001 \003(\t\022\025\n\rvertex_s"
"hader\030\002 \003(\t\022\027\n\017matrix_variable\030\003 \001(\t\032\217\006\n"
"\004Pass\022D\n\nblend_mode\030\001 \001(\01620.Echo.Resourc"
"es.Material.BlendMode.BlendModeEnum\022P\n\016d"
"epth_function\030\002 \001(\01628.Echo.Resources.Mat"
"erial.DepthFunction.DepthFunctionEnum\022A\n"
"\tcull_mode\030\003 \001(\0162..Echo.Resources.Materi"
"al.CullMode.CullModeEnum\022\020\n\010lighting\030\004 \001"
"(\010\022\023\n\013depth_write\030\005 \001(\010\022\023\n\013depth_check\030\006"
" \001(\010\0220\n\007ambient\030\007 \001(\0132\037.Echo.Resources.M"
"aterial.Colour\0220\n\007diffuse\030\010 \001(\0132\037.Echo.R"
"esources.Material.Colour\0221\n\010specular\030\t \001"
"(\0132\037.Echo.Resources.Material.Colour\0221\n\010e"
"missive\030\n \001(\0132\037.Echo.Resources.Material."
"Colour\022\021\n\tshininess\030\013 \001(\002\022:\n\014texture_uni"
"t\030\014 \003(\0132$.Echo.Resources.Material.Textur"
"eUnit\022\025\n\rvertex_colour\030\r \001(\010\022\016\n\006active\030\016"
" \001(\010\0227\n\007program\030\017 \001(\0132&.Echo.Resources.M"
"aterial.ShaderProgram\022]\n\023alpha_test_func"
"tion\030\020 \001(\0162@.Echo.Resources.Material.Alp"
"haTestFunction.AlphaTestFunctionEnum\022\030\n\020"
"alpha_test_value\030\021 \001(\002\"7\n\tMaterials\022*\n\010m"
"aterial\030\001 \003(\0132\030.Echo.Resources.Material", 4559);
::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
"Material.proto", &protobuf_RegisterTypes);
Material::default_instance_ = new Material();
Material_Colour::_default_s_ =
new ::std::string("#FFFFFFFF", 9);
Material_Colour::default_instance_ = new Material_Colour();
Material_BlendMode::default_instance_ = new Material_BlendMode();
Material_MemoryMode::default_instance_ = new Material_MemoryMode();
Material_Blend::default_instance_ = new Material_Blend();
Material_Blend_BlendSource::default_instance_ = new Material_Blend_BlendSource();
Material_Blend_BlendOperation::default_instance_ = new Material_Blend_BlendOperation();
Material_TextureWrapMode::default_instance_ = new Material_TextureWrapMode();
Material_TextureFilter::default_instance_ = new Material_TextureFilter();
Material_TextureGeneration::default_instance_ = new Material_TextureGeneration();
Material_TextureGeneration_Plane::default_instance_ = new Material_TextureGeneration_Plane();
Material_TextureGeneration_CubeMap::default_instance_ = new Material_TextureGeneration_CubeMap();
Material_DepthFunction::default_instance_ = new Material_DepthFunction();
Material_AlphaTestFunction::default_instance_ = new Material_AlphaTestFunction();
Material_CullMode::default_instance_ = new Material_CullMode();
Material_StripFrame::default_instance_ = new Material_StripFrame();
Material_AutoStripAnimation::default_instance_ = new Material_AutoStripAnimation();
Material_StripAnimation::default_instance_ = new Material_StripAnimation();
Material_TextureUnit::default_instance_ = new Material_TextureUnit();
Material_ShaderProgram::default_instance_ = new Material_ShaderProgram();
Material_Pass::default_instance_ = new Material_Pass();
Materials::default_instance_ = new Materials();
Material::default_instance_->InitAsDefaultInstance();
Material_Colour::default_instance_->InitAsDefaultInstance();
Material_BlendMode::default_instance_->InitAsDefaultInstance();
Material_MemoryMode::default_instance_->InitAsDefaultInstance();
Material_Blend::default_instance_->InitAsDefaultInstance();
Material_Blend_BlendSource::default_instance_->InitAsDefaultInstance();
Material_Blend_BlendOperation::default_instance_->InitAsDefaultInstance();
Material_TextureWrapMode::default_instance_->InitAsDefaultInstance();
Material_TextureFilter::default_instance_->InitAsDefaultInstance();
Material_TextureGeneration::default_instance_->InitAsDefaultInstance();
Material_TextureGeneration_Plane::default_instance_->InitAsDefaultInstance();
Material_TextureGeneration_CubeMap::default_instance_->InitAsDefaultInstance();
Material_DepthFunction::default_instance_->InitAsDefaultInstance();
Material_AlphaTestFunction::default_instance_->InitAsDefaultInstance();
Material_CullMode::default_instance_->InitAsDefaultInstance();
Material_StripFrame::default_instance_->InitAsDefaultInstance();
Material_AutoStripAnimation::default_instance_->InitAsDefaultInstance();
Material_StripAnimation::default_instance_->InitAsDefaultInstance();
Material_TextureUnit::default_instance_->InitAsDefaultInstance();
Material_ShaderProgram::default_instance_->InitAsDefaultInstance();
Material_Pass::default_instance_->InitAsDefaultInstance();
Materials::default_instance_->InitAsDefaultInstance();
::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_Material_2eproto);
}
// Force AddDescriptors() to be called at static initialization time.
struct StaticDescriptorInitializer_Material_2eproto {
StaticDescriptorInitializer_Material_2eproto() {
protobuf_AddDesc_Material_2eproto();
}
} static_descriptor_initializer_Material_2eproto_;
// ===================================================================
::std::string* Material_Colour::_default_s_ = NULL;
#ifndef _MSC_VER
const int Material_Colour::kRFieldNumber;
const int Material_Colour::kGFieldNumber;
const int Material_Colour::kBFieldNumber;
const int Material_Colour::kAFieldNumber;
const int Material_Colour::kSFieldNumber;
#endif // !_MSC_VER
Material_Colour::Material_Colour()
: ::google::protobuf::Message() {
SharedCtor();
}
void Material_Colour::InitAsDefaultInstance() {
}
Material_Colour::Material_Colour(const Material_Colour& from)
: ::google::protobuf::Message() {
SharedCtor();
MergeFrom(from);
}
void Material_Colour::SharedCtor() {
_cached_size_ = 0;
r_ = 1;
g_ = 1;
b_ = 1;
a_ = 1;
s_ = const_cast< ::std::string*>(_default_s_);
::memset(_has_bits_, 0, sizeof(_has_bits_));
}
Material_Colour::~Material_Colour() {
SharedDtor();
}
void Material_Colour::SharedDtor() {
if (s_ != _default_s_) {
delete s_;
}
if (this != default_instance_) {
}
}
void Material_Colour::SetCachedSize(int size) const {
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const ::google::protobuf::Descriptor* Material_Colour::descriptor() {
protobuf_AssignDescriptorsOnce();
return Material_Colour_descriptor_;
}
const Material_Colour& Material_Colour::default_instance() {
if (default_instance_ == NULL) protobuf_AddDesc_Material_2eproto();
return *default_instance_;
}
Material_Colour* Material_Colour::default_instance_ = NULL;
Material_Colour* Material_Colour::New() const {
return new Material_Colour;
}
void Material_Colour::Clear() {
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
r_ = 1;
g_ = 1;
b_ = 1;
a_ = 1;
if (has_s()) {
if (s_ != _default_s_) {
s_->assign(*_default_s_);
}
}
}
::memset(_has_bits_, 0, sizeof(_has_bits_));
mutable_unknown_fields()->Clear();
}
bool Material_Colour::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
#define DO_(EXPRESSION) if (!(EXPRESSION)) return false
::google::protobuf::uint32 tag;
while ((tag = input->ReadTag()) != 0) {
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// optional float r = 1 [default = 1];
case 1: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_FIXED32) {
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
input, &r_)));
set_has_r();
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(21)) goto parse_g;
break;
}
// optional float g = 2 [default = 1];
case 2: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_FIXED32) {
parse_g:
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
input, &g_)));
set_has_g();
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(29)) goto parse_b;
break;
}
// optional float b = 3 [default = 1];
case 3: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_FIXED32) {
parse_b:
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
input, &b_)));
set_has_b();
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(37)) goto parse_a;
break;
}
// optional float a = 4 [default = 1];
case 4: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_FIXED32) {
parse_a:
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
input, &a_)));
set_has_a();
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(42)) goto parse_s;
break;
}
// optional string s = 5 [default = "#FFFFFFFF"];
case 5: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
parse_s:
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_s()));
::google::protobuf::internal::WireFormat::VerifyUTF8String(
this->s().data(), this->s().length(),
::google::protobuf::internal::WireFormat::PARSE);
} else {
goto handle_uninterpreted;
}
if (input->ExpectAtEnd()) return true;
break;
}
default: {
handle_uninterpreted:
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
return true;
}
DO_(::google::protobuf::internal::WireFormat::SkipField(
input, tag, mutable_unknown_fields()));
break;
}
}
}
return true;
#undef DO_
}
void Material_Colour::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
// optional float r = 1 [default = 1];
if (has_r()) {
::google::protobuf::internal::WireFormatLite::WriteFloat(1, this->r(), output);
}
// optional float g = 2 [default = 1];
if (has_g()) {
::google::protobuf::internal::WireFormatLite::WriteFloat(2, this->g(), output);
}
// optional float b = 3 [default = 1];
if (has_b()) {
::google::protobuf::internal::WireFormatLite::WriteFloat(3, this->b(), output);
}
// optional float a = 4 [default = 1];
if (has_a()) {
::google::protobuf::internal::WireFormatLite::WriteFloat(4, this->a(), output);
}
// optional string s = 5 [default = "#FFFFFFFF"];
if (has_s()) {
::google::protobuf::internal::WireFormat::VerifyUTF8String(
this->s().data(), this->s().length(),
::google::protobuf::internal::WireFormat::SERIALIZE);
::google::protobuf::internal::WireFormatLite::WriteString(
5, this->s(), output);
}
if (!unknown_fields().empty()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
unknown_fields(), output);
}
}
::google::protobuf::uint8* Material_Colour::SerializeWithCachedSizesToArray(
::google::protobuf::uint8* target) const {
// optional float r = 1 [default = 1];
if (has_r()) {
target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(1, this->r(), target);
}
// optional float g = 2 [default = 1];
if (has_g()) {
target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(2, this->g(), target);
}
// optional float b = 3 [default = 1];
if (has_b()) {
target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(3, this->b(), target);
}
// optional float a = 4 [default = 1];
if (has_a()) {
target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(4, this->a(), target);
}
// optional string s = 5 [default = "#FFFFFFFF"];
if (has_s()) {
::google::protobuf::internal::WireFormat::VerifyUTF8String(
this->s().data(), this->s().length(),
::google::protobuf::internal::WireFormat::SERIALIZE);
target =
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
5, this->s(), target);
}
if (!unknown_fields().empty()) {
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
unknown_fields(), target);
}
return target;
}
int Material_Colour::ByteSize() const {
int total_size = 0;
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
// optional float r = 1 [default = 1];
if (has_r()) {
total_size += 1 + 4;
}
// optional float g = 2 [default = 1];
if (has_g()) {
total_size += 1 + 4;
}
// optional float b = 3 [default = 1];
if (has_b()) {
total_size += 1 + 4;
}
// optional float a = 4 [default = 1];
if (has_a()) {
total_size += 1 + 4;
}
// optional string s = 5 [default = "#FFFFFFFF"];
if (has_s()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::StringSize(
this->s());
}
}
if (!unknown_fields().empty()) {
total_size +=
::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
unknown_fields());
}
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = total_size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
return total_size;
}
void Material_Colour::MergeFrom(const ::google::protobuf::Message& from) {
GOOGLE_CHECK_NE(&from, this);
const Material_Colour* source =
::google::protobuf::internal::dynamic_cast_if_available<const Material_Colour*>(
&from);
if (source == NULL) {
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
MergeFrom(*source);
}
}
void Material_Colour::MergeFrom(const Material_Colour& from) {
GOOGLE_CHECK_NE(&from, this);
if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
if (from.has_r()) {
set_r(from.r());
}
if (from.has_g()) {
set_g(from.g());
}
if (from.has_b()) {
set_b(from.b());
}
if (from.has_a()) {
set_a(from.a());
}
if (from.has_s()) {
set_s(from.s());
}
}
mutable_unknown_fields()->MergeFrom(from.unknown_fields());
}
void Material_Colour::CopyFrom(const ::google::protobuf::Message& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
void Material_Colour::CopyFrom(const Material_Colour& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool Material_Colour::IsInitialized() const {
return true;
}
void Material_Colour::Swap(Material_Colour* other) {
if (other != this) {
std::swap(r_, other->r_);
std::swap(g_, other->g_);
std::swap(b_, other->b_);
std::swap(a_, other->a_);
std::swap(s_, other->s_);
std::swap(_has_bits_[0], other->_has_bits_[0]);
_unknown_fields_.Swap(&other->_unknown_fields_);
std::swap(_cached_size_, other->_cached_size_);
}
}
::google::protobuf::Metadata Material_Colour::GetMetadata() const {
protobuf_AssignDescriptorsOnce();
::google::protobuf::Metadata metadata;
metadata.descriptor = Material_Colour_descriptor_;
metadata.reflection = Material_Colour_reflection_;
return metadata;
}
// -------------------------------------------------------------------
const ::google::protobuf::EnumDescriptor* Material_BlendMode_BlendModeEnum_descriptor() {
protobuf_AssignDescriptorsOnce();
return Material_BlendMode_BlendModeEnum_descriptor_;
}
bool Material_BlendMode_BlendModeEnum_IsValid(int value) {
switch(value) {
case 0:
case 1:
case 2:
case 3:
case 4:
case 5:
case 6:
case 7:
return true;
default:
return false;
}
}
#ifndef _MSC_VER
const Material_BlendMode_BlendModeEnum Material_BlendMode::NONE;
const Material_BlendMode_BlendModeEnum Material_BlendMode::TRANSPARENT;
const Material_BlendMode_BlendModeEnum Material_BlendMode::ADDITIVE;
const Material_BlendMode_BlendModeEnum Material_BlendMode::ADDITIVE_COLOUR;
const Material_BlendMode_BlendModeEnum Material_BlendMode::MODULATE;
const Material_BlendMode_BlendModeEnum Material_BlendMode::MODULATE_AND_BRIGHTEN;
const Material_BlendMode_BlendModeEnum Material_BlendMode::MODULATE_AND_BRIGHTEN_MORE;
const Material_BlendMode_BlendModeEnum Material_BlendMode::SUBTRACT;
const Material_BlendMode_BlendModeEnum Material_BlendMode::BlendModeEnum_MIN;
const Material_BlendMode_BlendModeEnum Material_BlendMode::BlendModeEnum_MAX;
const int Material_BlendMode::BlendModeEnum_ARRAYSIZE;
#endif // _MSC_VER
#ifndef _MSC_VER
#endif // !_MSC_VER
Material_BlendMode::Material_BlendMode()
: ::google::protobuf::Message() {
SharedCtor();
}
void Material_BlendMode::InitAsDefaultInstance() {
}
Material_BlendMode::Material_BlendMode(const Material_BlendMode& from)
: ::google::protobuf::Message() {
SharedCtor();
MergeFrom(from);
}
void Material_BlendMode::SharedCtor() {
_cached_size_ = 0;
::memset(_has_bits_, 0, sizeof(_has_bits_));
}
Material_BlendMode::~Material_BlendMode() {
SharedDtor();
}
void Material_BlendMode::SharedDtor() {
if (this != default_instance_) {
}
}
void Material_BlendMode::SetCachedSize(int size) const {
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const ::google::protobuf::Descriptor* Material_BlendMode::descriptor() {
protobuf_AssignDescriptorsOnce();
return Material_BlendMode_descriptor_;
}
const Material_BlendMode& Material_BlendMode::default_instance() {
if (default_instance_ == NULL) protobuf_AddDesc_Material_2eproto();
return *default_instance_;
}
Material_BlendMode* Material_BlendMode::default_instance_ = NULL;
Material_BlendMode* Material_BlendMode::New() const {
return new Material_BlendMode;
}
void Material_BlendMode::Clear() {
::memset(_has_bits_, 0, sizeof(_has_bits_));
mutable_unknown_fields()->Clear();
}
bool Material_BlendMode::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
#define DO_(EXPRESSION) if (!(EXPRESSION)) return false
::google::protobuf::uint32 tag;
while ((tag = input->ReadTag()) != 0) {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
return true;
}
DO_(::google::protobuf::internal::WireFormat::SkipField(
input, tag, mutable_unknown_fields()));
}
return true;
#undef DO_
}
void Material_BlendMode::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
if (!unknown_fields().empty()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
unknown_fields(), output);
}
}
::google::protobuf::uint8* Material_BlendMode::SerializeWithCachedSizesToArray(
::google::protobuf::uint8* target) const {
if (!unknown_fields().empty()) {
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
unknown_fields(), target);
}
return target;
}
int Material_BlendMode::ByteSize() const {
int total_size = 0;
if (!unknown_fields().empty()) {
total_size +=
::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
unknown_fields());
}
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = total_size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
return total_size;
}
void Material_BlendMode::MergeFrom(const ::google::protobuf::Message& from) {
GOOGLE_CHECK_NE(&from, this);
const Material_BlendMode* source =
::google::protobuf::internal::dynamic_cast_if_available<const Material_BlendMode*>(
&from);
if (source == NULL) {
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
MergeFrom(*source);
}
}
void Material_BlendMode::MergeFrom(const Material_BlendMode& from) {
GOOGLE_CHECK_NE(&from, this);
mutable_unknown_fields()->MergeFrom(from.unknown_fields());
}
void Material_BlendMode::CopyFrom(const ::google::protobuf::Message& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
void Material_BlendMode::CopyFrom(const Material_BlendMode& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool Material_BlendMode::IsInitialized() const {
return true;
}
void Material_BlendMode::Swap(Material_BlendMode* other) {
if (other != this) {
_unknown_fields_.Swap(&other->_unknown_fields_);
std::swap(_cached_size_, other->_cached_size_);
}
}
::google::protobuf::Metadata Material_BlendMode::GetMetadata() const {
protobuf_AssignDescriptorsOnce();
::google::protobuf::Metadata metadata;
metadata.descriptor = Material_BlendMode_descriptor_;
metadata.reflection = Material_BlendMode_reflection_;
return metadata;
}
// -------------------------------------------------------------------
const ::google::protobuf::EnumDescriptor* Material_MemoryMode_MemoryModeEnum_descriptor() {
protobuf_AssignDescriptorsOnce();
return Material_MemoryMode_MemoryModeEnum_descriptor_;
}
bool Material_MemoryMode_MemoryModeEnum_IsValid(int value) {
switch(value) {
case 0:
case 1:
case 2:
return true;
default:
return false;
}
}
#ifndef _MSC_VER
const Material_MemoryMode_MemoryModeEnum Material_MemoryMode::NONE;
const Material_MemoryMode_MemoryModeEnum Material_MemoryMode::FAST_RELOAD;
const Material_MemoryMode_MemoryModeEnum Material_MemoryMode::LOW_MEMORY;
const Material_MemoryMode_MemoryModeEnum Material_MemoryMode::MemoryModeEnum_MIN;
const Material_MemoryMode_MemoryModeEnum Material_MemoryMode::MemoryModeEnum_MAX;
const int Material_MemoryMode::MemoryModeEnum_ARRAYSIZE;
#endif // _MSC_VER
#ifndef _MSC_VER
#endif // !_MSC_VER
Material_MemoryMode::Material_MemoryMode()
: ::google::protobuf::Message() {
SharedCtor();
}
void Material_MemoryMode::InitAsDefaultInstance() {
}
Material_MemoryMode::Material_MemoryMode(const Material_MemoryMode& from)
: ::google::protobuf::Message() {
SharedCtor();
MergeFrom(from);
}
void Material_MemoryMode::SharedCtor() {
_cached_size_ = 0;
::memset(_has_bits_, 0, sizeof(_has_bits_));
}
Material_MemoryMode::~Material_MemoryMode() {
SharedDtor();
}
void Material_MemoryMode::SharedDtor() {
if (this != default_instance_) {
}
}
void Material_MemoryMode::SetCachedSize(int size) const {
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const ::google::protobuf::Descriptor* Material_MemoryMode::descriptor() {
protobuf_AssignDescriptorsOnce();
return Material_MemoryMode_descriptor_;
}
const Material_MemoryMode& Material_MemoryMode::default_instance() {
if (default_instance_ == NULL) protobuf_AddDesc_Material_2eproto();
return *default_instance_;
}
Material_MemoryMode* Material_MemoryMode::default_instance_ = NULL;
Material_MemoryMode* Material_MemoryMode::New() const {
return new Material_MemoryMode;
}
void Material_MemoryMode::Clear() {
::memset(_has_bits_, 0, sizeof(_has_bits_));
mutable_unknown_fields()->Clear();
}
bool Material_MemoryMode::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
#define DO_(EXPRESSION) if (!(EXPRESSION)) return false
::google::protobuf::uint32 tag;
while ((tag = input->ReadTag()) != 0) {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
return true;
}
DO_(::google::protobuf::internal::WireFormat::SkipField(
input, tag, mutable_unknown_fields()));
}
return true;
#undef DO_
}
void Material_MemoryMode::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
if (!unknown_fields().empty()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
unknown_fields(), output);
}
}
::google::protobuf::uint8* Material_MemoryMode::SerializeWithCachedSizesToArray(
::google::protobuf::uint8* target) const {
if (!unknown_fields().empty()) {
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
unknown_fields(), target);
}
return target;
}
int Material_MemoryMode::ByteSize() const {
int total_size = 0;
if (!unknown_fields().empty()) {
total_size +=
::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
unknown_fields());
}
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = total_size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
return total_size;
}
void Material_MemoryMode::MergeFrom(const ::google::protobuf::Message& from) {
GOOGLE_CHECK_NE(&from, this);
const Material_MemoryMode* source =
::google::protobuf::internal::dynamic_cast_if_available<const Material_MemoryMode*>(
&from);
if (source == NULL) {
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
MergeFrom(*source);
}
}
void Material_MemoryMode::MergeFrom(const Material_MemoryMode& from) {
GOOGLE_CHECK_NE(&from, this);
mutable_unknown_fields()->MergeFrom(from.unknown_fields());
}
void Material_MemoryMode::CopyFrom(const ::google::protobuf::Message& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
void Material_MemoryMode::CopyFrom(const Material_MemoryMode& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool Material_MemoryMode::IsInitialized() const {
return true;
}
void Material_MemoryMode::Swap(Material_MemoryMode* other) {
if (other != this) {
_unknown_fields_.Swap(&other->_unknown_fields_);
std::swap(_cached_size_, other->_cached_size_);
}
}
::google::protobuf::Metadata Material_MemoryMode::GetMetadata() const {
protobuf_AssignDescriptorsOnce();
::google::protobuf::Metadata metadata;
metadata.descriptor = Material_MemoryMode_descriptor_;
metadata.reflection = Material_MemoryMode_reflection_;
return metadata;
}
// -------------------------------------------------------------------
const ::google::protobuf::EnumDescriptor* Material_Blend_BlendSource_BlendSourceEnum_descriptor() {
protobuf_AssignDescriptorsOnce();
return Material_Blend_BlendSource_BlendSourceEnum_descriptor_;
}
bool Material_Blend_BlendSource_BlendSourceEnum_IsValid(int value) {
switch(value) {
case 0:
case 1:
case 2:
case 3:
case 4:
return true;
default:
return false;
}
}
#ifndef _MSC_VER
const Material_Blend_BlendSource_BlendSourceEnum Material_Blend_BlendSource::CURRENT;
const Material_Blend_BlendSource_BlendSourceEnum Material_Blend_BlendSource::TEXTURE;
const Material_Blend_BlendSource_BlendSourceEnum Material_Blend_BlendSource::DIFFUSE;
const Material_Blend_BlendSource_BlendSourceEnum Material_Blend_BlendSource::SPECULAR;
const Material_Blend_BlendSource_BlendSourceEnum Material_Blend_BlendSource::MANUAL;
const Material_Blend_BlendSource_BlendSourceEnum Material_Blend_BlendSource::BlendSourceEnum_MIN;
const Material_Blend_BlendSource_BlendSourceEnum Material_Blend_BlendSource::BlendSourceEnum_MAX;
const int Material_Blend_BlendSource::BlendSourceEnum_ARRAYSIZE;
#endif // _MSC_VER
#ifndef _MSC_VER
#endif // !_MSC_VER
Material_Blend_BlendSource::Material_Blend_BlendSource()
: ::google::protobuf::Message() {
SharedCtor();
}
void Material_Blend_BlendSource::InitAsDefaultInstance() {
}
Material_Blend_BlendSource::Material_Blend_BlendSource(const Material_Blend_BlendSource& from)
: ::google::protobuf::Message() {
SharedCtor();
MergeFrom(from);
}
void Material_Blend_BlendSource::SharedCtor() {
_cached_size_ = 0;
::memset(_has_bits_, 0, sizeof(_has_bits_));
}
Material_Blend_BlendSource::~Material_Blend_BlendSource() {
SharedDtor();
}
void Material_Blend_BlendSource::SharedDtor() {
if (this != default_instance_) {
}
}
void Material_Blend_BlendSource::SetCachedSize(int size) const {
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const ::google::protobuf::Descriptor* Material_Blend_BlendSource::descriptor() {
protobuf_AssignDescriptorsOnce();
return Material_Blend_BlendSource_descriptor_;
}
const Material_Blend_BlendSource& Material_Blend_BlendSource::default_instance() {
if (default_instance_ == NULL) protobuf_AddDesc_Material_2eproto();
return *default_instance_;
}
Material_Blend_BlendSource* Material_Blend_BlendSource::default_instance_ = NULL;
Material_Blend_BlendSource* Material_Blend_BlendSource::New() const {
return new Material_Blend_BlendSource;
}
void Material_Blend_BlendSource::Clear() {
::memset(_has_bits_, 0, sizeof(_has_bits_));
mutable_unknown_fields()->Clear();
}
bool Material_Blend_BlendSource::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
#define DO_(EXPRESSION) if (!(EXPRESSION)) return false
::google::protobuf::uint32 tag;
while ((tag = input->ReadTag()) != 0) {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
return true;
}
DO_(::google::protobuf::internal::WireFormat::SkipField(
input, tag, mutable_unknown_fields()));
}
return true;
#undef DO_
}
void Material_Blend_BlendSource::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
if (!unknown_fields().empty()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
unknown_fields(), output);
}
}
::google::protobuf::uint8* Material_Blend_BlendSource::SerializeWithCachedSizesToArray(
::google::protobuf::uint8* target) const {
if (!unknown_fields().empty()) {
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
unknown_fields(), target);
}
return target;
}
int Material_Blend_BlendSource::ByteSize() const {
int total_size = 0;
if (!unknown_fields().empty()) {
total_size +=
::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
unknown_fields());
}
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = total_size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
return total_size;
}
void Material_Blend_BlendSource::MergeFrom(const ::google::protobuf::Message& from) {
GOOGLE_CHECK_NE(&from, this);
const Material_Blend_BlendSource* source =
::google::protobuf::internal::dynamic_cast_if_available<const Material_Blend_BlendSource*>(
&from);
if (source == NULL) {
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
MergeFrom(*source);
}
}
void Material_Blend_BlendSource::MergeFrom(const Material_Blend_BlendSource& from) {
GOOGLE_CHECK_NE(&from, this);
mutable_unknown_fields()->MergeFrom(from.unknown_fields());
}
void Material_Blend_BlendSource::CopyFrom(const ::google::protobuf::Message& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
void Material_Blend_BlendSource::CopyFrom(const Material_Blend_BlendSource& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool Material_Blend_BlendSource::IsInitialized() const {
return true;
}
void Material_Blend_BlendSource::Swap(Material_Blend_BlendSource* other) {
if (other != this) {
_unknown_fields_.Swap(&other->_unknown_fields_);
std::swap(_cached_size_, other->_cached_size_);
}
}
::google::protobuf::Metadata Material_Blend_BlendSource::GetMetadata() const {
protobuf_AssignDescriptorsOnce();
::google::protobuf::Metadata metadata;
metadata.descriptor = Material_Blend_BlendSource_descriptor_;
metadata.reflection = Material_Blend_BlendSource_reflection_;
return metadata;
}
// -------------------------------------------------------------------
const ::google::protobuf::EnumDescriptor* Material_Blend_BlendOperation_BlendOperationEnum_descriptor() {
protobuf_AssignDescriptorsOnce();
return Material_Blend_BlendOperation_BlendOperationEnum_descriptor_;
}
bool Material_Blend_BlendOperation_BlendOperationEnum_IsValid(int value) {
switch(value) {
case 0:
case 1:
case 2:
case 3:
case 4:
case 5:
case 6:
case 7:
case 8:
case 9:
case 10:
case 11:
case 12:
case 13:
case 14:
return true;
default:
return false;
}
}
#ifndef _MSC_VER
const Material_Blend_BlendOperation_BlendOperationEnum Material_Blend_BlendOperation::ADD;
const Material_Blend_BlendOperation_BlendOperationEnum Material_Blend_BlendOperation::ADD_SIGNED;
const Material_Blend_BlendOperation_BlendOperationEnum Material_Blend_BlendOperation::ADD_SMOOTH;
const Material_Blend_BlendOperation_BlendOperationEnum Material_Blend_BlendOperation::MODULATE;
const Material_Blend_BlendOperation_BlendOperationEnum Material_Blend_BlendOperation::MODULATE_X2;
const Material_Blend_BlendOperation_BlendOperationEnum Material_Blend_BlendOperation::MODULATE_X4;
const Material_Blend_BlendOperation_BlendOperationEnum Material_Blend_BlendOperation::SUBTRACT;
const Material_Blend_BlendOperation_BlendOperationEnum Material_Blend_BlendOperation::SOURCE1;
const Material_Blend_BlendOperation_BlendOperationEnum Material_Blend_BlendOperation::SOURCE2;
const Material_Blend_BlendOperation_BlendOperationEnum Material_Blend_BlendOperation::BLEND_DIFFUSE_ALPHA;
const Material_Blend_BlendOperation_BlendOperationEnum Material_Blend_BlendOperation::BLEND_TEXTURE_ALPHA;
const Material_Blend_BlendOperation_BlendOperationEnum Material_Blend_BlendOperation::BLEND_CURRENT_ALPHA;
const Material_Blend_BlendOperation_BlendOperationEnum Material_Blend_BlendOperation::BLEND_DIFFUSE_COLOUR;
const Material_Blend_BlendOperation_BlendOperationEnum Material_Blend_BlendOperation::MANUAL;
const Material_Blend_BlendOperation_BlendOperationEnum Material_Blend_BlendOperation::BLEND_DOT_PRODUCT;
const Material_Blend_BlendOperation_BlendOperationEnum Material_Blend_BlendOperation::BlendOperationEnum_MIN;
const Material_Blend_BlendOperation_BlendOperationEnum Material_Blend_BlendOperation::BlendOperationEnum_MAX;
const int Material_Blend_BlendOperation::BlendOperationEnum_ARRAYSIZE;
#endif // _MSC_VER
#ifndef _MSC_VER
#endif // !_MSC_VER
Material_Blend_BlendOperation::Material_Blend_BlendOperation()
: ::google::protobuf::Message() {
SharedCtor();
}
void Material_Blend_BlendOperation::InitAsDefaultInstance() {
}
Material_Blend_BlendOperation::Material_Blend_BlendOperation(const Material_Blend_BlendOperation& from)
: ::google::protobuf::Message() {
SharedCtor();
MergeFrom(from);
}
void Material_Blend_BlendOperation::SharedCtor() {
_cached_size_ = 0;
::memset(_has_bits_, 0, sizeof(_has_bits_));
}
Material_Blend_BlendOperation::~Material_Blend_BlendOperation() {
SharedDtor();
}
void Material_Blend_BlendOperation::SharedDtor() {
if (this != default_instance_) {
}
}
void Material_Blend_BlendOperation::SetCachedSize(int size) const {
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const ::google::protobuf::Descriptor* Material_Blend_BlendOperation::descriptor() {
protobuf_AssignDescriptorsOnce();
return Material_Blend_BlendOperation_descriptor_;
}
const Material_Blend_BlendOperation& Material_Blend_BlendOperation::default_instance() {
if (default_instance_ == NULL) protobuf_AddDesc_Material_2eproto();
return *default_instance_;
}
Material_Blend_BlendOperation* Material_Blend_BlendOperation::default_instance_ = NULL;
Material_Blend_BlendOperation* Material_Blend_BlendOperation::New() const {
return new Material_Blend_BlendOperation;
}
void Material_Blend_BlendOperation::Clear() {
::memset(_has_bits_, 0, sizeof(_has_bits_));
mutable_unknown_fields()->Clear();
}
bool Material_Blend_BlendOperation::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
#define DO_(EXPRESSION) if (!(EXPRESSION)) return false
::google::protobuf::uint32 tag;
while ((tag = input->ReadTag()) != 0) {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
return true;
}
DO_(::google::protobuf::internal::WireFormat::SkipField(
input, tag, mutable_unknown_fields()));
}
return true;
#undef DO_
}
void Material_Blend_BlendOperation::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
if (!unknown_fields().empty()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
unknown_fields(), output);
}
}
::google::protobuf::uint8* Material_Blend_BlendOperation::SerializeWithCachedSizesToArray(
::google::protobuf::uint8* target) const {
if (!unknown_fields().empty()) {
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
unknown_fields(), target);
}
return target;
}
int Material_Blend_BlendOperation::ByteSize() const {
int total_size = 0;
if (!unknown_fields().empty()) {
total_size +=
::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
unknown_fields());
}
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = total_size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
return total_size;
}
void Material_Blend_BlendOperation::MergeFrom(const ::google::protobuf::Message& from) {
GOOGLE_CHECK_NE(&from, this);
const Material_Blend_BlendOperation* source =
::google::protobuf::internal::dynamic_cast_if_available<const Material_Blend_BlendOperation*>(
&from);
if (source == NULL) {
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
MergeFrom(*source);
}
}
void Material_Blend_BlendOperation::MergeFrom(const Material_Blend_BlendOperation& from) {
GOOGLE_CHECK_NE(&from, this);
mutable_unknown_fields()->MergeFrom(from.unknown_fields());
}
void Material_Blend_BlendOperation::CopyFrom(const ::google::protobuf::Message& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
void Material_Blend_BlendOperation::CopyFrom(const Material_Blend_BlendOperation& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool Material_Blend_BlendOperation::IsInitialized() const {
return true;
}
void Material_Blend_BlendOperation::Swap(Material_Blend_BlendOperation* other) {
if (other != this) {
_unknown_fields_.Swap(&other->_unknown_fields_);
std::swap(_cached_size_, other->_cached_size_);
}
}
::google::protobuf::Metadata Material_Blend_BlendOperation::GetMetadata() const {
protobuf_AssignDescriptorsOnce();
::google::protobuf::Metadata metadata;
metadata.descriptor = Material_Blend_BlendOperation_descriptor_;
metadata.reflection = Material_Blend_BlendOperation_reflection_;
return metadata;
}
// -------------------------------------------------------------------
#ifndef _MSC_VER
const int Material_Blend::kSource1FieldNumber;
const int Material_Blend::kSource2FieldNumber;
const int Material_Blend::kOperationFieldNumber;
#endif // !_MSC_VER
Material_Blend::Material_Blend()
: ::google::protobuf::Message() {
SharedCtor();
}
void Material_Blend::InitAsDefaultInstance() {
}
Material_Blend::Material_Blend(const Material_Blend& from)
: ::google::protobuf::Message() {
SharedCtor();
MergeFrom(from);
}
void Material_Blend::SharedCtor() {
_cached_size_ = 0;
source1_ = 0;
source2_ = 0;
operation_ = 0;
::memset(_has_bits_, 0, sizeof(_has_bits_));
}
Material_Blend::~Material_Blend() {
SharedDtor();
}
void Material_Blend::SharedDtor() {
if (this != default_instance_) {
}
}
void Material_Blend::SetCachedSize(int size) const {
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const ::google::protobuf::Descriptor* Material_Blend::descriptor() {
protobuf_AssignDescriptorsOnce();
return Material_Blend_descriptor_;
}
const Material_Blend& Material_Blend::default_instance() {
if (default_instance_ == NULL) protobuf_AddDesc_Material_2eproto();
return *default_instance_;
}
Material_Blend* Material_Blend::default_instance_ = NULL;
Material_Blend* Material_Blend::New() const {
return new Material_Blend;
}
void Material_Blend::Clear() {
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
source1_ = 0;
source2_ = 0;
operation_ = 0;
}
::memset(_has_bits_, 0, sizeof(_has_bits_));
mutable_unknown_fields()->Clear();
}
bool Material_Blend::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
#define DO_(EXPRESSION) if (!(EXPRESSION)) return false
::google::protobuf::uint32 tag;
while ((tag = input->ReadTag()) != 0) {
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// optional .Echo.Resources.Material.Blend.BlendSource.BlendSourceEnum source1 = 2;
case 2: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
int value;
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
input, &value)));
if (::Echo::Resources::Material_Blend_BlendSource_BlendSourceEnum_IsValid(value)) {
set_source1(static_cast< ::Echo::Resources::Material_Blend_BlendSource_BlendSourceEnum >(value));
} else {
mutable_unknown_fields()->AddVarint(2, value);
}
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(24)) goto parse_source2;
break;
}
// optional .Echo.Resources.Material.Blend.BlendSource.BlendSourceEnum source2 = 3;
case 3: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
parse_source2:
int value;
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
input, &value)));
if (::Echo::Resources::Material_Blend_BlendSource_BlendSourceEnum_IsValid(value)) {
set_source2(static_cast< ::Echo::Resources::Material_Blend_BlendSource_BlendSourceEnum >(value));
} else {
mutable_unknown_fields()->AddVarint(3, value);
}
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(32)) goto parse_operation;
break;
}
// required .Echo.Resources.Material.Blend.BlendOperation.BlendOperationEnum operation = 4;
case 4: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
parse_operation:
int value;
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
input, &value)));
if (::Echo::Resources::Material_Blend_BlendOperation_BlendOperationEnum_IsValid(value)) {
set_operation(static_cast< ::Echo::Resources::Material_Blend_BlendOperation_BlendOperationEnum >(value));
} else {
mutable_unknown_fields()->AddVarint(4, value);
}
} else {
goto handle_uninterpreted;
}
if (input->ExpectAtEnd()) return true;
break;
}
default: {
handle_uninterpreted:
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
return true;
}
DO_(::google::protobuf::internal::WireFormat::SkipField(
input, tag, mutable_unknown_fields()));
break;
}
}
}
return true;
#undef DO_
}
void Material_Blend::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
// optional .Echo.Resources.Material.Blend.BlendSource.BlendSourceEnum source1 = 2;
if (has_source1()) {
::google::protobuf::internal::WireFormatLite::WriteEnum(
2, this->source1(), output);
}
// optional .Echo.Resources.Material.Blend.BlendSource.BlendSourceEnum source2 = 3;
if (has_source2()) {
::google::protobuf::internal::WireFormatLite::WriteEnum(
3, this->source2(), output);
}
// required .Echo.Resources.Material.Blend.BlendOperation.BlendOperationEnum operation = 4;
if (has_operation()) {
::google::protobuf::internal::WireFormatLite::WriteEnum(
4, this->operation(), output);
}
if (!unknown_fields().empty()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
unknown_fields(), output);
}
}
::google::protobuf::uint8* Material_Blend::SerializeWithCachedSizesToArray(
::google::protobuf::uint8* target) const {
// optional .Echo.Resources.Material.Blend.BlendSource.BlendSourceEnum source1 = 2;
if (has_source1()) {
target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
2, this->source1(), target);
}
// optional .Echo.Resources.Material.Blend.BlendSource.BlendSourceEnum source2 = 3;
if (has_source2()) {
target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
3, this->source2(), target);
}
// required .Echo.Resources.Material.Blend.BlendOperation.BlendOperationEnum operation = 4;
if (has_operation()) {
target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
4, this->operation(), target);
}
if (!unknown_fields().empty()) {
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
unknown_fields(), target);
}
return target;
}
int Material_Blend::ByteSize() const {
int total_size = 0;
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
// optional .Echo.Resources.Material.Blend.BlendSource.BlendSourceEnum source1 = 2;
if (has_source1()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::EnumSize(this->source1());
}
// optional .Echo.Resources.Material.Blend.BlendSource.BlendSourceEnum source2 = 3;
if (has_source2()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::EnumSize(this->source2());
}
// required .Echo.Resources.Material.Blend.BlendOperation.BlendOperationEnum operation = 4;
if (has_operation()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::EnumSize(this->operation());
}
}
if (!unknown_fields().empty()) {
total_size +=
::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
unknown_fields());
}
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = total_size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
return total_size;
}
void Material_Blend::MergeFrom(const ::google::protobuf::Message& from) {
GOOGLE_CHECK_NE(&from, this);
const Material_Blend* source =
::google::protobuf::internal::dynamic_cast_if_available<const Material_Blend*>(
&from);
if (source == NULL) {
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
MergeFrom(*source);
}
}
void Material_Blend::MergeFrom(const Material_Blend& from) {
GOOGLE_CHECK_NE(&from, this);
if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
if (from.has_source1()) {
set_source1(from.source1());
}
if (from.has_source2()) {
set_source2(from.source2());
}
if (from.has_operation()) {
set_operation(from.operation());
}
}
mutable_unknown_fields()->MergeFrom(from.unknown_fields());
}
void Material_Blend::CopyFrom(const ::google::protobuf::Message& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
void Material_Blend::CopyFrom(const Material_Blend& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool Material_Blend::IsInitialized() const {
if ((_has_bits_[0] & 0x00000004) != 0x00000004) return false;
return true;
}
void Material_Blend::Swap(Material_Blend* other) {
if (other != this) {
std::swap(source1_, other->source1_);
std::swap(source2_, other->source2_);
std::swap(operation_, other->operation_);
std::swap(_has_bits_[0], other->_has_bits_[0]);
_unknown_fields_.Swap(&other->_unknown_fields_);
std::swap(_cached_size_, other->_cached_size_);
}
}
::google::protobuf::Metadata Material_Blend::GetMetadata() const {
protobuf_AssignDescriptorsOnce();
::google::protobuf::Metadata metadata;
metadata.descriptor = Material_Blend_descriptor_;
metadata.reflection = Material_Blend_reflection_;
return metadata;
}
// -------------------------------------------------------------------
const ::google::protobuf::EnumDescriptor* Material_TextureWrapMode_TextureWrapModeEnum_descriptor() {
protobuf_AssignDescriptorsOnce();
return Material_TextureWrapMode_TextureWrapModeEnum_descriptor_;
}
bool Material_TextureWrapMode_TextureWrapModeEnum_IsValid(int value) {
switch(value) {
case 0:
case 1:
case 2:
return true;
default:
return false;
}
}
#ifndef _MSC_VER
const Material_TextureWrapMode_TextureWrapModeEnum Material_TextureWrapMode::CLAMP;
const Material_TextureWrapMode_TextureWrapModeEnum Material_TextureWrapMode::CLAMP_TO_EDGE;
const Material_TextureWrapMode_TextureWrapModeEnum Material_TextureWrapMode::REPEAT;
const Material_TextureWrapMode_TextureWrapModeEnum Material_TextureWrapMode::TextureWrapModeEnum_MIN;
const Material_TextureWrapMode_TextureWrapModeEnum Material_TextureWrapMode::TextureWrapModeEnum_MAX;
const int Material_TextureWrapMode::TextureWrapModeEnum_ARRAYSIZE;
#endif // _MSC_VER
#ifndef _MSC_VER
#endif // !_MSC_VER
Material_TextureWrapMode::Material_TextureWrapMode()
: ::google::protobuf::Message() {
SharedCtor();
}
void Material_TextureWrapMode::InitAsDefaultInstance() {
}
Material_TextureWrapMode::Material_TextureWrapMode(const Material_TextureWrapMode& from)
: ::google::protobuf::Message() {
SharedCtor();
MergeFrom(from);
}
void Material_TextureWrapMode::SharedCtor() {
_cached_size_ = 0;
::memset(_has_bits_, 0, sizeof(_has_bits_));
}
Material_TextureWrapMode::~Material_TextureWrapMode() {
SharedDtor();
}
void Material_TextureWrapMode::SharedDtor() {
if (this != default_instance_) {
}
}
void Material_TextureWrapMode::SetCachedSize(int size) const {
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const ::google::protobuf::Descriptor* Material_TextureWrapMode::descriptor() {
protobuf_AssignDescriptorsOnce();
return Material_TextureWrapMode_descriptor_;
}
const Material_TextureWrapMode& Material_TextureWrapMode::default_instance() {
if (default_instance_ == NULL) protobuf_AddDesc_Material_2eproto();
return *default_instance_;
}
Material_TextureWrapMode* Material_TextureWrapMode::default_instance_ = NULL;
Material_TextureWrapMode* Material_TextureWrapMode::New() const {
return new Material_TextureWrapMode;
}
void Material_TextureWrapMode::Clear() {
::memset(_has_bits_, 0, sizeof(_has_bits_));
mutable_unknown_fields()->Clear();
}
bool Material_TextureWrapMode::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
#define DO_(EXPRESSION) if (!(EXPRESSION)) return false
::google::protobuf::uint32 tag;
while ((tag = input->ReadTag()) != 0) {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
return true;
}
DO_(::google::protobuf::internal::WireFormat::SkipField(
input, tag, mutable_unknown_fields()));
}
return true;
#undef DO_
}
void Material_TextureWrapMode::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
if (!unknown_fields().empty()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
unknown_fields(), output);
}
}
::google::protobuf::uint8* Material_TextureWrapMode::SerializeWithCachedSizesToArray(
::google::protobuf::uint8* target) const {
if (!unknown_fields().empty()) {
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
unknown_fields(), target);
}
return target;
}
int Material_TextureWrapMode::ByteSize() const {
int total_size = 0;
if (!unknown_fields().empty()) {
total_size +=
::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
unknown_fields());
}
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = total_size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
return total_size;
}
void Material_TextureWrapMode::MergeFrom(const ::google::protobuf::Message& from) {
GOOGLE_CHECK_NE(&from, this);
const Material_TextureWrapMode* source =
::google::protobuf::internal::dynamic_cast_if_available<const Material_TextureWrapMode*>(
&from);
if (source == NULL) {
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
MergeFrom(*source);
}
}
void Material_TextureWrapMode::MergeFrom(const Material_TextureWrapMode& from) {
GOOGLE_CHECK_NE(&from, this);
mutable_unknown_fields()->MergeFrom(from.unknown_fields());
}
void Material_TextureWrapMode::CopyFrom(const ::google::protobuf::Message& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
void Material_TextureWrapMode::CopyFrom(const Material_TextureWrapMode& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool Material_TextureWrapMode::IsInitialized() const {
return true;
}
void Material_TextureWrapMode::Swap(Material_TextureWrapMode* other) {
if (other != this) {
_unknown_fields_.Swap(&other->_unknown_fields_);
std::swap(_cached_size_, other->_cached_size_);
}
}
::google::protobuf::Metadata Material_TextureWrapMode::GetMetadata() const {
protobuf_AssignDescriptorsOnce();
::google::protobuf::Metadata metadata;
metadata.descriptor = Material_TextureWrapMode_descriptor_;
metadata.reflection = Material_TextureWrapMode_reflection_;
return metadata;
}
// -------------------------------------------------------------------
const ::google::protobuf::EnumDescriptor* Material_TextureFilter_TextureFilterEnum_descriptor() {
protobuf_AssignDescriptorsOnce();
return Material_TextureFilter_TextureFilterEnum_descriptor_;
}
bool Material_TextureFilter_TextureFilterEnum_IsValid(int value) {
switch(value) {
case 0:
case 1:
return true;
default:
return false;
}
}
#ifndef _MSC_VER
const Material_TextureFilter_TextureFilterEnum Material_TextureFilter::NEAREST;
const Material_TextureFilter_TextureFilterEnum Material_TextureFilter::LINEAR;
const Material_TextureFilter_TextureFilterEnum Material_TextureFilter::TextureFilterEnum_MIN;
const Material_TextureFilter_TextureFilterEnum Material_TextureFilter::TextureFilterEnum_MAX;
const int Material_TextureFilter::TextureFilterEnum_ARRAYSIZE;
#endif // _MSC_VER
#ifndef _MSC_VER
#endif // !_MSC_VER
Material_TextureFilter::Material_TextureFilter()
: ::google::protobuf::Message() {
SharedCtor();
}
void Material_TextureFilter::InitAsDefaultInstance() {
}
Material_TextureFilter::Material_TextureFilter(const Material_TextureFilter& from)
: ::google::protobuf::Message() {
SharedCtor();
MergeFrom(from);
}
void Material_TextureFilter::SharedCtor() {
_cached_size_ = 0;
::memset(_has_bits_, 0, sizeof(_has_bits_));
}
Material_TextureFilter::~Material_TextureFilter() {
SharedDtor();
}
void Material_TextureFilter::SharedDtor() {
if (this != default_instance_) {
}
}
void Material_TextureFilter::SetCachedSize(int size) const {
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const ::google::protobuf::Descriptor* Material_TextureFilter::descriptor() {
protobuf_AssignDescriptorsOnce();
return Material_TextureFilter_descriptor_;
}
const Material_TextureFilter& Material_TextureFilter::default_instance() {
if (default_instance_ == NULL) protobuf_AddDesc_Material_2eproto();
return *default_instance_;
}
Material_TextureFilter* Material_TextureFilter::default_instance_ = NULL;
Material_TextureFilter* Material_TextureFilter::New() const {
return new Material_TextureFilter;
}
void Material_TextureFilter::Clear() {
::memset(_has_bits_, 0, sizeof(_has_bits_));
mutable_unknown_fields()->Clear();
}
bool Material_TextureFilter::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
#define DO_(EXPRESSION) if (!(EXPRESSION)) return false
::google::protobuf::uint32 tag;
while ((tag = input->ReadTag()) != 0) {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
return true;
}
DO_(::google::protobuf::internal::WireFormat::SkipField(
input, tag, mutable_unknown_fields()));
}
return true;
#undef DO_
}
void Material_TextureFilter::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
if (!unknown_fields().empty()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
unknown_fields(), output);
}
}
::google::protobuf::uint8* Material_TextureFilter::SerializeWithCachedSizesToArray(
::google::protobuf::uint8* target) const {
if (!unknown_fields().empty()) {
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
unknown_fields(), target);
}
return target;
}
int Material_TextureFilter::ByteSize() const {
int total_size = 0;
if (!unknown_fields().empty()) {
total_size +=
::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
unknown_fields());
}
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = total_size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
return total_size;
}
void Material_TextureFilter::MergeFrom(const ::google::protobuf::Message& from) {
GOOGLE_CHECK_NE(&from, this);
const Material_TextureFilter* source =
::google::protobuf::internal::dynamic_cast_if_available<const Material_TextureFilter*>(
&from);
if (source == NULL) {
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
MergeFrom(*source);
}
}
void Material_TextureFilter::MergeFrom(const Material_TextureFilter& from) {
GOOGLE_CHECK_NE(&from, this);
mutable_unknown_fields()->MergeFrom(from.unknown_fields());
}
void Material_TextureFilter::CopyFrom(const ::google::protobuf::Message& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
void Material_TextureFilter::CopyFrom(const Material_TextureFilter& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool Material_TextureFilter::IsInitialized() const {
return true;
}
void Material_TextureFilter::Swap(Material_TextureFilter* other) {
if (other != this) {
_unknown_fields_.Swap(&other->_unknown_fields_);
std::swap(_cached_size_, other->_cached_size_);
}
}
::google::protobuf::Metadata Material_TextureFilter::GetMetadata() const {
protobuf_AssignDescriptorsOnce();
::google::protobuf::Metadata metadata;
metadata.descriptor = Material_TextureFilter_descriptor_;
metadata.reflection = Material_TextureFilter_reflection_;
return metadata;
}
// -------------------------------------------------------------------
const ::google::protobuf::EnumDescriptor* Material_TextureGeneration_TextureGenerationModeEnum_descriptor() {
protobuf_AssignDescriptorsOnce();
return Material_TextureGeneration_TextureGenerationModeEnum_descriptor_;
}
bool Material_TextureGeneration_TextureGenerationModeEnum_IsValid(int value) {
switch(value) {
case 0:
case 1:
case 2:
case 3:
case 4:
return true;
default:
return false;
}
}
#ifndef _MSC_VER
const Material_TextureGeneration_TextureGenerationModeEnum Material_TextureGeneration::NONE;
const Material_TextureGeneration_TextureGenerationModeEnum Material_TextureGeneration::LINEAR;
const Material_TextureGeneration_TextureGenerationModeEnum Material_TextureGeneration::EYE_LINEAR;
const Material_TextureGeneration_TextureGenerationModeEnum Material_TextureGeneration::SPHERE;
const Material_TextureGeneration_TextureGenerationModeEnum Material_TextureGeneration::CUBE;
const Material_TextureGeneration_TextureGenerationModeEnum Material_TextureGeneration::TextureGenerationModeEnum_MIN;
const Material_TextureGeneration_TextureGenerationModeEnum Material_TextureGeneration::TextureGenerationModeEnum_MAX;
const int Material_TextureGeneration::TextureGenerationModeEnum_ARRAYSIZE;
#endif // _MSC_VER
#ifndef _MSC_VER
const int Material_TextureGeneration_Plane::kAFieldNumber;
const int Material_TextureGeneration_Plane::kBFieldNumber;
const int Material_TextureGeneration_Plane::kCFieldNumber;
const int Material_TextureGeneration_Plane::kDFieldNumber;
#endif // !_MSC_VER
Material_TextureGeneration_Plane::Material_TextureGeneration_Plane()
: ::google::protobuf::Message() {
SharedCtor();
}
void Material_TextureGeneration_Plane::InitAsDefaultInstance() {
}
Material_TextureGeneration_Plane::Material_TextureGeneration_Plane(const Material_TextureGeneration_Plane& from)
: ::google::protobuf::Message() {
SharedCtor();
MergeFrom(from);
}
void Material_TextureGeneration_Plane::SharedCtor() {
_cached_size_ = 0;
a_ = 0;
b_ = 0;
c_ = 0;
d_ = 0;
::memset(_has_bits_, 0, sizeof(_has_bits_));
}
Material_TextureGeneration_Plane::~Material_TextureGeneration_Plane() {
SharedDtor();
}
void Material_TextureGeneration_Plane::SharedDtor() {
if (this != default_instance_) {
}
}
void Material_TextureGeneration_Plane::SetCachedSize(int size) const {
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const ::google::protobuf::Descriptor* Material_TextureGeneration_Plane::descriptor() {
protobuf_AssignDescriptorsOnce();
return Material_TextureGeneration_Plane_descriptor_;
}
const Material_TextureGeneration_Plane& Material_TextureGeneration_Plane::default_instance() {
if (default_instance_ == NULL) protobuf_AddDesc_Material_2eproto();
return *default_instance_;
}
Material_TextureGeneration_Plane* Material_TextureGeneration_Plane::default_instance_ = NULL;
Material_TextureGeneration_Plane* Material_TextureGeneration_Plane::New() const {
return new Material_TextureGeneration_Plane;
}
void Material_TextureGeneration_Plane::Clear() {
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
a_ = 0;
b_ = 0;
c_ = 0;
d_ = 0;
}
::memset(_has_bits_, 0, sizeof(_has_bits_));
mutable_unknown_fields()->Clear();
}
bool Material_TextureGeneration_Plane::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
#define DO_(EXPRESSION) if (!(EXPRESSION)) return false
::google::protobuf::uint32 tag;
while ((tag = input->ReadTag()) != 0) {
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// required float a = 1;
case 1: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_FIXED32) {
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
input, &a_)));
set_has_a();
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(21)) goto parse_b;
break;
}
// required float b = 2;
case 2: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_FIXED32) {
parse_b:
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
input, &b_)));
set_has_b();
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(29)) goto parse_c;
break;
}
// required float c = 3;
case 3: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_FIXED32) {
parse_c:
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
input, &c_)));
set_has_c();
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(37)) goto parse_d;
break;
}
// required float d = 4;
case 4: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_FIXED32) {
parse_d:
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
input, &d_)));
set_has_d();
} else {
goto handle_uninterpreted;
}
if (input->ExpectAtEnd()) return true;
break;
}
default: {
handle_uninterpreted:
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
return true;
}
DO_(::google::protobuf::internal::WireFormat::SkipField(
input, tag, mutable_unknown_fields()));
break;
}
}
}
return true;
#undef DO_
}
void Material_TextureGeneration_Plane::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
// required float a = 1;
if (has_a()) {
::google::protobuf::internal::WireFormatLite::WriteFloat(1, this->a(), output);
}
// required float b = 2;
if (has_b()) {
::google::protobuf::internal::WireFormatLite::WriteFloat(2, this->b(), output);
}
// required float c = 3;
if (has_c()) {
::google::protobuf::internal::WireFormatLite::WriteFloat(3, this->c(), output);
}
// required float d = 4;
if (has_d()) {
::google::protobuf::internal::WireFormatLite::WriteFloat(4, this->d(), output);
}
if (!unknown_fields().empty()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
unknown_fields(), output);
}
}
::google::protobuf::uint8* Material_TextureGeneration_Plane::SerializeWithCachedSizesToArray(
::google::protobuf::uint8* target) const {
// required float a = 1;
if (has_a()) {
target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(1, this->a(), target);
}
// required float b = 2;
if (has_b()) {
target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(2, this->b(), target);
}
// required float c = 3;
if (has_c()) {
target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(3, this->c(), target);
}
// required float d = 4;
if (has_d()) {
target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(4, this->d(), target);
}
if (!unknown_fields().empty()) {
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
unknown_fields(), target);
}
return target;
}
int Material_TextureGeneration_Plane::ByteSize() const {
int total_size = 0;
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
// required float a = 1;
if (has_a()) {
total_size += 1 + 4;
}
// required float b = 2;
if (has_b()) {
total_size += 1 + 4;
}
// required float c = 3;
if (has_c()) {
total_size += 1 + 4;
}
// required float d = 4;
if (has_d()) {
total_size += 1 + 4;
}
}
if (!unknown_fields().empty()) {
total_size +=
::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
unknown_fields());
}
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = total_size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
return total_size;
}
void Material_TextureGeneration_Plane::MergeFrom(const ::google::protobuf::Message& from) {
GOOGLE_CHECK_NE(&from, this);
const Material_TextureGeneration_Plane* source =
::google::protobuf::internal::dynamic_cast_if_available<const Material_TextureGeneration_Plane*>(
&from);
if (source == NULL) {
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
MergeFrom(*source);
}
}
void Material_TextureGeneration_Plane::MergeFrom(const Material_TextureGeneration_Plane& from) {
GOOGLE_CHECK_NE(&from, this);
if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
if (from.has_a()) {
set_a(from.a());
}
if (from.has_b()) {
set_b(from.b());
}
if (from.has_c()) {
set_c(from.c());
}
if (from.has_d()) {
set_d(from.d());
}
}
mutable_unknown_fields()->MergeFrom(from.unknown_fields());
}
void Material_TextureGeneration_Plane::CopyFrom(const ::google::protobuf::Message& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
void Material_TextureGeneration_Plane::CopyFrom(const Material_TextureGeneration_Plane& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool Material_TextureGeneration_Plane::IsInitialized() const {
if ((_has_bits_[0] & 0x0000000f) != 0x0000000f) return false;
return true;
}
void Material_TextureGeneration_Plane::Swap(Material_TextureGeneration_Plane* other) {
if (other != this) {
std::swap(a_, other->a_);
std::swap(b_, other->b_);
std::swap(c_, other->c_);
std::swap(d_, other->d_);
std::swap(_has_bits_[0], other->_has_bits_[0]);
_unknown_fields_.Swap(&other->_unknown_fields_);
std::swap(_cached_size_, other->_cached_size_);
}
}
::google::protobuf::Metadata Material_TextureGeneration_Plane::GetMetadata() const {
protobuf_AssignDescriptorsOnce();
::google::protobuf::Metadata metadata;
metadata.descriptor = Material_TextureGeneration_Plane_descriptor_;
metadata.reflection = Material_TextureGeneration_Plane_reflection_;
return metadata;
}
// -------------------------------------------------------------------
#ifndef _MSC_VER
const int Material_TextureGeneration_CubeMap::kPosXFieldNumber;
const int Material_TextureGeneration_CubeMap::kPosYFieldNumber;
const int Material_TextureGeneration_CubeMap::kPosZFieldNumber;
const int Material_TextureGeneration_CubeMap::kNegXFieldNumber;
const int Material_TextureGeneration_CubeMap::kNegYFieldNumber;
const int Material_TextureGeneration_CubeMap::kNegZFieldNumber;
#endif // !_MSC_VER
Material_TextureGeneration_CubeMap::Material_TextureGeneration_CubeMap()
: ::google::protobuf::Message() {
SharedCtor();
}
void Material_TextureGeneration_CubeMap::InitAsDefaultInstance() {
}
Material_TextureGeneration_CubeMap::Material_TextureGeneration_CubeMap(const Material_TextureGeneration_CubeMap& from)
: ::google::protobuf::Message() {
SharedCtor();
MergeFrom(from);
}
void Material_TextureGeneration_CubeMap::SharedCtor() {
_cached_size_ = 0;
pos_x_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
pos_y_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
pos_z_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
neg_x_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
neg_y_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
neg_z_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
::memset(_has_bits_, 0, sizeof(_has_bits_));
}
Material_TextureGeneration_CubeMap::~Material_TextureGeneration_CubeMap() {
SharedDtor();
}
void Material_TextureGeneration_CubeMap::SharedDtor() {
if (pos_x_ != &::google::protobuf::internal::kEmptyString) {
delete pos_x_;
}
if (pos_y_ != &::google::protobuf::internal::kEmptyString) {
delete pos_y_;
}
if (pos_z_ != &::google::protobuf::internal::kEmptyString) {
delete pos_z_;
}
if (neg_x_ != &::google::protobuf::internal::kEmptyString) {
delete neg_x_;
}
if (neg_y_ != &::google::protobuf::internal::kEmptyString) {
delete neg_y_;
}
if (neg_z_ != &::google::protobuf::internal::kEmptyString) {
delete neg_z_;
}
if (this != default_instance_) {
}
}
void Material_TextureGeneration_CubeMap::SetCachedSize(int size) const {
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const ::google::protobuf::Descriptor* Material_TextureGeneration_CubeMap::descriptor() {
protobuf_AssignDescriptorsOnce();
return Material_TextureGeneration_CubeMap_descriptor_;
}
const Material_TextureGeneration_CubeMap& Material_TextureGeneration_CubeMap::default_instance() {
if (default_instance_ == NULL) protobuf_AddDesc_Material_2eproto();
return *default_instance_;
}
Material_TextureGeneration_CubeMap* Material_TextureGeneration_CubeMap::default_instance_ = NULL;
Material_TextureGeneration_CubeMap* Material_TextureGeneration_CubeMap::New() const {
return new Material_TextureGeneration_CubeMap;
}
void Material_TextureGeneration_CubeMap::Clear() {
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
if (has_pos_x()) {
if (pos_x_ != &::google::protobuf::internal::kEmptyString) {
pos_x_->clear();
}
}
if (has_pos_y()) {
if (pos_y_ != &::google::protobuf::internal::kEmptyString) {
pos_y_->clear();
}
}
if (has_pos_z()) {
if (pos_z_ != &::google::protobuf::internal::kEmptyString) {
pos_z_->clear();
}
}
if (has_neg_x()) {
if (neg_x_ != &::google::protobuf::internal::kEmptyString) {
neg_x_->clear();
}
}
if (has_neg_y()) {
if (neg_y_ != &::google::protobuf::internal::kEmptyString) {
neg_y_->clear();
}
}
if (has_neg_z()) {
if (neg_z_ != &::google::protobuf::internal::kEmptyString) {
neg_z_->clear();
}
}
}
::memset(_has_bits_, 0, sizeof(_has_bits_));
mutable_unknown_fields()->Clear();
}
bool Material_TextureGeneration_CubeMap::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
#define DO_(EXPRESSION) if (!(EXPRESSION)) return false
::google::protobuf::uint32 tag;
while ((tag = input->ReadTag()) != 0) {
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// required string pos_x = 1;
case 1: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_pos_x()));
::google::protobuf::internal::WireFormat::VerifyUTF8String(
this->pos_x().data(), this->pos_x().length(),
::google::protobuf::internal::WireFormat::PARSE);
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(18)) goto parse_pos_y;
break;
}
// required string pos_y = 2;
case 2: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
parse_pos_y:
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_pos_y()));
::google::protobuf::internal::WireFormat::VerifyUTF8String(
this->pos_y().data(), this->pos_y().length(),
::google::protobuf::internal::WireFormat::PARSE);
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(26)) goto parse_pos_z;
break;
}
// required string pos_z = 3;
case 3: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
parse_pos_z:
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_pos_z()));
::google::protobuf::internal::WireFormat::VerifyUTF8String(
this->pos_z().data(), this->pos_z().length(),
::google::protobuf::internal::WireFormat::PARSE);
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(34)) goto parse_neg_x;
break;
}
// required string neg_x = 4;
case 4: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
parse_neg_x:
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_neg_x()));
::google::protobuf::internal::WireFormat::VerifyUTF8String(
this->neg_x().data(), this->neg_x().length(),
::google::protobuf::internal::WireFormat::PARSE);
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(42)) goto parse_neg_y;
break;
}
// required string neg_y = 5;
case 5: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
parse_neg_y:
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_neg_y()));
::google::protobuf::internal::WireFormat::VerifyUTF8String(
this->neg_y().data(), this->neg_y().length(),
::google::protobuf::internal::WireFormat::PARSE);
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(50)) goto parse_neg_z;
break;
}
// required string neg_z = 6;
case 6: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
parse_neg_z:
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_neg_z()));
::google::protobuf::internal::WireFormat::VerifyUTF8String(
this->neg_z().data(), this->neg_z().length(),
::google::protobuf::internal::WireFormat::PARSE);
} else {
goto handle_uninterpreted;
}
if (input->ExpectAtEnd()) return true;
break;
}
default: {
handle_uninterpreted:
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
return true;
}
DO_(::google::protobuf::internal::WireFormat::SkipField(
input, tag, mutable_unknown_fields()));
break;
}
}
}
return true;
#undef DO_
}
void Material_TextureGeneration_CubeMap::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
// required string pos_x = 1;
if (has_pos_x()) {
::google::protobuf::internal::WireFormat::VerifyUTF8String(
this->pos_x().data(), this->pos_x().length(),
::google::protobuf::internal::WireFormat::SERIALIZE);
::google::protobuf::internal::WireFormatLite::WriteString(
1, this->pos_x(), output);
}
// required string pos_y = 2;
if (has_pos_y()) {
::google::protobuf::internal::WireFormat::VerifyUTF8String(
this->pos_y().data(), this->pos_y().length(),
::google::protobuf::internal::WireFormat::SERIALIZE);
::google::protobuf::internal::WireFormatLite::WriteString(
2, this->pos_y(), output);
}
// required string pos_z = 3;
if (has_pos_z()) {
::google::protobuf::internal::WireFormat::VerifyUTF8String(
this->pos_z().data(), this->pos_z().length(),
::google::protobuf::internal::WireFormat::SERIALIZE);
::google::protobuf::internal::WireFormatLite::WriteString(
3, this->pos_z(), output);
}
// required string neg_x = 4;
if (has_neg_x()) {
::google::protobuf::internal::WireFormat::VerifyUTF8String(
this->neg_x().data(), this->neg_x().length(),
::google::protobuf::internal::WireFormat::SERIALIZE);
::google::protobuf::internal::WireFormatLite::WriteString(
4, this->neg_x(), output);
}
// required string neg_y = 5;
if (has_neg_y()) {
::google::protobuf::internal::WireFormat::VerifyUTF8String(
this->neg_y().data(), this->neg_y().length(),
::google::protobuf::internal::WireFormat::SERIALIZE);
::google::protobuf::internal::WireFormatLite::WriteString(
5, this->neg_y(), output);
}
// required string neg_z = 6;
if (has_neg_z()) {
::google::protobuf::internal::WireFormat::VerifyUTF8String(
this->neg_z().data(), this->neg_z().length(),
::google::protobuf::internal::WireFormat::SERIALIZE);
::google::protobuf::internal::WireFormatLite::WriteString(
6, this->neg_z(), output);
}
if (!unknown_fields().empty()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
unknown_fields(), output);
}
}
::google::protobuf::uint8* Material_TextureGeneration_CubeMap::SerializeWithCachedSizesToArray(
::google::protobuf::uint8* target) const {
// required string pos_x = 1;
if (has_pos_x()) {
::google::protobuf::internal::WireFormat::VerifyUTF8String(
this->pos_x().data(), this->pos_x().length(),
::google::protobuf::internal::WireFormat::SERIALIZE);
target =
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
1, this->pos_x(), target);
}
// required string pos_y = 2;
if (has_pos_y()) {
::google::protobuf::internal::WireFormat::VerifyUTF8String(
this->pos_y().data(), this->pos_y().length(),
::google::protobuf::internal::WireFormat::SERIALIZE);
target =
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
2, this->pos_y(), target);
}
// required string pos_z = 3;
if (has_pos_z()) {
::google::protobuf::internal::WireFormat::VerifyUTF8String(
this->pos_z().data(), this->pos_z().length(),
::google::protobuf::internal::WireFormat::SERIALIZE);
target =
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
3, this->pos_z(), target);
}
// required string neg_x = 4;
if (has_neg_x()) {
::google::protobuf::internal::WireFormat::VerifyUTF8String(
this->neg_x().data(), this->neg_x().length(),
::google::protobuf::internal::WireFormat::SERIALIZE);
target =
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
4, this->neg_x(), target);
}
// required string neg_y = 5;
if (has_neg_y()) {
::google::protobuf::internal::WireFormat::VerifyUTF8String(
this->neg_y().data(), this->neg_y().length(),
::google::protobuf::internal::WireFormat::SERIALIZE);
target =
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
5, this->neg_y(), target);
}
// required string neg_z = 6;
if (has_neg_z()) {
::google::protobuf::internal::WireFormat::VerifyUTF8String(
this->neg_z().data(), this->neg_z().length(),
::google::protobuf::internal::WireFormat::SERIALIZE);
target =
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
6, this->neg_z(), target);
}
if (!unknown_fields().empty()) {
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
unknown_fields(), target);
}
return target;
}
int Material_TextureGeneration_CubeMap::ByteSize() const {
int total_size = 0;
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
// required string pos_x = 1;
if (has_pos_x()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::StringSize(
this->pos_x());
}
// required string pos_y = 2;
if (has_pos_y()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::StringSize(
this->pos_y());
}
// required string pos_z = 3;
if (has_pos_z()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::StringSize(
this->pos_z());
}
// required string neg_x = 4;
if (has_neg_x()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::StringSize(
this->neg_x());
}
// required string neg_y = 5;
if (has_neg_y()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::StringSize(
this->neg_y());
}
// required string neg_z = 6;
if (has_neg_z()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::StringSize(
this->neg_z());
}
}
if (!unknown_fields().empty()) {
total_size +=
::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
unknown_fields());
}
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = total_size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
return total_size;
}
void Material_TextureGeneration_CubeMap::MergeFrom(const ::google::protobuf::Message& from) {
GOOGLE_CHECK_NE(&from, this);
const Material_TextureGeneration_CubeMap* source =
::google::protobuf::internal::dynamic_cast_if_available<const Material_TextureGeneration_CubeMap*>(
&from);
if (source == NULL) {
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
MergeFrom(*source);
}
}
void Material_TextureGeneration_CubeMap::MergeFrom(const Material_TextureGeneration_CubeMap& from) {
GOOGLE_CHECK_NE(&from, this);
if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
if (from.has_pos_x()) {
set_pos_x(from.pos_x());
}
if (from.has_pos_y()) {
set_pos_y(from.pos_y());
}
if (from.has_pos_z()) {
set_pos_z(from.pos_z());
}
if (from.has_neg_x()) {
set_neg_x(from.neg_x());
}
if (from.has_neg_y()) {
set_neg_y(from.neg_y());
}
if (from.has_neg_z()) {
set_neg_z(from.neg_z());
}
}
mutable_unknown_fields()->MergeFrom(from.unknown_fields());
}
void Material_TextureGeneration_CubeMap::CopyFrom(const ::google::protobuf::Message& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
void Material_TextureGeneration_CubeMap::CopyFrom(const Material_TextureGeneration_CubeMap& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool Material_TextureGeneration_CubeMap::IsInitialized() const {
if ((_has_bits_[0] & 0x0000003f) != 0x0000003f) return false;
return true;
}
void Material_TextureGeneration_CubeMap::Swap(Material_TextureGeneration_CubeMap* other) {
if (other != this) {
std::swap(pos_x_, other->pos_x_);
std::swap(pos_y_, other->pos_y_);
std::swap(pos_z_, other->pos_z_);
std::swap(neg_x_, other->neg_x_);
std::swap(neg_y_, other->neg_y_);
std::swap(neg_z_, other->neg_z_);
std::swap(_has_bits_[0], other->_has_bits_[0]);
_unknown_fields_.Swap(&other->_unknown_fields_);
std::swap(_cached_size_, other->_cached_size_);
}
}
::google::protobuf::Metadata Material_TextureGeneration_CubeMap::GetMetadata() const {
protobuf_AssignDescriptorsOnce();
::google::protobuf::Metadata metadata;
metadata.descriptor = Material_TextureGeneration_CubeMap_descriptor_;
metadata.reflection = Material_TextureGeneration_CubeMap_reflection_;
return metadata;
}
// -------------------------------------------------------------------
#ifndef _MSC_VER
const int Material_TextureGeneration::kModeFieldNumber;
const int Material_TextureGeneration::kQPlaneFieldNumber;
const int Material_TextureGeneration::kRPlaneFieldNumber;
const int Material_TextureGeneration::kSPlaneFieldNumber;
const int Material_TextureGeneration::kTPlaneFieldNumber;
const int Material_TextureGeneration::kCubeMapFieldNumber;
#endif // !_MSC_VER
Material_TextureGeneration::Material_TextureGeneration()
: ::google::protobuf::Message() {
SharedCtor();
}
void Material_TextureGeneration::InitAsDefaultInstance() {
q_plane_ = const_cast< ::Echo::Resources::Material_TextureGeneration_Plane*>(&::Echo::Resources::Material_TextureGeneration_Plane::default_instance());
r_plane_ = const_cast< ::Echo::Resources::Material_TextureGeneration_Plane*>(&::Echo::Resources::Material_TextureGeneration_Plane::default_instance());
s_plane_ = const_cast< ::Echo::Resources::Material_TextureGeneration_Plane*>(&::Echo::Resources::Material_TextureGeneration_Plane::default_instance());
t_plane_ = const_cast< ::Echo::Resources::Material_TextureGeneration_Plane*>(&::Echo::Resources::Material_TextureGeneration_Plane::default_instance());
cube_map_ = const_cast< ::Echo::Resources::Material_TextureGeneration_CubeMap*>(&::Echo::Resources::Material_TextureGeneration_CubeMap::default_instance());
}
Material_TextureGeneration::Material_TextureGeneration(const Material_TextureGeneration& from)
: ::google::protobuf::Message() {
SharedCtor();
MergeFrom(from);
}
void Material_TextureGeneration::SharedCtor() {
_cached_size_ = 0;
mode_ = 0;
q_plane_ = NULL;
r_plane_ = NULL;
s_plane_ = NULL;
t_plane_ = NULL;
cube_map_ = NULL;
::memset(_has_bits_, 0, sizeof(_has_bits_));
}
Material_TextureGeneration::~Material_TextureGeneration() {
SharedDtor();
}
void Material_TextureGeneration::SharedDtor() {
if (this != default_instance_) {
delete q_plane_;
delete r_plane_;
delete s_plane_;
delete t_plane_;
delete cube_map_;
}
}
void Material_TextureGeneration::SetCachedSize(int size) const {
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const ::google::protobuf::Descriptor* Material_TextureGeneration::descriptor() {
protobuf_AssignDescriptorsOnce();
return Material_TextureGeneration_descriptor_;
}
const Material_TextureGeneration& Material_TextureGeneration::default_instance() {
if (default_instance_ == NULL) protobuf_AddDesc_Material_2eproto();
return *default_instance_;
}
Material_TextureGeneration* Material_TextureGeneration::default_instance_ = NULL;
Material_TextureGeneration* Material_TextureGeneration::New() const {
return new Material_TextureGeneration;
}
void Material_TextureGeneration::Clear() {
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
mode_ = 0;
if (has_q_plane()) {
if (q_plane_ != NULL) q_plane_->::Echo::Resources::Material_TextureGeneration_Plane::Clear();
}
if (has_r_plane()) {
if (r_plane_ != NULL) r_plane_->::Echo::Resources::Material_TextureGeneration_Plane::Clear();
}
if (has_s_plane()) {
if (s_plane_ != NULL) s_plane_->::Echo::Resources::Material_TextureGeneration_Plane::Clear();
}
if (has_t_plane()) {
if (t_plane_ != NULL) t_plane_->::Echo::Resources::Material_TextureGeneration_Plane::Clear();
}
if (has_cube_map()) {
if (cube_map_ != NULL) cube_map_->::Echo::Resources::Material_TextureGeneration_CubeMap::Clear();
}
}
::memset(_has_bits_, 0, sizeof(_has_bits_));
mutable_unknown_fields()->Clear();
}
bool Material_TextureGeneration::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
#define DO_(EXPRESSION) if (!(EXPRESSION)) return false
::google::protobuf::uint32 tag;
while ((tag = input->ReadTag()) != 0) {
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// required .Echo.Resources.Material.TextureGeneration.TextureGenerationModeEnum mode = 1;
case 1: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
int value;
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
input, &value)));
if (::Echo::Resources::Material_TextureGeneration_TextureGenerationModeEnum_IsValid(value)) {
set_mode(static_cast< ::Echo::Resources::Material_TextureGeneration_TextureGenerationModeEnum >(value));
} else {
mutable_unknown_fields()->AddVarint(1, value);
}
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(18)) goto parse_q_plane;
break;
}
// optional .Echo.Resources.Material.TextureGeneration.Plane q_plane = 2;
case 2: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
parse_q_plane:
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_q_plane()));
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(26)) goto parse_r_plane;
break;
}
// optional .Echo.Resources.Material.TextureGeneration.Plane r_plane = 3;
case 3: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
parse_r_plane:
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_r_plane()));
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(34)) goto parse_s_plane;
break;
}
// optional .Echo.Resources.Material.TextureGeneration.Plane s_plane = 4;
case 4: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
parse_s_plane:
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_s_plane()));
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(42)) goto parse_t_plane;
break;
}
// optional .Echo.Resources.Material.TextureGeneration.Plane t_plane = 5;
case 5: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
parse_t_plane:
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_t_plane()));
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(50)) goto parse_cube_map;
break;
}
// optional .Echo.Resources.Material.TextureGeneration.CubeMap cube_map = 6;
case 6: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
parse_cube_map:
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_cube_map()));
} else {
goto handle_uninterpreted;
}
if (input->ExpectAtEnd()) return true;
break;
}
default: {
handle_uninterpreted:
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
return true;
}
DO_(::google::protobuf::internal::WireFormat::SkipField(
input, tag, mutable_unknown_fields()));
break;
}
}
}
return true;
#undef DO_
}
void Material_TextureGeneration::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
// required .Echo.Resources.Material.TextureGeneration.TextureGenerationModeEnum mode = 1;
if (has_mode()) {
::google::protobuf::internal::WireFormatLite::WriteEnum(
1, this->mode(), output);
}
// optional .Echo.Resources.Material.TextureGeneration.Plane q_plane = 2;
if (has_q_plane()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
2, this->q_plane(), output);
}
// optional .Echo.Resources.Material.TextureGeneration.Plane r_plane = 3;
if (has_r_plane()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
3, this->r_plane(), output);
}
// optional .Echo.Resources.Material.TextureGeneration.Plane s_plane = 4;
if (has_s_plane()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
4, this->s_plane(), output);
}
// optional .Echo.Resources.Material.TextureGeneration.Plane t_plane = 5;
if (has_t_plane()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
5, this->t_plane(), output);
}
// optional .Echo.Resources.Material.TextureGeneration.CubeMap cube_map = 6;
if (has_cube_map()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
6, this->cube_map(), output);
}
if (!unknown_fields().empty()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
unknown_fields(), output);
}
}
::google::protobuf::uint8* Material_TextureGeneration::SerializeWithCachedSizesToArray(
::google::protobuf::uint8* target) const {
// required .Echo.Resources.Material.TextureGeneration.TextureGenerationModeEnum mode = 1;
if (has_mode()) {
target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
1, this->mode(), target);
}
// optional .Echo.Resources.Material.TextureGeneration.Plane q_plane = 2;
if (has_q_plane()) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
2, this->q_plane(), target);
}
// optional .Echo.Resources.Material.TextureGeneration.Plane r_plane = 3;
if (has_r_plane()) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
3, this->r_plane(), target);
}
// optional .Echo.Resources.Material.TextureGeneration.Plane s_plane = 4;
if (has_s_plane()) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
4, this->s_plane(), target);
}
// optional .Echo.Resources.Material.TextureGeneration.Plane t_plane = 5;
if (has_t_plane()) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
5, this->t_plane(), target);
}
// optional .Echo.Resources.Material.TextureGeneration.CubeMap cube_map = 6;
if (has_cube_map()) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
6, this->cube_map(), target);
}
if (!unknown_fields().empty()) {
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
unknown_fields(), target);
}
return target;
}
int Material_TextureGeneration::ByteSize() const {
int total_size = 0;
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
// required .Echo.Resources.Material.TextureGeneration.TextureGenerationModeEnum mode = 1;
if (has_mode()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::EnumSize(this->mode());
}
// optional .Echo.Resources.Material.TextureGeneration.Plane q_plane = 2;
if (has_q_plane()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->q_plane());
}
// optional .Echo.Resources.Material.TextureGeneration.Plane r_plane = 3;
if (has_r_plane()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->r_plane());
}
// optional .Echo.Resources.Material.TextureGeneration.Plane s_plane = 4;
if (has_s_plane()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->s_plane());
}
// optional .Echo.Resources.Material.TextureGeneration.Plane t_plane = 5;
if (has_t_plane()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->t_plane());
}
// optional .Echo.Resources.Material.TextureGeneration.CubeMap cube_map = 6;
if (has_cube_map()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->cube_map());
}
}
if (!unknown_fields().empty()) {
total_size +=
::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
unknown_fields());
}
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = total_size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
return total_size;
}
void Material_TextureGeneration::MergeFrom(const ::google::protobuf::Message& from) {
GOOGLE_CHECK_NE(&from, this);
const Material_TextureGeneration* source =
::google::protobuf::internal::dynamic_cast_if_available<const Material_TextureGeneration*>(
&from);
if (source == NULL) {
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
MergeFrom(*source);
}
}
void Material_TextureGeneration::MergeFrom(const Material_TextureGeneration& from) {
GOOGLE_CHECK_NE(&from, this);
if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
if (from.has_mode()) {
set_mode(from.mode());
}
if (from.has_q_plane()) {
mutable_q_plane()->::Echo::Resources::Material_TextureGeneration_Plane::MergeFrom(from.q_plane());
}
if (from.has_r_plane()) {
mutable_r_plane()->::Echo::Resources::Material_TextureGeneration_Plane::MergeFrom(from.r_plane());
}
if (from.has_s_plane()) {
mutable_s_plane()->::Echo::Resources::Material_TextureGeneration_Plane::MergeFrom(from.s_plane());
}
if (from.has_t_plane()) {
mutable_t_plane()->::Echo::Resources::Material_TextureGeneration_Plane::MergeFrom(from.t_plane());
}
if (from.has_cube_map()) {
mutable_cube_map()->::Echo::Resources::Material_TextureGeneration_CubeMap::MergeFrom(from.cube_map());
}
}
mutable_unknown_fields()->MergeFrom(from.unknown_fields());
}
void Material_TextureGeneration::CopyFrom(const ::google::protobuf::Message& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
void Material_TextureGeneration::CopyFrom(const Material_TextureGeneration& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool Material_TextureGeneration::IsInitialized() const {
if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false;
if (has_q_plane()) {
if (!this->q_plane().IsInitialized()) return false;
}
if (has_r_plane()) {
if (!this->r_plane().IsInitialized()) return false;
}
if (has_s_plane()) {
if (!this->s_plane().IsInitialized()) return false;
}
if (has_t_plane()) {
if (!this->t_plane().IsInitialized()) return false;
}
if (has_cube_map()) {
if (!this->cube_map().IsInitialized()) return false;
}
return true;
}
void Material_TextureGeneration::Swap(Material_TextureGeneration* other) {
if (other != this) {
std::swap(mode_, other->mode_);
std::swap(q_plane_, other->q_plane_);
std::swap(r_plane_, other->r_plane_);
std::swap(s_plane_, other->s_plane_);
std::swap(t_plane_, other->t_plane_);
std::swap(cube_map_, other->cube_map_);
std::swap(_has_bits_[0], other->_has_bits_[0]);
_unknown_fields_.Swap(&other->_unknown_fields_);
std::swap(_cached_size_, other->_cached_size_);
}
}
::google::protobuf::Metadata Material_TextureGeneration::GetMetadata() const {
protobuf_AssignDescriptorsOnce();
::google::protobuf::Metadata metadata;
metadata.descriptor = Material_TextureGeneration_descriptor_;
metadata.reflection = Material_TextureGeneration_reflection_;
return metadata;
}
// -------------------------------------------------------------------
const ::google::protobuf::EnumDescriptor* Material_DepthFunction_DepthFunctionEnum_descriptor() {
protobuf_AssignDescriptorsOnce();
return Material_DepthFunction_DepthFunctionEnum_descriptor_;
}
bool Material_DepthFunction_DepthFunctionEnum_IsValid(int value) {
switch(value) {
case 0:
case 1:
case 2:
case 3:
case 4:
case 5:
case 6:
case 7:
return true;
default:
return false;
}
}
#ifndef _MSC_VER
const Material_DepthFunction_DepthFunctionEnum Material_DepthFunction::NEVER;
const Material_DepthFunction_DepthFunctionEnum Material_DepthFunction::LESS;
const Material_DepthFunction_DepthFunctionEnum Material_DepthFunction::EQUAL;
const Material_DepthFunction_DepthFunctionEnum Material_DepthFunction::LESS_OR_EQUAL;
const Material_DepthFunction_DepthFunctionEnum Material_DepthFunction::GREATER;
const Material_DepthFunction_DepthFunctionEnum Material_DepthFunction::NOT_EQUAL;
const Material_DepthFunction_DepthFunctionEnum Material_DepthFunction::GREATER_OR_EQUAL;
const Material_DepthFunction_DepthFunctionEnum Material_DepthFunction::ALWAYS;
const Material_DepthFunction_DepthFunctionEnum Material_DepthFunction::DepthFunctionEnum_MIN;
const Material_DepthFunction_DepthFunctionEnum Material_DepthFunction::DepthFunctionEnum_MAX;
const int Material_DepthFunction::DepthFunctionEnum_ARRAYSIZE;
#endif // _MSC_VER
#ifndef _MSC_VER
#endif // !_MSC_VER
Material_DepthFunction::Material_DepthFunction()
: ::google::protobuf::Message() {
SharedCtor();
}
void Material_DepthFunction::InitAsDefaultInstance() {
}
Material_DepthFunction::Material_DepthFunction(const Material_DepthFunction& from)
: ::google::protobuf::Message() {
SharedCtor();
MergeFrom(from);
}
void Material_DepthFunction::SharedCtor() {
_cached_size_ = 0;
::memset(_has_bits_, 0, sizeof(_has_bits_));
}
Material_DepthFunction::~Material_DepthFunction() {
SharedDtor();
}
void Material_DepthFunction::SharedDtor() {
if (this != default_instance_) {
}
}
void Material_DepthFunction::SetCachedSize(int size) const {
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const ::google::protobuf::Descriptor* Material_DepthFunction::descriptor() {
protobuf_AssignDescriptorsOnce();
return Material_DepthFunction_descriptor_;
}
const Material_DepthFunction& Material_DepthFunction::default_instance() {
if (default_instance_ == NULL) protobuf_AddDesc_Material_2eproto();
return *default_instance_;
}
Material_DepthFunction* Material_DepthFunction::default_instance_ = NULL;
Material_DepthFunction* Material_DepthFunction::New() const {
return new Material_DepthFunction;
}
void Material_DepthFunction::Clear() {
::memset(_has_bits_, 0, sizeof(_has_bits_));
mutable_unknown_fields()->Clear();
}
bool Material_DepthFunction::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
#define DO_(EXPRESSION) if (!(EXPRESSION)) return false
::google::protobuf::uint32 tag;
while ((tag = input->ReadTag()) != 0) {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
return true;
}
DO_(::google::protobuf::internal::WireFormat::SkipField(
input, tag, mutable_unknown_fields()));
}
return true;
#undef DO_
}
void Material_DepthFunction::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
if (!unknown_fields().empty()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
unknown_fields(), output);
}
}
::google::protobuf::uint8* Material_DepthFunction::SerializeWithCachedSizesToArray(
::google::protobuf::uint8* target) const {
if (!unknown_fields().empty()) {
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
unknown_fields(), target);
}
return target;
}
int Material_DepthFunction::ByteSize() const {
int total_size = 0;
if (!unknown_fields().empty()) {
total_size +=
::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
unknown_fields());
}
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = total_size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
return total_size;
}
void Material_DepthFunction::MergeFrom(const ::google::protobuf::Message& from) {
GOOGLE_CHECK_NE(&from, this);
const Material_DepthFunction* source =
::google::protobuf::internal::dynamic_cast_if_available<const Material_DepthFunction*>(
&from);
if (source == NULL) {
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
MergeFrom(*source);
}
}
void Material_DepthFunction::MergeFrom(const Material_DepthFunction& from) {
GOOGLE_CHECK_NE(&from, this);
mutable_unknown_fields()->MergeFrom(from.unknown_fields());
}
void Material_DepthFunction::CopyFrom(const ::google::protobuf::Message& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
void Material_DepthFunction::CopyFrom(const Material_DepthFunction& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool Material_DepthFunction::IsInitialized() const {
return true;
}
void Material_DepthFunction::Swap(Material_DepthFunction* other) {
if (other != this) {
_unknown_fields_.Swap(&other->_unknown_fields_);
std::swap(_cached_size_, other->_cached_size_);
}
}
::google::protobuf::Metadata Material_DepthFunction::GetMetadata() const {
protobuf_AssignDescriptorsOnce();
::google::protobuf::Metadata metadata;
metadata.descriptor = Material_DepthFunction_descriptor_;
metadata.reflection = Material_DepthFunction_reflection_;
return metadata;
}
// -------------------------------------------------------------------
const ::google::protobuf::EnumDescriptor* Material_AlphaTestFunction_AlphaTestFunctionEnum_descriptor() {
protobuf_AssignDescriptorsOnce();
return Material_AlphaTestFunction_AlphaTestFunctionEnum_descriptor_;
}
bool Material_AlphaTestFunction_AlphaTestFunctionEnum_IsValid(int value) {
switch(value) {
case 0:
case 1:
case 2:
case 3:
case 4:
case 5:
case 6:
case 7:
return true;
default:
return false;
}
}
#ifndef _MSC_VER
const Material_AlphaTestFunction_AlphaTestFunctionEnum Material_AlphaTestFunction::NEVER;
const Material_AlphaTestFunction_AlphaTestFunctionEnum Material_AlphaTestFunction::LESS;
const Material_AlphaTestFunction_AlphaTestFunctionEnum Material_AlphaTestFunction::EQUAL;
const Material_AlphaTestFunction_AlphaTestFunctionEnum Material_AlphaTestFunction::LESS_OR_EQUAL;
const Material_AlphaTestFunction_AlphaTestFunctionEnum Material_AlphaTestFunction::GREATER;
const Material_AlphaTestFunction_AlphaTestFunctionEnum Material_AlphaTestFunction::NOT_EQUAL;
const Material_AlphaTestFunction_AlphaTestFunctionEnum Material_AlphaTestFunction::GREATER_OR_EQUAL;
const Material_AlphaTestFunction_AlphaTestFunctionEnum Material_AlphaTestFunction::ALWAYS;
const Material_AlphaTestFunction_AlphaTestFunctionEnum Material_AlphaTestFunction::AlphaTestFunctionEnum_MIN;
const Material_AlphaTestFunction_AlphaTestFunctionEnum Material_AlphaTestFunction::AlphaTestFunctionEnum_MAX;
const int Material_AlphaTestFunction::AlphaTestFunctionEnum_ARRAYSIZE;
#endif // _MSC_VER
#ifndef _MSC_VER
#endif // !_MSC_VER
Material_AlphaTestFunction::Material_AlphaTestFunction()
: ::google::protobuf::Message() {
SharedCtor();
}
void Material_AlphaTestFunction::InitAsDefaultInstance() {
}
Material_AlphaTestFunction::Material_AlphaTestFunction(const Material_AlphaTestFunction& from)
: ::google::protobuf::Message() {
SharedCtor();
MergeFrom(from);
}
void Material_AlphaTestFunction::SharedCtor() {
_cached_size_ = 0;
::memset(_has_bits_, 0, sizeof(_has_bits_));
}
Material_AlphaTestFunction::~Material_AlphaTestFunction() {
SharedDtor();
}
void Material_AlphaTestFunction::SharedDtor() {
if (this != default_instance_) {
}
}
void Material_AlphaTestFunction::SetCachedSize(int size) const {
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const ::google::protobuf::Descriptor* Material_AlphaTestFunction::descriptor() {
protobuf_AssignDescriptorsOnce();
return Material_AlphaTestFunction_descriptor_;
}
const Material_AlphaTestFunction& Material_AlphaTestFunction::default_instance() {
if (default_instance_ == NULL) protobuf_AddDesc_Material_2eproto();
return *default_instance_;
}
Material_AlphaTestFunction* Material_AlphaTestFunction::default_instance_ = NULL;
Material_AlphaTestFunction* Material_AlphaTestFunction::New() const {
return new Material_AlphaTestFunction;
}
void Material_AlphaTestFunction::Clear() {
::memset(_has_bits_, 0, sizeof(_has_bits_));
mutable_unknown_fields()->Clear();
}
bool Material_AlphaTestFunction::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
#define DO_(EXPRESSION) if (!(EXPRESSION)) return false
::google::protobuf::uint32 tag;
while ((tag = input->ReadTag()) != 0) {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
return true;
}
DO_(::google::protobuf::internal::WireFormat::SkipField(
input, tag, mutable_unknown_fields()));
}
return true;
#undef DO_
}
void Material_AlphaTestFunction::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
if (!unknown_fields().empty()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
unknown_fields(), output);
}
}
::google::protobuf::uint8* Material_AlphaTestFunction::SerializeWithCachedSizesToArray(
::google::protobuf::uint8* target) const {
if (!unknown_fields().empty()) {
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
unknown_fields(), target);
}
return target;
}
int Material_AlphaTestFunction::ByteSize() const {
int total_size = 0;
if (!unknown_fields().empty()) {
total_size +=
::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
unknown_fields());
}
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = total_size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
return total_size;
}
void Material_AlphaTestFunction::MergeFrom(const ::google::protobuf::Message& from) {
GOOGLE_CHECK_NE(&from, this);
const Material_AlphaTestFunction* source =
::google::protobuf::internal::dynamic_cast_if_available<const Material_AlphaTestFunction*>(
&from);
if (source == NULL) {
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
MergeFrom(*source);
}
}
void Material_AlphaTestFunction::MergeFrom(const Material_AlphaTestFunction& from) {
GOOGLE_CHECK_NE(&from, this);
mutable_unknown_fields()->MergeFrom(from.unknown_fields());
}
void Material_AlphaTestFunction::CopyFrom(const ::google::protobuf::Message& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
void Material_AlphaTestFunction::CopyFrom(const Material_AlphaTestFunction& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool Material_AlphaTestFunction::IsInitialized() const {
return true;
}
void Material_AlphaTestFunction::Swap(Material_AlphaTestFunction* other) {
if (other != this) {
_unknown_fields_.Swap(&other->_unknown_fields_);
std::swap(_cached_size_, other->_cached_size_);
}
}
::google::protobuf::Metadata Material_AlphaTestFunction::GetMetadata() const {
protobuf_AssignDescriptorsOnce();
::google::protobuf::Metadata metadata;
metadata.descriptor = Material_AlphaTestFunction_descriptor_;
metadata.reflection = Material_AlphaTestFunction_reflection_;
return metadata;
}
// -------------------------------------------------------------------
const ::google::protobuf::EnumDescriptor* Material_CullMode_CullModeEnum_descriptor() {
protobuf_AssignDescriptorsOnce();
return Material_CullMode_CullModeEnum_descriptor_;
}
bool Material_CullMode_CullModeEnum_IsValid(int value) {
switch(value) {
case 0:
case 1:
case 2:
return true;
default:
return false;
}
}
#ifndef _MSC_VER
const Material_CullMode_CullModeEnum Material_CullMode::NONE;
const Material_CullMode_CullModeEnum Material_CullMode::FRONT;
const Material_CullMode_CullModeEnum Material_CullMode::BACK;
const Material_CullMode_CullModeEnum Material_CullMode::CullModeEnum_MIN;
const Material_CullMode_CullModeEnum Material_CullMode::CullModeEnum_MAX;
const int Material_CullMode::CullModeEnum_ARRAYSIZE;
#endif // _MSC_VER
#ifndef _MSC_VER
#endif // !_MSC_VER
Material_CullMode::Material_CullMode()
: ::google::protobuf::Message() {
SharedCtor();
}
void Material_CullMode::InitAsDefaultInstance() {
}
Material_CullMode::Material_CullMode(const Material_CullMode& from)
: ::google::protobuf::Message() {
SharedCtor();
MergeFrom(from);
}
void Material_CullMode::SharedCtor() {
_cached_size_ = 0;
::memset(_has_bits_, 0, sizeof(_has_bits_));
}
Material_CullMode::~Material_CullMode() {
SharedDtor();
}
void Material_CullMode::SharedDtor() {
if (this != default_instance_) {
}
}
void Material_CullMode::SetCachedSize(int size) const {
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const ::google::protobuf::Descriptor* Material_CullMode::descriptor() {
protobuf_AssignDescriptorsOnce();
return Material_CullMode_descriptor_;
}
const Material_CullMode& Material_CullMode::default_instance() {
if (default_instance_ == NULL) protobuf_AddDesc_Material_2eproto();
return *default_instance_;
}
Material_CullMode* Material_CullMode::default_instance_ = NULL;
Material_CullMode* Material_CullMode::New() const {
return new Material_CullMode;
}
void Material_CullMode::Clear() {
::memset(_has_bits_, 0, sizeof(_has_bits_));
mutable_unknown_fields()->Clear();
}
bool Material_CullMode::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
#define DO_(EXPRESSION) if (!(EXPRESSION)) return false
::google::protobuf::uint32 tag;
while ((tag = input->ReadTag()) != 0) {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
return true;
}
DO_(::google::protobuf::internal::WireFormat::SkipField(
input, tag, mutable_unknown_fields()));
}
return true;
#undef DO_
}
void Material_CullMode::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
if (!unknown_fields().empty()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
unknown_fields(), output);
}
}
::google::protobuf::uint8* Material_CullMode::SerializeWithCachedSizesToArray(
::google::protobuf::uint8* target) const {
if (!unknown_fields().empty()) {
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
unknown_fields(), target);
}
return target;
}
int Material_CullMode::ByteSize() const {
int total_size = 0;
if (!unknown_fields().empty()) {
total_size +=
::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
unknown_fields());
}
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = total_size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
return total_size;
}
void Material_CullMode::MergeFrom(const ::google::protobuf::Message& from) {
GOOGLE_CHECK_NE(&from, this);
const Material_CullMode* source =
::google::protobuf::internal::dynamic_cast_if_available<const Material_CullMode*>(
&from);
if (source == NULL) {
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
MergeFrom(*source);
}
}
void Material_CullMode::MergeFrom(const Material_CullMode& from) {
GOOGLE_CHECK_NE(&from, this);
mutable_unknown_fields()->MergeFrom(from.unknown_fields());
}
void Material_CullMode::CopyFrom(const ::google::protobuf::Message& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
void Material_CullMode::CopyFrom(const Material_CullMode& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool Material_CullMode::IsInitialized() const {
return true;
}
void Material_CullMode::Swap(Material_CullMode* other) {
if (other != this) {
_unknown_fields_.Swap(&other->_unknown_fields_);
std::swap(_cached_size_, other->_cached_size_);
}
}
::google::protobuf::Metadata Material_CullMode::GetMetadata() const {
protobuf_AssignDescriptorsOnce();
::google::protobuf::Metadata metadata;
metadata.descriptor = Material_CullMode_descriptor_;
metadata.reflection = Material_CullMode_reflection_;
return metadata;
}
// -------------------------------------------------------------------
#ifndef _MSC_VER
const int Material_StripFrame::kUFieldNumber;
const int Material_StripFrame::kVFieldNumber;
const int Material_StripFrame::kFrameTimeFieldNumber;
#endif // !_MSC_VER
Material_StripFrame::Material_StripFrame()
: ::google::protobuf::Message() {
SharedCtor();
}
void Material_StripFrame::InitAsDefaultInstance() {
}
Material_StripFrame::Material_StripFrame(const Material_StripFrame& from)
: ::google::protobuf::Message() {
SharedCtor();
MergeFrom(from);
}
void Material_StripFrame::SharedCtor() {
_cached_size_ = 0;
u_ = 0;
v_ = 0;
frame_time_ = 0;
::memset(_has_bits_, 0, sizeof(_has_bits_));
}
Material_StripFrame::~Material_StripFrame() {
SharedDtor();
}
void Material_StripFrame::SharedDtor() {
if (this != default_instance_) {
}
}
void Material_StripFrame::SetCachedSize(int size) const {
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const ::google::protobuf::Descriptor* Material_StripFrame::descriptor() {
protobuf_AssignDescriptorsOnce();
return Material_StripFrame_descriptor_;
}
const Material_StripFrame& Material_StripFrame::default_instance() {
if (default_instance_ == NULL) protobuf_AddDesc_Material_2eproto();
return *default_instance_;
}
Material_StripFrame* Material_StripFrame::default_instance_ = NULL;
Material_StripFrame* Material_StripFrame::New() const {
return new Material_StripFrame;
}
void Material_StripFrame::Clear() {
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
u_ = 0;
v_ = 0;
frame_time_ = 0;
}
::memset(_has_bits_, 0, sizeof(_has_bits_));
mutable_unknown_fields()->Clear();
}
bool Material_StripFrame::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
#define DO_(EXPRESSION) if (!(EXPRESSION)) return false
::google::protobuf::uint32 tag;
while ((tag = input->ReadTag()) != 0) {
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// required float u = 1;
case 1: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_FIXED32) {
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
input, &u_)));
set_has_u();
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(21)) goto parse_v;
break;
}
// required float v = 2;
case 2: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_FIXED32) {
parse_v:
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
input, &v_)));
set_has_v();
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(29)) goto parse_frame_time;
break;
}
// required float frame_time = 3;
case 3: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_FIXED32) {
parse_frame_time:
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
input, &frame_time_)));
set_has_frame_time();
} else {
goto handle_uninterpreted;
}
if (input->ExpectAtEnd()) return true;
break;
}
default: {
handle_uninterpreted:
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
return true;
}
DO_(::google::protobuf::internal::WireFormat::SkipField(
input, tag, mutable_unknown_fields()));
break;
}
}
}
return true;
#undef DO_
}
void Material_StripFrame::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
// required float u = 1;
if (has_u()) {
::google::protobuf::internal::WireFormatLite::WriteFloat(1, this->u(), output);
}
// required float v = 2;
if (has_v()) {
::google::protobuf::internal::WireFormatLite::WriteFloat(2, this->v(), output);
}
// required float frame_time = 3;
if (has_frame_time()) {
::google::protobuf::internal::WireFormatLite::WriteFloat(3, this->frame_time(), output);
}
if (!unknown_fields().empty()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
unknown_fields(), output);
}
}
::google::protobuf::uint8* Material_StripFrame::SerializeWithCachedSizesToArray(
::google::protobuf::uint8* target) const {
// required float u = 1;
if (has_u()) {
target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(1, this->u(), target);
}
// required float v = 2;
if (has_v()) {
target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(2, this->v(), target);
}
// required float frame_time = 3;
if (has_frame_time()) {
target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(3, this->frame_time(), target);
}
if (!unknown_fields().empty()) {
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
unknown_fields(), target);
}
return target;
}
int Material_StripFrame::ByteSize() const {
int total_size = 0;
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
// required float u = 1;
if (has_u()) {
total_size += 1 + 4;
}
// required float v = 2;
if (has_v()) {
total_size += 1 + 4;
}
// required float frame_time = 3;
if (has_frame_time()) {
total_size += 1 + 4;
}
}
if (!unknown_fields().empty()) {
total_size +=
::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
unknown_fields());
}
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = total_size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
return total_size;
}
void Material_StripFrame::MergeFrom(const ::google::protobuf::Message& from) {
GOOGLE_CHECK_NE(&from, this);
const Material_StripFrame* source =
::google::protobuf::internal::dynamic_cast_if_available<const Material_StripFrame*>(
&from);
if (source == NULL) {
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
MergeFrom(*source);
}
}
void Material_StripFrame::MergeFrom(const Material_StripFrame& from) {
GOOGLE_CHECK_NE(&from, this);
if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
if (from.has_u()) {
set_u(from.u());
}
if (from.has_v()) {
set_v(from.v());
}
if (from.has_frame_time()) {
set_frame_time(from.frame_time());
}
}
mutable_unknown_fields()->MergeFrom(from.unknown_fields());
}
void Material_StripFrame::CopyFrom(const ::google::protobuf::Message& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
void Material_StripFrame::CopyFrom(const Material_StripFrame& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool Material_StripFrame::IsInitialized() const {
if ((_has_bits_[0] & 0x00000007) != 0x00000007) return false;
return true;
}
void Material_StripFrame::Swap(Material_StripFrame* other) {
if (other != this) {
std::swap(u_, other->u_);
std::swap(v_, other->v_);
std::swap(frame_time_, other->frame_time_);
std::swap(_has_bits_[0], other->_has_bits_[0]);
_unknown_fields_.Swap(&other->_unknown_fields_);
std::swap(_cached_size_, other->_cached_size_);
}
}
::google::protobuf::Metadata Material_StripFrame::GetMetadata() const {
protobuf_AssignDescriptorsOnce();
::google::protobuf::Metadata metadata;
metadata.descriptor = Material_StripFrame_descriptor_;
metadata.reflection = Material_StripFrame_reflection_;
return metadata;
}
// -------------------------------------------------------------------
#ifndef _MSC_VER
const int Material_AutoStripAnimation::kStartFrameFieldNumber;
const int Material_AutoStripAnimation::kFrameCountFieldNumber;
const int Material_AutoStripAnimation::kFrameWidthPercentFieldNumber;
const int Material_AutoStripAnimation::kFrameHeightPercentFieldNumber;
const int Material_AutoStripAnimation::kFrameTimeFieldNumber;
#endif // !_MSC_VER
Material_AutoStripAnimation::Material_AutoStripAnimation()
: ::google::protobuf::Message() {
SharedCtor();
}
void Material_AutoStripAnimation::InitAsDefaultInstance() {
}
Material_AutoStripAnimation::Material_AutoStripAnimation(const Material_AutoStripAnimation& from)
: ::google::protobuf::Message() {
SharedCtor();
MergeFrom(from);
}
void Material_AutoStripAnimation::SharedCtor() {
_cached_size_ = 0;
start_frame_ = 0u;
frame_count_ = 0u;
frame_width_percent_ = 0;
frame_height_percent_ = 0;
frame_time_ = 0;
::memset(_has_bits_, 0, sizeof(_has_bits_));
}
Material_AutoStripAnimation::~Material_AutoStripAnimation() {
SharedDtor();
}
void Material_AutoStripAnimation::SharedDtor() {
if (this != default_instance_) {
}
}
void Material_AutoStripAnimation::SetCachedSize(int size) const {
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const ::google::protobuf::Descriptor* Material_AutoStripAnimation::descriptor() {
protobuf_AssignDescriptorsOnce();
return Material_AutoStripAnimation_descriptor_;
}
const Material_AutoStripAnimation& Material_AutoStripAnimation::default_instance() {
if (default_instance_ == NULL) protobuf_AddDesc_Material_2eproto();
return *default_instance_;
}
Material_AutoStripAnimation* Material_AutoStripAnimation::default_instance_ = NULL;
Material_AutoStripAnimation* Material_AutoStripAnimation::New() const {
return new Material_AutoStripAnimation;
}
void Material_AutoStripAnimation::Clear() {
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
start_frame_ = 0u;
frame_count_ = 0u;
frame_width_percent_ = 0;
frame_height_percent_ = 0;
frame_time_ = 0;
}
::memset(_has_bits_, 0, sizeof(_has_bits_));
mutable_unknown_fields()->Clear();
}
bool Material_AutoStripAnimation::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
#define DO_(EXPRESSION) if (!(EXPRESSION)) return false
::google::protobuf::uint32 tag;
while ((tag = input->ReadTag()) != 0) {
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// required uint32 start_frame = 1;
case 1: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
input, &start_frame_)));
set_has_start_frame();
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(16)) goto parse_frame_count;
break;
}
// required uint32 frame_count = 2;
case 2: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
parse_frame_count:
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
input, &frame_count_)));
set_has_frame_count();
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(29)) goto parse_frame_width_percent;
break;
}
// required float frame_width_percent = 3;
case 3: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_FIXED32) {
parse_frame_width_percent:
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
input, &frame_width_percent_)));
set_has_frame_width_percent();
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(37)) goto parse_frame_height_percent;
break;
}
// required float frame_height_percent = 4;
case 4: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_FIXED32) {
parse_frame_height_percent:
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
input, &frame_height_percent_)));
set_has_frame_height_percent();
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(45)) goto parse_frame_time;
break;
}
// required float frame_time = 5;
case 5: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_FIXED32) {
parse_frame_time:
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
input, &frame_time_)));
set_has_frame_time();
} else {
goto handle_uninterpreted;
}
if (input->ExpectAtEnd()) return true;
break;
}
default: {
handle_uninterpreted:
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
return true;
}
DO_(::google::protobuf::internal::WireFormat::SkipField(
input, tag, mutable_unknown_fields()));
break;
}
}
}
return true;
#undef DO_
}
void Material_AutoStripAnimation::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
// required uint32 start_frame = 1;
if (has_start_frame()) {
::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->start_frame(), output);
}
// required uint32 frame_count = 2;
if (has_frame_count()) {
::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->frame_count(), output);
}
// required float frame_width_percent = 3;
if (has_frame_width_percent()) {
::google::protobuf::internal::WireFormatLite::WriteFloat(3, this->frame_width_percent(), output);
}
// required float frame_height_percent = 4;
if (has_frame_height_percent()) {
::google::protobuf::internal::WireFormatLite::WriteFloat(4, this->frame_height_percent(), output);
}
// required float frame_time = 5;
if (has_frame_time()) {
::google::protobuf::internal::WireFormatLite::WriteFloat(5, this->frame_time(), output);
}
if (!unknown_fields().empty()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
unknown_fields(), output);
}
}
::google::protobuf::uint8* Material_AutoStripAnimation::SerializeWithCachedSizesToArray(
::google::protobuf::uint8* target) const {
// required uint32 start_frame = 1;
if (has_start_frame()) {
target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->start_frame(), target);
}
// required uint32 frame_count = 2;
if (has_frame_count()) {
target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->frame_count(), target);
}
// required float frame_width_percent = 3;
if (has_frame_width_percent()) {
target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(3, this->frame_width_percent(), target);
}
// required float frame_height_percent = 4;
if (has_frame_height_percent()) {
target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(4, this->frame_height_percent(), target);
}
// required float frame_time = 5;
if (has_frame_time()) {
target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(5, this->frame_time(), target);
}
if (!unknown_fields().empty()) {
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
unknown_fields(), target);
}
return target;
}
int Material_AutoStripAnimation::ByteSize() const {
int total_size = 0;
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
// required uint32 start_frame = 1;
if (has_start_frame()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::UInt32Size(
this->start_frame());
}
// required uint32 frame_count = 2;
if (has_frame_count()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::UInt32Size(
this->frame_count());
}
// required float frame_width_percent = 3;
if (has_frame_width_percent()) {
total_size += 1 + 4;
}
// required float frame_height_percent = 4;
if (has_frame_height_percent()) {
total_size += 1 + 4;
}
// required float frame_time = 5;
if (has_frame_time()) {
total_size += 1 + 4;
}
}
if (!unknown_fields().empty()) {
total_size +=
::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
unknown_fields());
}
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = total_size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
return total_size;
}
void Material_AutoStripAnimation::MergeFrom(const ::google::protobuf::Message& from) {
GOOGLE_CHECK_NE(&from, this);
const Material_AutoStripAnimation* source =
::google::protobuf::internal::dynamic_cast_if_available<const Material_AutoStripAnimation*>(
&from);
if (source == NULL) {
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
MergeFrom(*source);
}
}
void Material_AutoStripAnimation::MergeFrom(const Material_AutoStripAnimation& from) {
GOOGLE_CHECK_NE(&from, this);
if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
if (from.has_start_frame()) {
set_start_frame(from.start_frame());
}
if (from.has_frame_count()) {
set_frame_count(from.frame_count());
}
if (from.has_frame_width_percent()) {
set_frame_width_percent(from.frame_width_percent());
}
if (from.has_frame_height_percent()) {
set_frame_height_percent(from.frame_height_percent());
}
if (from.has_frame_time()) {
set_frame_time(from.frame_time());
}
}
mutable_unknown_fields()->MergeFrom(from.unknown_fields());
}
void Material_AutoStripAnimation::CopyFrom(const ::google::protobuf::Message& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
void Material_AutoStripAnimation::CopyFrom(const Material_AutoStripAnimation& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool Material_AutoStripAnimation::IsInitialized() const {
if ((_has_bits_[0] & 0x0000001f) != 0x0000001f) return false;
return true;
}
void Material_AutoStripAnimation::Swap(Material_AutoStripAnimation* other) {
if (other != this) {
std::swap(start_frame_, other->start_frame_);
std::swap(frame_count_, other->frame_count_);
std::swap(frame_width_percent_, other->frame_width_percent_);
std::swap(frame_height_percent_, other->frame_height_percent_);
std::swap(frame_time_, other->frame_time_);
std::swap(_has_bits_[0], other->_has_bits_[0]);
_unknown_fields_.Swap(&other->_unknown_fields_);
std::swap(_cached_size_, other->_cached_size_);
}
}
::google::protobuf::Metadata Material_AutoStripAnimation::GetMetadata() const {
protobuf_AssignDescriptorsOnce();
::google::protobuf::Metadata metadata;
metadata.descriptor = Material_AutoStripAnimation_descriptor_;
metadata.reflection = Material_AutoStripAnimation_reflection_;
return metadata;
}
// -------------------------------------------------------------------
#ifndef _MSC_VER
const int Material_StripAnimation::kFrameFieldNumber;
const int Material_StripAnimation::kLoopFieldNumber;
const int Material_StripAnimation::kRandomiseFieldNumber;
const int Material_StripAnimation::kUseTransformFieldNumber;
const int Material_StripAnimation::kAutoFramesFieldNumber;
#endif // !_MSC_VER
Material_StripAnimation::Material_StripAnimation()
: ::google::protobuf::Message() {
SharedCtor();
}
void Material_StripAnimation::InitAsDefaultInstance() {
auto_frames_ = const_cast< ::Echo::Resources::Material_AutoStripAnimation*>(&::Echo::Resources::Material_AutoStripAnimation::default_instance());
}
Material_StripAnimation::Material_StripAnimation(const Material_StripAnimation& from)
: ::google::protobuf::Message() {
SharedCtor();
MergeFrom(from);
}
void Material_StripAnimation::SharedCtor() {
_cached_size_ = 0;
loop_ = false;
randomise_ = false;
use_transform_ = false;
auto_frames_ = NULL;
::memset(_has_bits_, 0, sizeof(_has_bits_));
}
Material_StripAnimation::~Material_StripAnimation() {
SharedDtor();
}
void Material_StripAnimation::SharedDtor() {
if (this != default_instance_) {
delete auto_frames_;
}
}
void Material_StripAnimation::SetCachedSize(int size) const {
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const ::google::protobuf::Descriptor* Material_StripAnimation::descriptor() {
protobuf_AssignDescriptorsOnce();
return Material_StripAnimation_descriptor_;
}
const Material_StripAnimation& Material_StripAnimation::default_instance() {
if (default_instance_ == NULL) protobuf_AddDesc_Material_2eproto();
return *default_instance_;
}
Material_StripAnimation* Material_StripAnimation::default_instance_ = NULL;
Material_StripAnimation* Material_StripAnimation::New() const {
return new Material_StripAnimation;
}
void Material_StripAnimation::Clear() {
if (_has_bits_[1 / 32] & (0xffu << (1 % 32))) {
loop_ = false;
randomise_ = false;
use_transform_ = false;
if (has_auto_frames()) {
if (auto_frames_ != NULL) auto_frames_->::Echo::Resources::Material_AutoStripAnimation::Clear();
}
}
frame_.Clear();
::memset(_has_bits_, 0, sizeof(_has_bits_));
mutable_unknown_fields()->Clear();
}
bool Material_StripAnimation::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
#define DO_(EXPRESSION) if (!(EXPRESSION)) return false
::google::protobuf::uint32 tag;
while ((tag = input->ReadTag()) != 0) {
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// repeated .Echo.Resources.Material.StripFrame frame = 1;
case 1: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
parse_frame:
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, add_frame()));
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(10)) goto parse_frame;
if (input->ExpectTag(16)) goto parse_loop;
break;
}
// optional bool loop = 2;
case 2: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
parse_loop:
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
input, &loop_)));
set_has_loop();
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(24)) goto parse_randomise;
break;
}
// optional bool randomise = 3;
case 3: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
parse_randomise:
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
input, &randomise_)));
set_has_randomise();
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(32)) goto parse_use_transform;
break;
}
// optional bool use_transform = 4;
case 4: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
parse_use_transform:
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
input, &use_transform_)));
set_has_use_transform();
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(42)) goto parse_auto_frames;
break;
}
// optional .Echo.Resources.Material.AutoStripAnimation auto_frames = 5;
case 5: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
parse_auto_frames:
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_auto_frames()));
} else {
goto handle_uninterpreted;
}
if (input->ExpectAtEnd()) return true;
break;
}
default: {
handle_uninterpreted:
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
return true;
}
DO_(::google::protobuf::internal::WireFormat::SkipField(
input, tag, mutable_unknown_fields()));
break;
}
}
}
return true;
#undef DO_
}
void Material_StripAnimation::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
// repeated .Echo.Resources.Material.StripFrame frame = 1;
for (int i = 0; i < this->frame_size(); i++) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1, this->frame(i), output);
}
// optional bool loop = 2;
if (has_loop()) {
::google::protobuf::internal::WireFormatLite::WriteBool(2, this->loop(), output);
}
// optional bool randomise = 3;
if (has_randomise()) {
::google::protobuf::internal::WireFormatLite::WriteBool(3, this->randomise(), output);
}
// optional bool use_transform = 4;
if (has_use_transform()) {
::google::protobuf::internal::WireFormatLite::WriteBool(4, this->use_transform(), output);
}
// optional .Echo.Resources.Material.AutoStripAnimation auto_frames = 5;
if (has_auto_frames()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
5, this->auto_frames(), output);
}
if (!unknown_fields().empty()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
unknown_fields(), output);
}
}
::google::protobuf::uint8* Material_StripAnimation::SerializeWithCachedSizesToArray(
::google::protobuf::uint8* target) const {
// repeated .Echo.Resources.Material.StripFrame frame = 1;
for (int i = 0; i < this->frame_size(); i++) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
1, this->frame(i), target);
}
// optional bool loop = 2;
if (has_loop()) {
target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->loop(), target);
}
// optional bool randomise = 3;
if (has_randomise()) {
target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(3, this->randomise(), target);
}
// optional bool use_transform = 4;
if (has_use_transform()) {
target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(4, this->use_transform(), target);
}
// optional .Echo.Resources.Material.AutoStripAnimation auto_frames = 5;
if (has_auto_frames()) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
5, this->auto_frames(), target);
}
if (!unknown_fields().empty()) {
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
unknown_fields(), target);
}
return target;
}
int Material_StripAnimation::ByteSize() const {
int total_size = 0;
if (_has_bits_[1 / 32] & (0xffu << (1 % 32))) {
// optional bool loop = 2;
if (has_loop()) {
total_size += 1 + 1;
}
// optional bool randomise = 3;
if (has_randomise()) {
total_size += 1 + 1;
}
// optional bool use_transform = 4;
if (has_use_transform()) {
total_size += 1 + 1;
}
// optional .Echo.Resources.Material.AutoStripAnimation auto_frames = 5;
if (has_auto_frames()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->auto_frames());
}
}
// repeated .Echo.Resources.Material.StripFrame frame = 1;
total_size += 1 * this->frame_size();
for (int i = 0; i < this->frame_size(); i++) {
total_size +=
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->frame(i));
}
if (!unknown_fields().empty()) {
total_size +=
::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
unknown_fields());
}
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = total_size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
return total_size;
}
void Material_StripAnimation::MergeFrom(const ::google::protobuf::Message& from) {
GOOGLE_CHECK_NE(&from, this);
const Material_StripAnimation* source =
::google::protobuf::internal::dynamic_cast_if_available<const Material_StripAnimation*>(
&from);
if (source == NULL) {
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
MergeFrom(*source);
}
}
void Material_StripAnimation::MergeFrom(const Material_StripAnimation& from) {
GOOGLE_CHECK_NE(&from, this);
frame_.MergeFrom(from.frame_);
if (from._has_bits_[1 / 32] & (0xffu << (1 % 32))) {
if (from.has_loop()) {
set_loop(from.loop());
}
if (from.has_randomise()) {
set_randomise(from.randomise());
}
if (from.has_use_transform()) {
set_use_transform(from.use_transform());
}
if (from.has_auto_frames()) {
mutable_auto_frames()->::Echo::Resources::Material_AutoStripAnimation::MergeFrom(from.auto_frames());
}
}
mutable_unknown_fields()->MergeFrom(from.unknown_fields());
}
void Material_StripAnimation::CopyFrom(const ::google::protobuf::Message& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
void Material_StripAnimation::CopyFrom(const Material_StripAnimation& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool Material_StripAnimation::IsInitialized() const {
for (int i = 0; i < frame_size(); i++) {
if (!this->frame(i).IsInitialized()) return false;
}
if (has_auto_frames()) {
if (!this->auto_frames().IsInitialized()) return false;
}
return true;
}
void Material_StripAnimation::Swap(Material_StripAnimation* other) {
if (other != this) {
frame_.Swap(&other->frame_);
std::swap(loop_, other->loop_);
std::swap(randomise_, other->randomise_);
std::swap(use_transform_, other->use_transform_);
std::swap(auto_frames_, other->auto_frames_);
std::swap(_has_bits_[0], other->_has_bits_[0]);
_unknown_fields_.Swap(&other->_unknown_fields_);
std::swap(_cached_size_, other->_cached_size_);
}
}
::google::protobuf::Metadata Material_StripAnimation::GetMetadata() const {
protobuf_AssignDescriptorsOnce();
::google::protobuf::Metadata metadata;
metadata.descriptor = Material_StripAnimation_descriptor_;
metadata.reflection = Material_StripAnimation_reflection_;
return metadata;
}
// -------------------------------------------------------------------
#ifndef _MSC_VER
const int Material_TextureUnit::kBlendModeFieldNumber;
const int Material_TextureUnit::kWrapUFieldNumber;
const int Material_TextureUnit::kWrapVFieldNumber;
const int Material_TextureUnit::kMinFilterFieldNumber;
const int Material_TextureUnit::kMagFilterFieldNumber;
const int Material_TextureUnit::kImageFieldNumber;
const int Material_TextureUnit::kTexGenFieldNumber;
const int Material_TextureUnit::kUScrollFieldNumber;
const int Material_TextureUnit::kVScrollFieldNumber;
const int Material_TextureUnit::kUScaleFieldNumber;
const int Material_TextureUnit::kVScaleFieldNumber;
const int Material_TextureUnit::kXRotFieldNumber;
const int Material_TextureUnit::kYRotFieldNumber;
const int Material_TextureUnit::kZRotFieldNumber;
const int Material_TextureUnit::kStripAnimationFieldNumber;
const int Material_TextureUnit::kAlphaBlendFieldNumber;
const int Material_TextureUnit::kColourBlendFieldNumber;
const int Material_TextureUnit::kMemoryModeFieldNumber;
const int Material_TextureUnit::kTextureCoordinateSetFieldNumber;
const int Material_TextureUnit::kManualColourFieldNumber;
#endif // !_MSC_VER
Material_TextureUnit::Material_TextureUnit()
: ::google::protobuf::Message() {
SharedCtor();
}
void Material_TextureUnit::InitAsDefaultInstance() {
tex_gen_ = const_cast< ::Echo::Resources::Material_TextureGeneration*>(&::Echo::Resources::Material_TextureGeneration::default_instance());
strip_animation_ = const_cast< ::Echo::Resources::Material_StripAnimation*>(&::Echo::Resources::Material_StripAnimation::default_instance());
alpha_blend_ = const_cast< ::Echo::Resources::Material_Blend*>(&::Echo::Resources::Material_Blend::default_instance());
colour_blend_ = const_cast< ::Echo::Resources::Material_Blend*>(&::Echo::Resources::Material_Blend::default_instance());
manual_colour_ = const_cast< ::Echo::Resources::Material_Colour*>(&::Echo::Resources::Material_Colour::default_instance());
}
Material_TextureUnit::Material_TextureUnit(const Material_TextureUnit& from)
: ::google::protobuf::Message() {
SharedCtor();
MergeFrom(from);
}
void Material_TextureUnit::SharedCtor() {
_cached_size_ = 0;
blend_mode_ = 0;
wrap_u_ = 0;
wrap_v_ = 0;
min_filter_ = 0;
mag_filter_ = 0;
image_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
tex_gen_ = NULL;
u_scroll_ = 0;
v_scroll_ = 0;
u_scale_ = 0;
v_scale_ = 0;
x_rot_ = 0;
y_rot_ = 0;
z_rot_ = 0;
strip_animation_ = NULL;
alpha_blend_ = NULL;
colour_blend_ = NULL;
memory_mode_ = 0;
texture_coordinate_set_ = 0u;
manual_colour_ = NULL;
::memset(_has_bits_, 0, sizeof(_has_bits_));
}
Material_TextureUnit::~Material_TextureUnit() {
SharedDtor();
}
void Material_TextureUnit::SharedDtor() {
if (image_ != &::google::protobuf::internal::kEmptyString) {
delete image_;
}
if (this != default_instance_) {
delete tex_gen_;
delete strip_animation_;
delete alpha_blend_;
delete colour_blend_;
delete manual_colour_;
}
}
void Material_TextureUnit::SetCachedSize(int size) const {
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const ::google::protobuf::Descriptor* Material_TextureUnit::descriptor() {
protobuf_AssignDescriptorsOnce();
return Material_TextureUnit_descriptor_;
}
const Material_TextureUnit& Material_TextureUnit::default_instance() {
if (default_instance_ == NULL) protobuf_AddDesc_Material_2eproto();
return *default_instance_;
}
Material_TextureUnit* Material_TextureUnit::default_instance_ = NULL;
Material_TextureUnit* Material_TextureUnit::New() const {
return new Material_TextureUnit;
}
void Material_TextureUnit::Clear() {
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
blend_mode_ = 0;
wrap_u_ = 0;
wrap_v_ = 0;
min_filter_ = 0;
mag_filter_ = 0;
if (has_image()) {
if (image_ != &::google::protobuf::internal::kEmptyString) {
image_->clear();
}
}
if (has_tex_gen()) {
if (tex_gen_ != NULL) tex_gen_->::Echo::Resources::Material_TextureGeneration::Clear();
}
u_scroll_ = 0;
}
if (_has_bits_[8 / 32] & (0xffu << (8 % 32))) {
v_scroll_ = 0;
u_scale_ = 0;
v_scale_ = 0;
x_rot_ = 0;
y_rot_ = 0;
z_rot_ = 0;
if (has_strip_animation()) {
if (strip_animation_ != NULL) strip_animation_->::Echo::Resources::Material_StripAnimation::Clear();
}
if (has_alpha_blend()) {
if (alpha_blend_ != NULL) alpha_blend_->::Echo::Resources::Material_Blend::Clear();
}
}
if (_has_bits_[16 / 32] & (0xffu << (16 % 32))) {
if (has_colour_blend()) {
if (colour_blend_ != NULL) colour_blend_->::Echo::Resources::Material_Blend::Clear();
}
memory_mode_ = 0;
texture_coordinate_set_ = 0u;
if (has_manual_colour()) {
if (manual_colour_ != NULL) manual_colour_->::Echo::Resources::Material_Colour::Clear();
}
}
::memset(_has_bits_, 0, sizeof(_has_bits_));
mutable_unknown_fields()->Clear();
}
bool Material_TextureUnit::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
#define DO_(EXPRESSION) if (!(EXPRESSION)) return false
::google::protobuf::uint32 tag;
while ((tag = input->ReadTag()) != 0) {
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// optional .Echo.Resources.Material.BlendMode.BlendModeEnum blend_mode = 1;
case 1: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
int value;
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
input, &value)));
if (::Echo::Resources::Material_BlendMode_BlendModeEnum_IsValid(value)) {
set_blend_mode(static_cast< ::Echo::Resources::Material_BlendMode_BlendModeEnum >(value));
} else {
mutable_unknown_fields()->AddVarint(1, value);
}
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(16)) goto parse_wrap_u;
break;
}
// optional .Echo.Resources.Material.TextureWrapMode.TextureWrapModeEnum wrap_u = 2;
case 2: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
parse_wrap_u:
int value;
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
input, &value)));
if (::Echo::Resources::Material_TextureWrapMode_TextureWrapModeEnum_IsValid(value)) {
set_wrap_u(static_cast< ::Echo::Resources::Material_TextureWrapMode_TextureWrapModeEnum >(value));
} else {
mutable_unknown_fields()->AddVarint(2, value);
}
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(24)) goto parse_wrap_v;
break;
}
// optional .Echo.Resources.Material.TextureWrapMode.TextureWrapModeEnum wrap_v = 3;
case 3: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
parse_wrap_v:
int value;
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
input, &value)));
if (::Echo::Resources::Material_TextureWrapMode_TextureWrapModeEnum_IsValid(value)) {
set_wrap_v(static_cast< ::Echo::Resources::Material_TextureWrapMode_TextureWrapModeEnum >(value));
} else {
mutable_unknown_fields()->AddVarint(3, value);
}
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(32)) goto parse_min_filter;
break;
}
// optional .Echo.Resources.Material.TextureFilter.TextureFilterEnum min_filter = 4;
case 4: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
parse_min_filter:
int value;
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
input, &value)));
if (::Echo::Resources::Material_TextureFilter_TextureFilterEnum_IsValid(value)) {
set_min_filter(static_cast< ::Echo::Resources::Material_TextureFilter_TextureFilterEnum >(value));
} else {
mutable_unknown_fields()->AddVarint(4, value);
}
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(40)) goto parse_mag_filter;
break;
}
// optional .Echo.Resources.Material.TextureFilter.TextureFilterEnum mag_filter = 5;
case 5: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
parse_mag_filter:
int value;
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
input, &value)));
if (::Echo::Resources::Material_TextureFilter_TextureFilterEnum_IsValid(value)) {
set_mag_filter(static_cast< ::Echo::Resources::Material_TextureFilter_TextureFilterEnum >(value));
} else {
mutable_unknown_fields()->AddVarint(5, value);
}
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(50)) goto parse_image;
break;
}
// optional string image = 6;
case 6: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
parse_image:
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_image()));
::google::protobuf::internal::WireFormat::VerifyUTF8String(
this->image().data(), this->image().length(),
::google::protobuf::internal::WireFormat::PARSE);
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(58)) goto parse_tex_gen;
break;
}
// optional .Echo.Resources.Material.TextureGeneration tex_gen = 7;
case 7: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
parse_tex_gen:
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_tex_gen()));
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(69)) goto parse_u_scroll;
break;
}
// optional float u_scroll = 8;
case 8: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_FIXED32) {
parse_u_scroll:
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
input, &u_scroll_)));
set_has_u_scroll();
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(77)) goto parse_v_scroll;
break;
}
// optional float v_scroll = 9;
case 9: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_FIXED32) {
parse_v_scroll:
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
input, &v_scroll_)));
set_has_v_scroll();
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(85)) goto parse_u_scale;
break;
}
// optional float u_scale = 10;
case 10: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_FIXED32) {
parse_u_scale:
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
input, &u_scale_)));
set_has_u_scale();
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(93)) goto parse_v_scale;
break;
}
// optional float v_scale = 11;
case 11: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_FIXED32) {
parse_v_scale:
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
input, &v_scale_)));
set_has_v_scale();
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(101)) goto parse_x_rot;
break;
}
// optional float x_rot = 12;
case 12: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_FIXED32) {
parse_x_rot:
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
input, &x_rot_)));
set_has_x_rot();
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(109)) goto parse_y_rot;
break;
}
// optional float y_rot = 13;
case 13: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_FIXED32) {
parse_y_rot:
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
input, &y_rot_)));
set_has_y_rot();
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(117)) goto parse_z_rot;
break;
}
// optional float z_rot = 14;
case 14: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_FIXED32) {
parse_z_rot:
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
input, &z_rot_)));
set_has_z_rot();
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(122)) goto parse_strip_animation;
break;
}
// optional .Echo.Resources.Material.StripAnimation strip_animation = 15;
case 15: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
parse_strip_animation:
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_strip_animation()));
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(130)) goto parse_alpha_blend;
break;
}
// optional .Echo.Resources.Material.Blend alpha_blend = 16;
case 16: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
parse_alpha_blend:
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_alpha_blend()));
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(138)) goto parse_colour_blend;
break;
}
// optional .Echo.Resources.Material.Blend colour_blend = 17;
case 17: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
parse_colour_blend:
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_colour_blend()));
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(144)) goto parse_memory_mode;
break;
}
// optional .Echo.Resources.Material.MemoryMode.MemoryModeEnum memory_mode = 18;
case 18: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
parse_memory_mode:
int value;
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
input, &value)));
if (::Echo::Resources::Material_MemoryMode_MemoryModeEnum_IsValid(value)) {
set_memory_mode(static_cast< ::Echo::Resources::Material_MemoryMode_MemoryModeEnum >(value));
} else {
mutable_unknown_fields()->AddVarint(18, value);
}
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(152)) goto parse_texture_coordinate_set;
break;
}
// optional uint32 texture_coordinate_set = 19;
case 19: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
parse_texture_coordinate_set:
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
input, &texture_coordinate_set_)));
set_has_texture_coordinate_set();
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(162)) goto parse_manual_colour;
break;
}
// optional .Echo.Resources.Material.Colour manual_colour = 20;
case 20: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
parse_manual_colour:
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_manual_colour()));
} else {
goto handle_uninterpreted;
}
if (input->ExpectAtEnd()) return true;
break;
}
default: {
handle_uninterpreted:
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
return true;
}
DO_(::google::protobuf::internal::WireFormat::SkipField(
input, tag, mutable_unknown_fields()));
break;
}
}
}
return true;
#undef DO_
}
void Material_TextureUnit::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
// optional .Echo.Resources.Material.BlendMode.BlendModeEnum blend_mode = 1;
if (has_blend_mode()) {
::google::protobuf::internal::WireFormatLite::WriteEnum(
1, this->blend_mode(), output);
}
// optional .Echo.Resources.Material.TextureWrapMode.TextureWrapModeEnum wrap_u = 2;
if (has_wrap_u()) {
::google::protobuf::internal::WireFormatLite::WriteEnum(
2, this->wrap_u(), output);
}
// optional .Echo.Resources.Material.TextureWrapMode.TextureWrapModeEnum wrap_v = 3;
if (has_wrap_v()) {
::google::protobuf::internal::WireFormatLite::WriteEnum(
3, this->wrap_v(), output);
}
// optional .Echo.Resources.Material.TextureFilter.TextureFilterEnum min_filter = 4;
if (has_min_filter()) {
::google::protobuf::internal::WireFormatLite::WriteEnum(
4, this->min_filter(), output);
}
// optional .Echo.Resources.Material.TextureFilter.TextureFilterEnum mag_filter = 5;
if (has_mag_filter()) {
::google::protobuf::internal::WireFormatLite::WriteEnum(
5, this->mag_filter(), output);
}
// optional string image = 6;
if (has_image()) {
::google::protobuf::internal::WireFormat::VerifyUTF8String(
this->image().data(), this->image().length(),
::google::protobuf::internal::WireFormat::SERIALIZE);
::google::protobuf::internal::WireFormatLite::WriteString(
6, this->image(), output);
}
// optional .Echo.Resources.Material.TextureGeneration tex_gen = 7;
if (has_tex_gen()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
7, this->tex_gen(), output);
}
// optional float u_scroll = 8;
if (has_u_scroll()) {
::google::protobuf::internal::WireFormatLite::WriteFloat(8, this->u_scroll(), output);
}
// optional float v_scroll = 9;
if (has_v_scroll()) {
::google::protobuf::internal::WireFormatLite::WriteFloat(9, this->v_scroll(), output);
}
// optional float u_scale = 10;
if (has_u_scale()) {
::google::protobuf::internal::WireFormatLite::WriteFloat(10, this->u_scale(), output);
}
// optional float v_scale = 11;
if (has_v_scale()) {
::google::protobuf::internal::WireFormatLite::WriteFloat(11, this->v_scale(), output);
}
// optional float x_rot = 12;
if (has_x_rot()) {
::google::protobuf::internal::WireFormatLite::WriteFloat(12, this->x_rot(), output);
}
// optional float y_rot = 13;
if (has_y_rot()) {
::google::protobuf::internal::WireFormatLite::WriteFloat(13, this->y_rot(), output);
}
// optional float z_rot = 14;
if (has_z_rot()) {
::google::protobuf::internal::WireFormatLite::WriteFloat(14, this->z_rot(), output);
}
// optional .Echo.Resources.Material.StripAnimation strip_animation = 15;
if (has_strip_animation()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
15, this->strip_animation(), output);
}
// optional .Echo.Resources.Material.Blend alpha_blend = 16;
if (has_alpha_blend()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
16, this->alpha_blend(), output);
}
// optional .Echo.Resources.Material.Blend colour_blend = 17;
if (has_colour_blend()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
17, this->colour_blend(), output);
}
// optional .Echo.Resources.Material.MemoryMode.MemoryModeEnum memory_mode = 18;
if (has_memory_mode()) {
::google::protobuf::internal::WireFormatLite::WriteEnum(
18, this->memory_mode(), output);
}
// optional uint32 texture_coordinate_set = 19;
if (has_texture_coordinate_set()) {
::google::protobuf::internal::WireFormatLite::WriteUInt32(19, this->texture_coordinate_set(), output);
}
// optional .Echo.Resources.Material.Colour manual_colour = 20;
if (has_manual_colour()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
20, this->manual_colour(), output);
}
if (!unknown_fields().empty()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
unknown_fields(), output);
}
}
::google::protobuf::uint8* Material_TextureUnit::SerializeWithCachedSizesToArray(
::google::protobuf::uint8* target) const {
// optional .Echo.Resources.Material.BlendMode.BlendModeEnum blend_mode = 1;
if (has_blend_mode()) {
target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
1, this->blend_mode(), target);
}
// optional .Echo.Resources.Material.TextureWrapMode.TextureWrapModeEnum wrap_u = 2;
if (has_wrap_u()) {
target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
2, this->wrap_u(), target);
}
// optional .Echo.Resources.Material.TextureWrapMode.TextureWrapModeEnum wrap_v = 3;
if (has_wrap_v()) {
target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
3, this->wrap_v(), target);
}
// optional .Echo.Resources.Material.TextureFilter.TextureFilterEnum min_filter = 4;
if (has_min_filter()) {
target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
4, this->min_filter(), target);
}
// optional .Echo.Resources.Material.TextureFilter.TextureFilterEnum mag_filter = 5;
if (has_mag_filter()) {
target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
5, this->mag_filter(), target);
}
// optional string image = 6;
if (has_image()) {
::google::protobuf::internal::WireFormat::VerifyUTF8String(
this->image().data(), this->image().length(),
::google::protobuf::internal::WireFormat::SERIALIZE);
target =
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
6, this->image(), target);
}
// optional .Echo.Resources.Material.TextureGeneration tex_gen = 7;
if (has_tex_gen()) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
7, this->tex_gen(), target);
}
// optional float u_scroll = 8;
if (has_u_scroll()) {
target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(8, this->u_scroll(), target);
}
// optional float v_scroll = 9;
if (has_v_scroll()) {
target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(9, this->v_scroll(), target);
}
// optional float u_scale = 10;
if (has_u_scale()) {
target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(10, this->u_scale(), target);
}
// optional float v_scale = 11;
if (has_v_scale()) {
target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(11, this->v_scale(), target);
}
// optional float x_rot = 12;
if (has_x_rot()) {
target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(12, this->x_rot(), target);
}
// optional float y_rot = 13;
if (has_y_rot()) {
target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(13, this->y_rot(), target);
}
// optional float z_rot = 14;
if (has_z_rot()) {
target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(14, this->z_rot(), target);
}
// optional .Echo.Resources.Material.StripAnimation strip_animation = 15;
if (has_strip_animation()) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
15, this->strip_animation(), target);
}
// optional .Echo.Resources.Material.Blend alpha_blend = 16;
if (has_alpha_blend()) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
16, this->alpha_blend(), target);
}
// optional .Echo.Resources.Material.Blend colour_blend = 17;
if (has_colour_blend()) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
17, this->colour_blend(), target);
}
// optional .Echo.Resources.Material.MemoryMode.MemoryModeEnum memory_mode = 18;
if (has_memory_mode()) {
target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
18, this->memory_mode(), target);
}
// optional uint32 texture_coordinate_set = 19;
if (has_texture_coordinate_set()) {
target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(19, this->texture_coordinate_set(), target);
}
// optional .Echo.Resources.Material.Colour manual_colour = 20;
if (has_manual_colour()) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
20, this->manual_colour(), target);
}
if (!unknown_fields().empty()) {
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
unknown_fields(), target);
}
return target;
}
int Material_TextureUnit::ByteSize() const {
int total_size = 0;
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
// optional .Echo.Resources.Material.BlendMode.BlendModeEnum blend_mode = 1;
if (has_blend_mode()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::EnumSize(this->blend_mode());
}
// optional .Echo.Resources.Material.TextureWrapMode.TextureWrapModeEnum wrap_u = 2;
if (has_wrap_u()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::EnumSize(this->wrap_u());
}
// optional .Echo.Resources.Material.TextureWrapMode.TextureWrapModeEnum wrap_v = 3;
if (has_wrap_v()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::EnumSize(this->wrap_v());
}
// optional .Echo.Resources.Material.TextureFilter.TextureFilterEnum min_filter = 4;
if (has_min_filter()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::EnumSize(this->min_filter());
}
// optional .Echo.Resources.Material.TextureFilter.TextureFilterEnum mag_filter = 5;
if (has_mag_filter()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::EnumSize(this->mag_filter());
}
// optional string image = 6;
if (has_image()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::StringSize(
this->image());
}
// optional .Echo.Resources.Material.TextureGeneration tex_gen = 7;
if (has_tex_gen()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->tex_gen());
}
// optional float u_scroll = 8;
if (has_u_scroll()) {
total_size += 1 + 4;
}
}
if (_has_bits_[8 / 32] & (0xffu << (8 % 32))) {
// optional float v_scroll = 9;
if (has_v_scroll()) {
total_size += 1 + 4;
}
// optional float u_scale = 10;
if (has_u_scale()) {
total_size += 1 + 4;
}
// optional float v_scale = 11;
if (has_v_scale()) {
total_size += 1 + 4;
}
// optional float x_rot = 12;
if (has_x_rot()) {
total_size += 1 + 4;
}
// optional float y_rot = 13;
if (has_y_rot()) {
total_size += 1 + 4;
}
// optional float z_rot = 14;
if (has_z_rot()) {
total_size += 1 + 4;
}
// optional .Echo.Resources.Material.StripAnimation strip_animation = 15;
if (has_strip_animation()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->strip_animation());
}
// optional .Echo.Resources.Material.Blend alpha_blend = 16;
if (has_alpha_blend()) {
total_size += 2 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->alpha_blend());
}
}
if (_has_bits_[16 / 32] & (0xffu << (16 % 32))) {
// optional .Echo.Resources.Material.Blend colour_blend = 17;
if (has_colour_blend()) {
total_size += 2 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->colour_blend());
}
// optional .Echo.Resources.Material.MemoryMode.MemoryModeEnum memory_mode = 18;
if (has_memory_mode()) {
total_size += 2 +
::google::protobuf::internal::WireFormatLite::EnumSize(this->memory_mode());
}
// optional uint32 texture_coordinate_set = 19;
if (has_texture_coordinate_set()) {
total_size += 2 +
::google::protobuf::internal::WireFormatLite::UInt32Size(
this->texture_coordinate_set());
}
// optional .Echo.Resources.Material.Colour manual_colour = 20;
if (has_manual_colour()) {
total_size += 2 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->manual_colour());
}
}
if (!unknown_fields().empty()) {
total_size +=
::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
unknown_fields());
}
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = total_size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
return total_size;
}
void Material_TextureUnit::MergeFrom(const ::google::protobuf::Message& from) {
GOOGLE_CHECK_NE(&from, this);
const Material_TextureUnit* source =
::google::protobuf::internal::dynamic_cast_if_available<const Material_TextureUnit*>(
&from);
if (source == NULL) {
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
MergeFrom(*source);
}
}
void Material_TextureUnit::MergeFrom(const Material_TextureUnit& from) {
GOOGLE_CHECK_NE(&from, this);
if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
if (from.has_blend_mode()) {
set_blend_mode(from.blend_mode());
}
if (from.has_wrap_u()) {
set_wrap_u(from.wrap_u());
}
if (from.has_wrap_v()) {
set_wrap_v(from.wrap_v());
}
if (from.has_min_filter()) {
set_min_filter(from.min_filter());
}
if (from.has_mag_filter()) {
set_mag_filter(from.mag_filter());
}
if (from.has_image()) {
set_image(from.image());
}
if (from.has_tex_gen()) {
mutable_tex_gen()->::Echo::Resources::Material_TextureGeneration::MergeFrom(from.tex_gen());
}
if (from.has_u_scroll()) {
set_u_scroll(from.u_scroll());
}
}
if (from._has_bits_[8 / 32] & (0xffu << (8 % 32))) {
if (from.has_v_scroll()) {
set_v_scroll(from.v_scroll());
}
if (from.has_u_scale()) {
set_u_scale(from.u_scale());
}
if (from.has_v_scale()) {
set_v_scale(from.v_scale());
}
if (from.has_x_rot()) {
set_x_rot(from.x_rot());
}
if (from.has_y_rot()) {
set_y_rot(from.y_rot());
}
if (from.has_z_rot()) {
set_z_rot(from.z_rot());
}
if (from.has_strip_animation()) {
mutable_strip_animation()->::Echo::Resources::Material_StripAnimation::MergeFrom(from.strip_animation());
}
if (from.has_alpha_blend()) {
mutable_alpha_blend()->::Echo::Resources::Material_Blend::MergeFrom(from.alpha_blend());
}
}
if (from._has_bits_[16 / 32] & (0xffu << (16 % 32))) {
if (from.has_colour_blend()) {
mutable_colour_blend()->::Echo::Resources::Material_Blend::MergeFrom(from.colour_blend());
}
if (from.has_memory_mode()) {
set_memory_mode(from.memory_mode());
}
if (from.has_texture_coordinate_set()) {
set_texture_coordinate_set(from.texture_coordinate_set());
}
if (from.has_manual_colour()) {
mutable_manual_colour()->::Echo::Resources::Material_Colour::MergeFrom(from.manual_colour());
}
}
mutable_unknown_fields()->MergeFrom(from.unknown_fields());
}
void Material_TextureUnit::CopyFrom(const ::google::protobuf::Message& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
void Material_TextureUnit::CopyFrom(const Material_TextureUnit& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool Material_TextureUnit::IsInitialized() const {
if (has_tex_gen()) {
if (!this->tex_gen().IsInitialized()) return false;
}
if (has_strip_animation()) {
if (!this->strip_animation().IsInitialized()) return false;
}
if (has_alpha_blend()) {
if (!this->alpha_blend().IsInitialized()) return false;
}
if (has_colour_blend()) {
if (!this->colour_blend().IsInitialized()) return false;
}
return true;
}
void Material_TextureUnit::Swap(Material_TextureUnit* other) {
if (other != this) {
std::swap(blend_mode_, other->blend_mode_);
std::swap(wrap_u_, other->wrap_u_);
std::swap(wrap_v_, other->wrap_v_);
std::swap(min_filter_, other->min_filter_);
std::swap(mag_filter_, other->mag_filter_);
std::swap(image_, other->image_);
std::swap(tex_gen_, other->tex_gen_);
std::swap(u_scroll_, other->u_scroll_);
std::swap(v_scroll_, other->v_scroll_);
std::swap(u_scale_, other->u_scale_);
std::swap(v_scale_, other->v_scale_);
std::swap(x_rot_, other->x_rot_);
std::swap(y_rot_, other->y_rot_);
std::swap(z_rot_, other->z_rot_);
std::swap(strip_animation_, other->strip_animation_);
std::swap(alpha_blend_, other->alpha_blend_);
std::swap(colour_blend_, other->colour_blend_);
std::swap(memory_mode_, other->memory_mode_);
std::swap(texture_coordinate_set_, other->texture_coordinate_set_);
std::swap(manual_colour_, other->manual_colour_);
std::swap(_has_bits_[0], other->_has_bits_[0]);
_unknown_fields_.Swap(&other->_unknown_fields_);
std::swap(_cached_size_, other->_cached_size_);
}
}
::google::protobuf::Metadata Material_TextureUnit::GetMetadata() const {
protobuf_AssignDescriptorsOnce();
::google::protobuf::Metadata metadata;
metadata.descriptor = Material_TextureUnit_descriptor_;
metadata.reflection = Material_TextureUnit_reflection_;
return metadata;
}
// -------------------------------------------------------------------
#ifndef _MSC_VER
const int Material_ShaderProgram::kFragmentShaderFieldNumber;
const int Material_ShaderProgram::kVertexShaderFieldNumber;
const int Material_ShaderProgram::kMatrixVariableFieldNumber;
#endif // !_MSC_VER
Material_ShaderProgram::Material_ShaderProgram()
: ::google::protobuf::Message() {
SharedCtor();
}
void Material_ShaderProgram::InitAsDefaultInstance() {
}
Material_ShaderProgram::Material_ShaderProgram(const Material_ShaderProgram& from)
: ::google::protobuf::Message() {
SharedCtor();
MergeFrom(from);
}
void Material_ShaderProgram::SharedCtor() {
_cached_size_ = 0;
matrix_variable_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
::memset(_has_bits_, 0, sizeof(_has_bits_));
}
Material_ShaderProgram::~Material_ShaderProgram() {
SharedDtor();
}
void Material_ShaderProgram::SharedDtor() {
if (matrix_variable_ != &::google::protobuf::internal::kEmptyString) {
delete matrix_variable_;
}
if (this != default_instance_) {
}
}
void Material_ShaderProgram::SetCachedSize(int size) const {
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const ::google::protobuf::Descriptor* Material_ShaderProgram::descriptor() {
protobuf_AssignDescriptorsOnce();
return Material_ShaderProgram_descriptor_;
}
const Material_ShaderProgram& Material_ShaderProgram::default_instance() {
if (default_instance_ == NULL) protobuf_AddDesc_Material_2eproto();
return *default_instance_;
}
Material_ShaderProgram* Material_ShaderProgram::default_instance_ = NULL;
Material_ShaderProgram* Material_ShaderProgram::New() const {
return new Material_ShaderProgram;
}
void Material_ShaderProgram::Clear() {
if (_has_bits_[2 / 32] & (0xffu << (2 % 32))) {
if (has_matrix_variable()) {
if (matrix_variable_ != &::google::protobuf::internal::kEmptyString) {
matrix_variable_->clear();
}
}
}
fragment_shader_.Clear();
vertex_shader_.Clear();
::memset(_has_bits_, 0, sizeof(_has_bits_));
mutable_unknown_fields()->Clear();
}
bool Material_ShaderProgram::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
#define DO_(EXPRESSION) if (!(EXPRESSION)) return false
::google::protobuf::uint32 tag;
while ((tag = input->ReadTag()) != 0) {
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// repeated string fragment_shader = 1;
case 1: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
parse_fragment_shader:
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->add_fragment_shader()));
::google::protobuf::internal::WireFormat::VerifyUTF8String(
this->fragment_shader(this->fragment_shader_size() - 1).data(),
this->fragment_shader(this->fragment_shader_size() - 1).length(),
::google::protobuf::internal::WireFormat::PARSE);
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(10)) goto parse_fragment_shader;
if (input->ExpectTag(18)) goto parse_vertex_shader;
break;
}
// repeated string vertex_shader = 2;
case 2: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
parse_vertex_shader:
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->add_vertex_shader()));
::google::protobuf::internal::WireFormat::VerifyUTF8String(
this->vertex_shader(this->vertex_shader_size() - 1).data(),
this->vertex_shader(this->vertex_shader_size() - 1).length(),
::google::protobuf::internal::WireFormat::PARSE);
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(18)) goto parse_vertex_shader;
if (input->ExpectTag(26)) goto parse_matrix_variable;
break;
}
// optional string matrix_variable = 3;
case 3: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
parse_matrix_variable:
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_matrix_variable()));
::google::protobuf::internal::WireFormat::VerifyUTF8String(
this->matrix_variable().data(), this->matrix_variable().length(),
::google::protobuf::internal::WireFormat::PARSE);
} else {
goto handle_uninterpreted;
}
if (input->ExpectAtEnd()) return true;
break;
}
default: {
handle_uninterpreted:
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
return true;
}
DO_(::google::protobuf::internal::WireFormat::SkipField(
input, tag, mutable_unknown_fields()));
break;
}
}
}
return true;
#undef DO_
}
void Material_ShaderProgram::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
// repeated string fragment_shader = 1;
for (int i = 0; i < this->fragment_shader_size(); i++) {
::google::protobuf::internal::WireFormat::VerifyUTF8String(
this->fragment_shader(i).data(), this->fragment_shader(i).length(),
::google::protobuf::internal::WireFormat::SERIALIZE);
::google::protobuf::internal::WireFormatLite::WriteString(
1, this->fragment_shader(i), output);
}
// repeated string vertex_shader = 2;
for (int i = 0; i < this->vertex_shader_size(); i++) {
::google::protobuf::internal::WireFormat::VerifyUTF8String(
this->vertex_shader(i).data(), this->vertex_shader(i).length(),
::google::protobuf::internal::WireFormat::SERIALIZE);
::google::protobuf::internal::WireFormatLite::WriteString(
2, this->vertex_shader(i), output);
}
// optional string matrix_variable = 3;
if (has_matrix_variable()) {
::google::protobuf::internal::WireFormat::VerifyUTF8String(
this->matrix_variable().data(), this->matrix_variable().length(),
::google::protobuf::internal::WireFormat::SERIALIZE);
::google::protobuf::internal::WireFormatLite::WriteString(
3, this->matrix_variable(), output);
}
if (!unknown_fields().empty()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
unknown_fields(), output);
}
}
::google::protobuf::uint8* Material_ShaderProgram::SerializeWithCachedSizesToArray(
::google::protobuf::uint8* target) const {
// repeated string fragment_shader = 1;
for (int i = 0; i < this->fragment_shader_size(); i++) {
::google::protobuf::internal::WireFormat::VerifyUTF8String(
this->fragment_shader(i).data(), this->fragment_shader(i).length(),
::google::protobuf::internal::WireFormat::SERIALIZE);
target = ::google::protobuf::internal::WireFormatLite::
WriteStringToArray(1, this->fragment_shader(i), target);
}
// repeated string vertex_shader = 2;
for (int i = 0; i < this->vertex_shader_size(); i++) {
::google::protobuf::internal::WireFormat::VerifyUTF8String(
this->vertex_shader(i).data(), this->vertex_shader(i).length(),
::google::protobuf::internal::WireFormat::SERIALIZE);
target = ::google::protobuf::internal::WireFormatLite::
WriteStringToArray(2, this->vertex_shader(i), target);
}
// optional string matrix_variable = 3;
if (has_matrix_variable()) {
::google::protobuf::internal::WireFormat::VerifyUTF8String(
this->matrix_variable().data(), this->matrix_variable().length(),
::google::protobuf::internal::WireFormat::SERIALIZE);
target =
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
3, this->matrix_variable(), target);
}
if (!unknown_fields().empty()) {
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
unknown_fields(), target);
}
return target;
}
int Material_ShaderProgram::ByteSize() const {
int total_size = 0;
if (_has_bits_[2 / 32] & (0xffu << (2 % 32))) {
// optional string matrix_variable = 3;
if (has_matrix_variable()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::StringSize(
this->matrix_variable());
}
}
// repeated string fragment_shader = 1;
total_size += 1 * this->fragment_shader_size();
for (int i = 0; i < this->fragment_shader_size(); i++) {
total_size += ::google::protobuf::internal::WireFormatLite::StringSize(
this->fragment_shader(i));
}
// repeated string vertex_shader = 2;
total_size += 1 * this->vertex_shader_size();
for (int i = 0; i < this->vertex_shader_size(); i++) {
total_size += ::google::protobuf::internal::WireFormatLite::StringSize(
this->vertex_shader(i));
}
if (!unknown_fields().empty()) {
total_size +=
::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
unknown_fields());
}
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = total_size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
return total_size;
}
void Material_ShaderProgram::MergeFrom(const ::google::protobuf::Message& from) {
GOOGLE_CHECK_NE(&from, this);
const Material_ShaderProgram* source =
::google::protobuf::internal::dynamic_cast_if_available<const Material_ShaderProgram*>(
&from);
if (source == NULL) {
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
MergeFrom(*source);
}
}
void Material_ShaderProgram::MergeFrom(const Material_ShaderProgram& from) {
GOOGLE_CHECK_NE(&from, this);
fragment_shader_.MergeFrom(from.fragment_shader_);
vertex_shader_.MergeFrom(from.vertex_shader_);
if (from._has_bits_[2 / 32] & (0xffu << (2 % 32))) {
if (from.has_matrix_variable()) {
set_matrix_variable(from.matrix_variable());
}
}
mutable_unknown_fields()->MergeFrom(from.unknown_fields());
}
void Material_ShaderProgram::CopyFrom(const ::google::protobuf::Message& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
void Material_ShaderProgram::CopyFrom(const Material_ShaderProgram& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool Material_ShaderProgram::IsInitialized() const {
return true;
}
void Material_ShaderProgram::Swap(Material_ShaderProgram* other) {
if (other != this) {
fragment_shader_.Swap(&other->fragment_shader_);
vertex_shader_.Swap(&other->vertex_shader_);
std::swap(matrix_variable_, other->matrix_variable_);
std::swap(_has_bits_[0], other->_has_bits_[0]);
_unknown_fields_.Swap(&other->_unknown_fields_);
std::swap(_cached_size_, other->_cached_size_);
}
}
::google::protobuf::Metadata Material_ShaderProgram::GetMetadata() const {
protobuf_AssignDescriptorsOnce();
::google::protobuf::Metadata metadata;
metadata.descriptor = Material_ShaderProgram_descriptor_;
metadata.reflection = Material_ShaderProgram_reflection_;
return metadata;
}
// -------------------------------------------------------------------
#ifndef _MSC_VER
const int Material_Pass::kBlendModeFieldNumber;
const int Material_Pass::kDepthFunctionFieldNumber;
const int Material_Pass::kCullModeFieldNumber;
const int Material_Pass::kLightingFieldNumber;
const int Material_Pass::kDepthWriteFieldNumber;
const int Material_Pass::kDepthCheckFieldNumber;
const int Material_Pass::kAmbientFieldNumber;
const int Material_Pass::kDiffuseFieldNumber;
const int Material_Pass::kSpecularFieldNumber;
const int Material_Pass::kEmissiveFieldNumber;
const int Material_Pass::kShininessFieldNumber;
const int Material_Pass::kTextureUnitFieldNumber;
const int Material_Pass::kVertexColourFieldNumber;
const int Material_Pass::kActiveFieldNumber;
const int Material_Pass::kProgramFieldNumber;
const int Material_Pass::kAlphaTestFunctionFieldNumber;
const int Material_Pass::kAlphaTestValueFieldNumber;
#endif // !_MSC_VER
Material_Pass::Material_Pass()
: ::google::protobuf::Message() {
SharedCtor();
}
void Material_Pass::InitAsDefaultInstance() {
ambient_ = const_cast< ::Echo::Resources::Material_Colour*>(&::Echo::Resources::Material_Colour::default_instance());
diffuse_ = const_cast< ::Echo::Resources::Material_Colour*>(&::Echo::Resources::Material_Colour::default_instance());
specular_ = const_cast< ::Echo::Resources::Material_Colour*>(&::Echo::Resources::Material_Colour::default_instance());
emissive_ = const_cast< ::Echo::Resources::Material_Colour*>(&::Echo::Resources::Material_Colour::default_instance());
program_ = const_cast< ::Echo::Resources::Material_ShaderProgram*>(&::Echo::Resources::Material_ShaderProgram::default_instance());
}
Material_Pass::Material_Pass(const Material_Pass& from)
: ::google::protobuf::Message() {
SharedCtor();
MergeFrom(from);
}
void Material_Pass::SharedCtor() {
_cached_size_ = 0;
blend_mode_ = 0;
depth_function_ = 0;
cull_mode_ = 0;
lighting_ = false;
depth_write_ = false;
depth_check_ = false;
ambient_ = NULL;
diffuse_ = NULL;
specular_ = NULL;
emissive_ = NULL;
shininess_ = 0;
vertex_colour_ = false;
active_ = false;
program_ = NULL;
alpha_test_function_ = 0;
alpha_test_value_ = 0;
::memset(_has_bits_, 0, sizeof(_has_bits_));
}
Material_Pass::~Material_Pass() {
SharedDtor();
}
void Material_Pass::SharedDtor() {
if (this != default_instance_) {
delete ambient_;
delete diffuse_;
delete specular_;
delete emissive_;
delete program_;
}
}
void Material_Pass::SetCachedSize(int size) const {
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const ::google::protobuf::Descriptor* Material_Pass::descriptor() {
protobuf_AssignDescriptorsOnce();
return Material_Pass_descriptor_;
}
const Material_Pass& Material_Pass::default_instance() {
if (default_instance_ == NULL) protobuf_AddDesc_Material_2eproto();
return *default_instance_;
}
Material_Pass* Material_Pass::default_instance_ = NULL;
Material_Pass* Material_Pass::New() const {
return new Material_Pass;
}
void Material_Pass::Clear() {
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
blend_mode_ = 0;
depth_function_ = 0;
cull_mode_ = 0;
lighting_ = false;
depth_write_ = false;
depth_check_ = false;
if (has_ambient()) {
if (ambient_ != NULL) ambient_->::Echo::Resources::Material_Colour::Clear();
}
if (has_diffuse()) {
if (diffuse_ != NULL) diffuse_->::Echo::Resources::Material_Colour::Clear();
}
}
if (_has_bits_[8 / 32] & (0xffu << (8 % 32))) {
if (has_specular()) {
if (specular_ != NULL) specular_->::Echo::Resources::Material_Colour::Clear();
}
if (has_emissive()) {
if (emissive_ != NULL) emissive_->::Echo::Resources::Material_Colour::Clear();
}
shininess_ = 0;
vertex_colour_ = false;
active_ = false;
if (has_program()) {
if (program_ != NULL) program_->::Echo::Resources::Material_ShaderProgram::Clear();
}
alpha_test_function_ = 0;
}
if (_has_bits_[16 / 32] & (0xffu << (16 % 32))) {
alpha_test_value_ = 0;
}
texture_unit_.Clear();
::memset(_has_bits_, 0, sizeof(_has_bits_));
mutable_unknown_fields()->Clear();
}
bool Material_Pass::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
#define DO_(EXPRESSION) if (!(EXPRESSION)) return false
::google::protobuf::uint32 tag;
while ((tag = input->ReadTag()) != 0) {
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// optional .Echo.Resources.Material.BlendMode.BlendModeEnum blend_mode = 1;
case 1: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
int value;
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
input, &value)));
if (::Echo::Resources::Material_BlendMode_BlendModeEnum_IsValid(value)) {
set_blend_mode(static_cast< ::Echo::Resources::Material_BlendMode_BlendModeEnum >(value));
} else {
mutable_unknown_fields()->AddVarint(1, value);
}
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(16)) goto parse_depth_function;
break;
}
// optional .Echo.Resources.Material.DepthFunction.DepthFunctionEnum depth_function = 2;
case 2: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
parse_depth_function:
int value;
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
input, &value)));
if (::Echo::Resources::Material_DepthFunction_DepthFunctionEnum_IsValid(value)) {
set_depth_function(static_cast< ::Echo::Resources::Material_DepthFunction_DepthFunctionEnum >(value));
} else {
mutable_unknown_fields()->AddVarint(2, value);
}
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(24)) goto parse_cull_mode;
break;
}
// optional .Echo.Resources.Material.CullMode.CullModeEnum cull_mode = 3;
case 3: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
parse_cull_mode:
int value;
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
input, &value)));
if (::Echo::Resources::Material_CullMode_CullModeEnum_IsValid(value)) {
set_cull_mode(static_cast< ::Echo::Resources::Material_CullMode_CullModeEnum >(value));
} else {
mutable_unknown_fields()->AddVarint(3, value);
}
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(32)) goto parse_lighting;
break;
}
// optional bool lighting = 4;
case 4: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
parse_lighting:
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
input, &lighting_)));
set_has_lighting();
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(40)) goto parse_depth_write;
break;
}
// optional bool depth_write = 5;
case 5: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
parse_depth_write:
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
input, &depth_write_)));
set_has_depth_write();
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(48)) goto parse_depth_check;
break;
}
// optional bool depth_check = 6;
case 6: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
parse_depth_check:
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
input, &depth_check_)));
set_has_depth_check();
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(58)) goto parse_ambient;
break;
}
// optional .Echo.Resources.Material.Colour ambient = 7;
case 7: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
parse_ambient:
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_ambient()));
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(66)) goto parse_diffuse;
break;
}
// optional .Echo.Resources.Material.Colour diffuse = 8;
case 8: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
parse_diffuse:
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_diffuse()));
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(74)) goto parse_specular;
break;
}
// optional .Echo.Resources.Material.Colour specular = 9;
case 9: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
parse_specular:
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_specular()));
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(82)) goto parse_emissive;
break;
}
// optional .Echo.Resources.Material.Colour emissive = 10;
case 10: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
parse_emissive:
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_emissive()));
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(93)) goto parse_shininess;
break;
}
// optional float shininess = 11;
case 11: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_FIXED32) {
parse_shininess:
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
input, &shininess_)));
set_has_shininess();
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(98)) goto parse_texture_unit;
break;
}
// repeated .Echo.Resources.Material.TextureUnit texture_unit = 12;
case 12: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
parse_texture_unit:
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, add_texture_unit()));
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(98)) goto parse_texture_unit;
if (input->ExpectTag(104)) goto parse_vertex_colour;
break;
}
// optional bool vertex_colour = 13;
case 13: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
parse_vertex_colour:
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
input, &vertex_colour_)));
set_has_vertex_colour();
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(112)) goto parse_active;
break;
}
// optional bool active = 14;
case 14: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
parse_active:
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
input, &active_)));
set_has_active();
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(122)) goto parse_program;
break;
}
// optional .Echo.Resources.Material.ShaderProgram program = 15;
case 15: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
parse_program:
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_program()));
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(128)) goto parse_alpha_test_function;
break;
}
// optional .Echo.Resources.Material.AlphaTestFunction.AlphaTestFunctionEnum alpha_test_function = 16;
case 16: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
parse_alpha_test_function:
int value;
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
input, &value)));
if (::Echo::Resources::Material_AlphaTestFunction_AlphaTestFunctionEnum_IsValid(value)) {
set_alpha_test_function(static_cast< ::Echo::Resources::Material_AlphaTestFunction_AlphaTestFunctionEnum >(value));
} else {
mutable_unknown_fields()->AddVarint(16, value);
}
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(141)) goto parse_alpha_test_value;
break;
}
// optional float alpha_test_value = 17;
case 17: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_FIXED32) {
parse_alpha_test_value:
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
input, &alpha_test_value_)));
set_has_alpha_test_value();
} else {
goto handle_uninterpreted;
}
if (input->ExpectAtEnd()) return true;
break;
}
default: {
handle_uninterpreted:
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
return true;
}
DO_(::google::protobuf::internal::WireFormat::SkipField(
input, tag, mutable_unknown_fields()));
break;
}
}
}
return true;
#undef DO_
}
void Material_Pass::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
// optional .Echo.Resources.Material.BlendMode.BlendModeEnum blend_mode = 1;
if (has_blend_mode()) {
::google::protobuf::internal::WireFormatLite::WriteEnum(
1, this->blend_mode(), output);
}
// optional .Echo.Resources.Material.DepthFunction.DepthFunctionEnum depth_function = 2;
if (has_depth_function()) {
::google::protobuf::internal::WireFormatLite::WriteEnum(
2, this->depth_function(), output);
}
// optional .Echo.Resources.Material.CullMode.CullModeEnum cull_mode = 3;
if (has_cull_mode()) {
::google::protobuf::internal::WireFormatLite::WriteEnum(
3, this->cull_mode(), output);
}
// optional bool lighting = 4;
if (has_lighting()) {
::google::protobuf::internal::WireFormatLite::WriteBool(4, this->lighting(), output);
}
// optional bool depth_write = 5;
if (has_depth_write()) {
::google::protobuf::internal::WireFormatLite::WriteBool(5, this->depth_write(), output);
}
// optional bool depth_check = 6;
if (has_depth_check()) {
::google::protobuf::internal::WireFormatLite::WriteBool(6, this->depth_check(), output);
}
// optional .Echo.Resources.Material.Colour ambient = 7;
if (has_ambient()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
7, this->ambient(), output);
}
// optional .Echo.Resources.Material.Colour diffuse = 8;
if (has_diffuse()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
8, this->diffuse(), output);
}
// optional .Echo.Resources.Material.Colour specular = 9;
if (has_specular()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
9, this->specular(), output);
}
// optional .Echo.Resources.Material.Colour emissive = 10;
if (has_emissive()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
10, this->emissive(), output);
}
// optional float shininess = 11;
if (has_shininess()) {
::google::protobuf::internal::WireFormatLite::WriteFloat(11, this->shininess(), output);
}
// repeated .Echo.Resources.Material.TextureUnit texture_unit = 12;
for (int i = 0; i < this->texture_unit_size(); i++) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
12, this->texture_unit(i), output);
}
// optional bool vertex_colour = 13;
if (has_vertex_colour()) {
::google::protobuf::internal::WireFormatLite::WriteBool(13, this->vertex_colour(), output);
}
// optional bool active = 14;
if (has_active()) {
::google::protobuf::internal::WireFormatLite::WriteBool(14, this->active(), output);
}
// optional .Echo.Resources.Material.ShaderProgram program = 15;
if (has_program()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
15, this->program(), output);
}
// optional .Echo.Resources.Material.AlphaTestFunction.AlphaTestFunctionEnum alpha_test_function = 16;
if (has_alpha_test_function()) {
::google::protobuf::internal::WireFormatLite::WriteEnum(
16, this->alpha_test_function(), output);
}
// optional float alpha_test_value = 17;
if (has_alpha_test_value()) {
::google::protobuf::internal::WireFormatLite::WriteFloat(17, this->alpha_test_value(), output);
}
if (!unknown_fields().empty()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
unknown_fields(), output);
}
}
::google::protobuf::uint8* Material_Pass::SerializeWithCachedSizesToArray(
::google::protobuf::uint8* target) const {
// optional .Echo.Resources.Material.BlendMode.BlendModeEnum blend_mode = 1;
if (has_blend_mode()) {
target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
1, this->blend_mode(), target);
}
// optional .Echo.Resources.Material.DepthFunction.DepthFunctionEnum depth_function = 2;
if (has_depth_function()) {
target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
2, this->depth_function(), target);
}
// optional .Echo.Resources.Material.CullMode.CullModeEnum cull_mode = 3;
if (has_cull_mode()) {
target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
3, this->cull_mode(), target);
}
// optional bool lighting = 4;
if (has_lighting()) {
target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(4, this->lighting(), target);
}
// optional bool depth_write = 5;
if (has_depth_write()) {
target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(5, this->depth_write(), target);
}
// optional bool depth_check = 6;
if (has_depth_check()) {
target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(6, this->depth_check(), target);
}
// optional .Echo.Resources.Material.Colour ambient = 7;
if (has_ambient()) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
7, this->ambient(), target);
}
// optional .Echo.Resources.Material.Colour diffuse = 8;
if (has_diffuse()) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
8, this->diffuse(), target);
}
// optional .Echo.Resources.Material.Colour specular = 9;
if (has_specular()) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
9, this->specular(), target);
}
// optional .Echo.Resources.Material.Colour emissive = 10;
if (has_emissive()) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
10, this->emissive(), target);
}
// optional float shininess = 11;
if (has_shininess()) {
target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(11, this->shininess(), target);
}
// repeated .Echo.Resources.Material.TextureUnit texture_unit = 12;
for (int i = 0; i < this->texture_unit_size(); i++) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
12, this->texture_unit(i), target);
}
// optional bool vertex_colour = 13;
if (has_vertex_colour()) {
target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(13, this->vertex_colour(), target);
}
// optional bool active = 14;
if (has_active()) {
target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(14, this->active(), target);
}
// optional .Echo.Resources.Material.ShaderProgram program = 15;
if (has_program()) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
15, this->program(), target);
}
// optional .Echo.Resources.Material.AlphaTestFunction.AlphaTestFunctionEnum alpha_test_function = 16;
if (has_alpha_test_function()) {
target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
16, this->alpha_test_function(), target);
}
// optional float alpha_test_value = 17;
if (has_alpha_test_value()) {
target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(17, this->alpha_test_value(), target);
}
if (!unknown_fields().empty()) {
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
unknown_fields(), target);
}
return target;
}
int Material_Pass::ByteSize() const {
int total_size = 0;
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
// optional .Echo.Resources.Material.BlendMode.BlendModeEnum blend_mode = 1;
if (has_blend_mode()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::EnumSize(this->blend_mode());
}
// optional .Echo.Resources.Material.DepthFunction.DepthFunctionEnum depth_function = 2;
if (has_depth_function()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::EnumSize(this->depth_function());
}
// optional .Echo.Resources.Material.CullMode.CullModeEnum cull_mode = 3;
if (has_cull_mode()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::EnumSize(this->cull_mode());
}
// optional bool lighting = 4;
if (has_lighting()) {
total_size += 1 + 1;
}
// optional bool depth_write = 5;
if (has_depth_write()) {
total_size += 1 + 1;
}
// optional bool depth_check = 6;
if (has_depth_check()) {
total_size += 1 + 1;
}
// optional .Echo.Resources.Material.Colour ambient = 7;
if (has_ambient()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->ambient());
}
// optional .Echo.Resources.Material.Colour diffuse = 8;
if (has_diffuse()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->diffuse());
}
}
if (_has_bits_[8 / 32] & (0xffu << (8 % 32))) {
// optional .Echo.Resources.Material.Colour specular = 9;
if (has_specular()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->specular());
}
// optional .Echo.Resources.Material.Colour emissive = 10;
if (has_emissive()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->emissive());
}
// optional float shininess = 11;
if (has_shininess()) {
total_size += 1 + 4;
}
// optional bool vertex_colour = 13;
if (has_vertex_colour()) {
total_size += 1 + 1;
}
// optional bool active = 14;
if (has_active()) {
total_size += 1 + 1;
}
// optional .Echo.Resources.Material.ShaderProgram program = 15;
if (has_program()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->program());
}
// optional .Echo.Resources.Material.AlphaTestFunction.AlphaTestFunctionEnum alpha_test_function = 16;
if (has_alpha_test_function()) {
total_size += 2 +
::google::protobuf::internal::WireFormatLite::EnumSize(this->alpha_test_function());
}
}
if (_has_bits_[16 / 32] & (0xffu << (16 % 32))) {
// optional float alpha_test_value = 17;
if (has_alpha_test_value()) {
total_size += 2 + 4;
}
}
// repeated .Echo.Resources.Material.TextureUnit texture_unit = 12;
total_size += 1 * this->texture_unit_size();
for (int i = 0; i < this->texture_unit_size(); i++) {
total_size +=
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->texture_unit(i));
}
if (!unknown_fields().empty()) {
total_size +=
::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
unknown_fields());
}
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = total_size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
return total_size;
}
void Material_Pass::MergeFrom(const ::google::protobuf::Message& from) {
GOOGLE_CHECK_NE(&from, this);
const Material_Pass* source =
::google::protobuf::internal::dynamic_cast_if_available<const Material_Pass*>(
&from);
if (source == NULL) {
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
MergeFrom(*source);
}
}
void Material_Pass::MergeFrom(const Material_Pass& from) {
GOOGLE_CHECK_NE(&from, this);
texture_unit_.MergeFrom(from.texture_unit_);
if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
if (from.has_blend_mode()) {
set_blend_mode(from.blend_mode());
}
if (from.has_depth_function()) {
set_depth_function(from.depth_function());
}
if (from.has_cull_mode()) {
set_cull_mode(from.cull_mode());
}
if (from.has_lighting()) {
set_lighting(from.lighting());
}
if (from.has_depth_write()) {
set_depth_write(from.depth_write());
}
if (from.has_depth_check()) {
set_depth_check(from.depth_check());
}
if (from.has_ambient()) {
mutable_ambient()->::Echo::Resources::Material_Colour::MergeFrom(from.ambient());
}
if (from.has_diffuse()) {
mutable_diffuse()->::Echo::Resources::Material_Colour::MergeFrom(from.diffuse());
}
}
if (from._has_bits_[8 / 32] & (0xffu << (8 % 32))) {
if (from.has_specular()) {
mutable_specular()->::Echo::Resources::Material_Colour::MergeFrom(from.specular());
}
if (from.has_emissive()) {
mutable_emissive()->::Echo::Resources::Material_Colour::MergeFrom(from.emissive());
}
if (from.has_shininess()) {
set_shininess(from.shininess());
}
if (from.has_vertex_colour()) {
set_vertex_colour(from.vertex_colour());
}
if (from.has_active()) {
set_active(from.active());
}
if (from.has_program()) {
mutable_program()->::Echo::Resources::Material_ShaderProgram::MergeFrom(from.program());
}
if (from.has_alpha_test_function()) {
set_alpha_test_function(from.alpha_test_function());
}
}
if (from._has_bits_[16 / 32] & (0xffu << (16 % 32))) {
if (from.has_alpha_test_value()) {
set_alpha_test_value(from.alpha_test_value());
}
}
mutable_unknown_fields()->MergeFrom(from.unknown_fields());
}
void Material_Pass::CopyFrom(const ::google::protobuf::Message& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
void Material_Pass::CopyFrom(const Material_Pass& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool Material_Pass::IsInitialized() const {
for (int i = 0; i < texture_unit_size(); i++) {
if (!this->texture_unit(i).IsInitialized()) return false;
}
return true;
}
void Material_Pass::Swap(Material_Pass* other) {
if (other != this) {
std::swap(blend_mode_, other->blend_mode_);
std::swap(depth_function_, other->depth_function_);
std::swap(cull_mode_, other->cull_mode_);
std::swap(lighting_, other->lighting_);
std::swap(depth_write_, other->depth_write_);
std::swap(depth_check_, other->depth_check_);
std::swap(ambient_, other->ambient_);
std::swap(diffuse_, other->diffuse_);
std::swap(specular_, other->specular_);
std::swap(emissive_, other->emissive_);
std::swap(shininess_, other->shininess_);
texture_unit_.Swap(&other->texture_unit_);
std::swap(vertex_colour_, other->vertex_colour_);
std::swap(active_, other->active_);
std::swap(program_, other->program_);
std::swap(alpha_test_function_, other->alpha_test_function_);
std::swap(alpha_test_value_, other->alpha_test_value_);
std::swap(_has_bits_[0], other->_has_bits_[0]);
_unknown_fields_.Swap(&other->_unknown_fields_);
std::swap(_cached_size_, other->_cached_size_);
}
}
::google::protobuf::Metadata Material_Pass::GetMetadata() const {
protobuf_AssignDescriptorsOnce();
::google::protobuf::Metadata metadata;
metadata.descriptor = Material_Pass_descriptor_;
metadata.reflection = Material_Pass_reflection_;
return metadata;
}
// -------------------------------------------------------------------
#ifndef _MSC_VER
const int Material::kPassFieldNumber;
const int Material::kNameFieldNumber;
#endif // !_MSC_VER
Material::Material()
: ::google::protobuf::Message() {
SharedCtor();
}
void Material::InitAsDefaultInstance() {
}
Material::Material(const Material& from)
: ::google::protobuf::Message() {
SharedCtor();
MergeFrom(from);
}
void Material::SharedCtor() {
_cached_size_ = 0;
name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
::memset(_has_bits_, 0, sizeof(_has_bits_));
}
Material::~Material() {
SharedDtor();
}
void Material::SharedDtor() {
if (name_ != &::google::protobuf::internal::kEmptyString) {
delete name_;
}
if (this != default_instance_) {
}
}
void Material::SetCachedSize(int size) const {
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const ::google::protobuf::Descriptor* Material::descriptor() {
protobuf_AssignDescriptorsOnce();
return Material_descriptor_;
}
const Material& Material::default_instance() {
if (default_instance_ == NULL) protobuf_AddDesc_Material_2eproto();
return *default_instance_;
}
Material* Material::default_instance_ = NULL;
Material* Material::New() const {
return new Material;
}
void Material::Clear() {
if (_has_bits_[1 / 32] & (0xffu << (1 % 32))) {
if (has_name()) {
if (name_ != &::google::protobuf::internal::kEmptyString) {
name_->clear();
}
}
}
pass_.Clear();
::memset(_has_bits_, 0, sizeof(_has_bits_));
mutable_unknown_fields()->Clear();
}
bool Material::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
#define DO_(EXPRESSION) if (!(EXPRESSION)) return false
::google::protobuf::uint32 tag;
while ((tag = input->ReadTag()) != 0) {
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// repeated .Echo.Resources.Material.Pass pass = 1;
case 1: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
parse_pass:
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, add_pass()));
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(10)) goto parse_pass;
if (input->ExpectTag(18)) goto parse_name;
break;
}
// optional string name = 2;
case 2: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
parse_name:
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_name()));
::google::protobuf::internal::WireFormat::VerifyUTF8String(
this->name().data(), this->name().length(),
::google::protobuf::internal::WireFormat::PARSE);
} else {
goto handle_uninterpreted;
}
if (input->ExpectAtEnd()) return true;
break;
}
default: {
handle_uninterpreted:
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
return true;
}
DO_(::google::protobuf::internal::WireFormat::SkipField(
input, tag, mutable_unknown_fields()));
break;
}
}
}
return true;
#undef DO_
}
void Material::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
// repeated .Echo.Resources.Material.Pass pass = 1;
for (int i = 0; i < this->pass_size(); i++) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1, this->pass(i), output);
}
// optional string name = 2;
if (has_name()) {
::google::protobuf::internal::WireFormat::VerifyUTF8String(
this->name().data(), this->name().length(),
::google::protobuf::internal::WireFormat::SERIALIZE);
::google::protobuf::internal::WireFormatLite::WriteString(
2, this->name(), output);
}
if (!unknown_fields().empty()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
unknown_fields(), output);
}
}
::google::protobuf::uint8* Material::SerializeWithCachedSizesToArray(
::google::protobuf::uint8* target) const {
// repeated .Echo.Resources.Material.Pass pass = 1;
for (int i = 0; i < this->pass_size(); i++) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
1, this->pass(i), target);
}
// optional string name = 2;
if (has_name()) {
::google::protobuf::internal::WireFormat::VerifyUTF8String(
this->name().data(), this->name().length(),
::google::protobuf::internal::WireFormat::SERIALIZE);
target =
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
2, this->name(), target);
}
if (!unknown_fields().empty()) {
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
unknown_fields(), target);
}
return target;
}
int Material::ByteSize() const {
int total_size = 0;
if (_has_bits_[1 / 32] & (0xffu << (1 % 32))) {
// optional string name = 2;
if (has_name()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::StringSize(
this->name());
}
}
// repeated .Echo.Resources.Material.Pass pass = 1;
total_size += 1 * this->pass_size();
for (int i = 0; i < this->pass_size(); i++) {
total_size +=
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->pass(i));
}
if (!unknown_fields().empty()) {
total_size +=
::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
unknown_fields());
}
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = total_size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
return total_size;
}
void Material::MergeFrom(const ::google::protobuf::Message& from) {
GOOGLE_CHECK_NE(&from, this);
const Material* source =
::google::protobuf::internal::dynamic_cast_if_available<const Material*>(
&from);
if (source == NULL) {
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
MergeFrom(*source);
}
}
void Material::MergeFrom(const Material& from) {
GOOGLE_CHECK_NE(&from, this);
pass_.MergeFrom(from.pass_);
if (from._has_bits_[1 / 32] & (0xffu << (1 % 32))) {
if (from.has_name()) {
set_name(from.name());
}
}
mutable_unknown_fields()->MergeFrom(from.unknown_fields());
}
void Material::CopyFrom(const ::google::protobuf::Message& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
void Material::CopyFrom(const Material& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool Material::IsInitialized() const {
for (int i = 0; i < pass_size(); i++) {
if (!this->pass(i).IsInitialized()) return false;
}
return true;
}
void Material::Swap(Material* other) {
if (other != this) {
pass_.Swap(&other->pass_);
std::swap(name_, other->name_);
std::swap(_has_bits_[0], other->_has_bits_[0]);
_unknown_fields_.Swap(&other->_unknown_fields_);
std::swap(_cached_size_, other->_cached_size_);
}
}
::google::protobuf::Metadata Material::GetMetadata() const {
protobuf_AssignDescriptorsOnce();
::google::protobuf::Metadata metadata;
metadata.descriptor = Material_descriptor_;
metadata.reflection = Material_reflection_;
return metadata;
}
// ===================================================================
#ifndef _MSC_VER
const int Materials::kMaterialFieldNumber;
#endif // !_MSC_VER
Materials::Materials()
: ::google::protobuf::Message() {
SharedCtor();
}
void Materials::InitAsDefaultInstance() {
}
Materials::Materials(const Materials& from)
: ::google::protobuf::Message() {
SharedCtor();
MergeFrom(from);
}
void Materials::SharedCtor() {
_cached_size_ = 0;
::memset(_has_bits_, 0, sizeof(_has_bits_));
}
Materials::~Materials() {
SharedDtor();
}
void Materials::SharedDtor() {
if (this != default_instance_) {
}
}
void Materials::SetCachedSize(int size) const {
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const ::google::protobuf::Descriptor* Materials::descriptor() {
protobuf_AssignDescriptorsOnce();
return Materials_descriptor_;
}
const Materials& Materials::default_instance() {
if (default_instance_ == NULL) protobuf_AddDesc_Material_2eproto();
return *default_instance_;
}
Materials* Materials::default_instance_ = NULL;
Materials* Materials::New() const {
return new Materials;
}
void Materials::Clear() {
material_.Clear();
::memset(_has_bits_, 0, sizeof(_has_bits_));
mutable_unknown_fields()->Clear();
}
bool Materials::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
#define DO_(EXPRESSION) if (!(EXPRESSION)) return false
::google::protobuf::uint32 tag;
while ((tag = input->ReadTag()) != 0) {
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// repeated .Echo.Resources.Material material = 1;
case 1: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
parse_material:
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, add_material()));
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(10)) goto parse_material;
if (input->ExpectAtEnd()) return true;
break;
}
default: {
handle_uninterpreted:
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
return true;
}
DO_(::google::protobuf::internal::WireFormat::SkipField(
input, tag, mutable_unknown_fields()));
break;
}
}
}
return true;
#undef DO_
}
void Materials::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
// repeated .Echo.Resources.Material material = 1;
for (int i = 0; i < this->material_size(); i++) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1, this->material(i), output);
}
if (!unknown_fields().empty()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
unknown_fields(), output);
}
}
::google::protobuf::uint8* Materials::SerializeWithCachedSizesToArray(
::google::protobuf::uint8* target) const {
// repeated .Echo.Resources.Material material = 1;
for (int i = 0; i < this->material_size(); i++) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
1, this->material(i), target);
}
if (!unknown_fields().empty()) {
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
unknown_fields(), target);
}
return target;
}
int Materials::ByteSize() const {
int total_size = 0;
// repeated .Echo.Resources.Material material = 1;
total_size += 1 * this->material_size();
for (int i = 0; i < this->material_size(); i++) {
total_size +=
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->material(i));
}
if (!unknown_fields().empty()) {
total_size +=
::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
unknown_fields());
}
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = total_size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
return total_size;
}
void Materials::MergeFrom(const ::google::protobuf::Message& from) {
GOOGLE_CHECK_NE(&from, this);
const Materials* source =
::google::protobuf::internal::dynamic_cast_if_available<const Materials*>(
&from);
if (source == NULL) {
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
MergeFrom(*source);
}
}
void Materials::MergeFrom(const Materials& from) {
GOOGLE_CHECK_NE(&from, this);
material_.MergeFrom(from.material_);
mutable_unknown_fields()->MergeFrom(from.unknown_fields());
}
void Materials::CopyFrom(const ::google::protobuf::Message& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
void Materials::CopyFrom(const Materials& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool Materials::IsInitialized() const {
for (int i = 0; i < material_size(); i++) {
if (!this->material(i).IsInitialized()) return false;
}
return true;
}
void Materials::Swap(Materials* other) {
if (other != this) {
material_.Swap(&other->material_);
std::swap(_has_bits_[0], other->_has_bits_[0]);
_unknown_fields_.Swap(&other->_unknown_fields_);
std::swap(_cached_size_, other->_cached_size_);
}
}
::google::protobuf::Metadata Materials::GetMetadata() const {
protobuf_AssignDescriptorsOnce();
::google::protobuf::Metadata metadata;
metadata.descriptor = Materials_descriptor_;
metadata.reflection = Materials_reflection_;
return metadata;
}
// @@protoc_insertion_point(namespace_scope)
} // namespace Resources
} // namespace Echo
// @@protoc_insertion_point(global_scope)

File Metadata

Mime Type
text/x-c++
Expires
Wed, Jan 15, 11:02 PM (4 h, 51 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
72083
Default Alt Text
Material.pb.cc (285 KB)

Event Timeline