1. 4FIPS
  2. PHOTOS
  3. VIDEOS
  4. APPS
  5. CODE
  6. FORUMS
  7. ABOUT
/*
(c) 2012 +++ Filip Stoklas, aka FipS, http://www.4FipS.com +++
THIS CODE IS FREE - LICENSED UNDER THE MIT LICENSE
ARTICLE URL: http://forums.4fips.com/viewtopic.php?f=3&t=1047
*/

package fs.engine.io;

enum Vertex_element_type
{
    VET_Float_4 = 0;
    VET_Float_3 = 1;
    VET_Float_2 = 2;
    VET_Float_1 = 3;
    VET_Uint8_4 = 4;
    VET_Uint8_3 = 5;
    VET_Uint8_2 = 6;
    VET_Uint8_1 = 7;
};

enum Vertex_element_semantics
{
    VES_Position = 0;
    VES_Normal = 1;
    VES_Color = 2;
    VES_Texcoord = 3;
};

message Vertex_element
{
    required Vertex_element_type type = 1;
    required Vertex_element_semantics semantics = 2;
}

message Vertex_format
{
    repeated Vertex_element elements = 1;
}
 
message Geometry
{
    required Vertex_format format = 1; 
    required bytes data = 2;
}