4 #include <zerobuf/Zerobuf.h> 5 #include <zerobuf/Vector.h> 16 void setX(
float value );
19 void setY(
float value );
22 void setZ(
float value );
25 Vector3f(
const float& xValue,
const float& yValue,
const float& zValue );
28 Vector3f( const ::zerobuf::Zerobuf& rhs );
29 explicit Vector3f( ::zerobuf::AllocatorPtr allocator );
33 { ::zerobuf::Zerobuf::operator = ( rhs );
return *
this; }
37 std::string getTypeName()
const final {
return "zerobuf::render::Vector3f"; }
38 ::zerobuf::uint128_t getTypeIdentifier()
const final { return ::zerobuf::uint128_t( 0x8180fd04222d2482ull, 0x37eb7dbf4f770754ull ); }
40 static size_t ZEROBUF_STATIC_SIZE() {
return 16; }
42 static size_t ZEROBUF_NUM_DYNAMICS() {
return 0; }
45 void _parseJSON(
const Json::Value& json )
final;
46 void _createJSON( Json::Value& json )
const final;
56 void setOrigin(
const Vector3f& value );
60 void setLookAt(
const Vector3f& value );
70 Camera( const ::zerobuf::Zerobuf& rhs );
71 explicit Camera( ::zerobuf::AllocatorPtr allocator );
75 { ::zerobuf::Zerobuf::operator = ( rhs );
return *
this; }
79 std::string getTypeName()
const final {
return "zerobuf::render::Camera"; }
80 ::zerobuf::uint128_t getTypeIdentifier()
const final { return ::zerobuf::uint128_t( 0x420ff405f25e5f4bull, 0x0c7e826fec92324aull ); }
82 static size_t ZEROBUF_STATIC_SIZE() {
return 52; }
84 static size_t ZEROBUF_NUM_DYNAMICS() {
return 0; }
87 void _parseJSON(
const Json::Value& json )
final;
88 void _createJSON( Json::Value& json )
const final;
size_t getZerobufStaticSize() const final
size_t getZerobufNumDynamics() const final
Zero-copy, zero-serialize, zero-hassle protocol buffers.
size_t getZerobufStaticSize() const final
Base class for all Zerobuf serializable objects.
size_t getZerobufNumDynamics() const final