X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=examples%2Ffpp-game%2Fgame-model.h;h=a73e6e2af6a83d170a38ce8250b8fa4aad2baa92;hb=2d059e9a06cc73751e7d70ae39be7a7e0eb061f8;hp=af72750e124548368fb88ccc599f48adf0660b3a;hpb=a284a43f0bb9f45e37809d9778d3c774a5169d50;p=platform%2Fcore%2Fuifw%2Fdali-demo.git diff --git a/examples/fpp-game/game-model.h b/examples/fpp-game/game-model.h index af72750..a73e6e2 100644 --- a/examples/fpp-game/game-model.h +++ b/examples/fpp-game/game-model.h @@ -2,7 +2,7 @@ #define GAME_MODEL_H /* - * Copyright (c) 2016 Samsung Electronics Co., Ltd. + * Copyright (c) 2020 Samsung Electronics Co., Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -29,16 +29,16 @@ */ struct ModelHeader { - uint32_t tag; /// 'MODV' tag - uint32_t version; /// File version - uint32_t vertexBufferSize; /// total size of the vertex buffer to allocate - uint32_t attributeCount; /// number of stored attributes - uint32_t attributeFormat[16]; /// format encoded as ((type << 16)|(count)); 'type' represents primitive type, 'count' represents number of components ( 1-4 ) - uint32_t attributeOffset[16]; /// attribute offsets - uint32_t attributeSize[16]; /// attribute size in bytes - uint32_t vertexStride; /// vertex stride - uint32_t reserved; /// reserved, may point at additional structure - uint32_t dataBeginOffset; /// start of actual vertex data + uint32_t tag; /// 'MODV' tag + uint32_t version; /// File version + uint32_t vertexBufferSize; /// total size of the vertex buffer to allocate + uint32_t attributeCount; /// number of stored attributes + uint32_t attributeFormat[16]; /// format encoded as ((type << 16)|(count)); 'type' represents primitive type, 'count' represents number of components ( 1-4 ) + uint32_t attributeOffset[16]; /// attribute offsets + uint32_t attributeSize[16]; /// attribute size in bytes + uint32_t vertexStride; /// vertex stride + uint32_t reserved; /// reserved, may point at additional structure + uint32_t dataBeginOffset; /// start of actual vertex data }; /** @@ -52,12 +52,11 @@ struct ModelHeader class GameModel { public: - /** * Creates an instance of GameModel and loads the '.mod' file * @param[in] filename Name of file to load */ - GameModel( const char* filename ); + GameModel(const char* filename); /** * Destroys an instance of GameModel @@ -83,14 +82,13 @@ public: uint32_t GetUniqueId(); private: + Dali::Geometry mGeometry; + Dali::VertexBuffer mVertexBuffer; - Dali::Geometry mGeometry; - Dali::VertexBuffer mVertexBuffer; - - ModelHeader mHeader; + ModelHeader mHeader; - uint32_t mUniqueId; - bool mIsReady; + uint32_t mUniqueId; + bool mIsReady; }; #endif