4 #include <zerobuf/ConstAllocator.h> 5 #include <zerobuf/Vector.h> 6 #include <zerobuf/Zerobuf.h> 16 typedef std::unique_ptr< const Viewport > ConstViewportPtr;
28 const uint32_t*
getSize()
const;
29 std::vector< uint32_t > getSizeVector()
const;
36 void setSize( uint32_t value[ 2 ] );
43 void setSize(
const std::vector< uint32_t >& value );
44 size_t getSizeSize()
const;
47 Viewport(
const std::vector< uint32_t >& sizeValue );
50 Viewport( const ::zerobuf::Zerobuf& rhs );
51 explicit Viewport( ::zerobuf::AllocatorPtr allocator );
53 Viewport& operator = (
const Viewport& rhs ) { ::zerobuf::Zerobuf::operator = ( rhs );
return *
this; }
57 std::string getSchema()
const final;
58 static std::string ZEROBUF_SCHEMA();
59 std::string getTypeName()
const final {
return "lexis::render::Viewport"; }
60 static std::string ZEROBUF_TYPE_NAME() {
return "lexis::render::Viewport"; }
61 ::zerobuf::uint128_t getTypeIdentifier()
const final { return ::zerobuf::uint128_t( 0x5c143f2b0e3725bcull, 0xb683bd210c58e155ull ); }
62 static ::zerobuf::uint128_t ZEROBUF_TYPE_IDENTIFIER() { return ::zerobuf::uint128_t( 0x5c143f2b0e3725bcull, 0xb683bd210c58e155ull ); }
63 size_t getZerobufStaticSize()
const final {
return 12; }
64 static size_t ZEROBUF_STATIC_SIZE() {
return 12; }
65 size_t getZerobufNumDynamics()
const final {
return 0; }
66 static size_t ZEROBUF_NUM_DYNAMICS() {
return 0; }
67 static ConstViewportPtr create(
const void* data,
const size_t size ) {
return ConstViewportPtr(
new Viewport( ::zerobuf::AllocatorPtr( new ::zerobuf::ConstAllocator( reinterpret_cast< const uint8_t* >( data ), size )))); }
69 void _parseJSON(
const Json::Value& json )
final;
70 void _createJSON( Json::Value& json )
const final;
void setSize(uint32_t value[2])
Set the value of the Size fixed size array from a uint32_t*.
uint32_t * getSize()
Get a pointer to the Size fixed size array.