OGRE: OgreMeshFileFormat.h File Reference - OGRE Documentation

Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

# OgreMeshFileFormat.h File Reference

`#include "OgrePrerequisites.h"`

Go to the source code of this file.

## Namespaces

namespace | Ogre

## Enumerations

enum

MeshChunkID {
M_HEADER = 0x1000, M_MESH = 0x3000, M_SUBMESH = 0x4000, M_SUBMESH_OPERATION = 0x4010,
M_SUBMESH_BONE_ASSIGNMENT = 0x4100, M_SUBMESH_TEXTURE_ALIAS = 0x4200, M_GEOMETRY = 0x5000, M_GEOMETRY_VERTEX_DECLARATION = 0x5100,
M_GEOMETRY_VERTEX_ELEMENT = 0x5110, M_GEOMETRY_VERTEX_BUFFER = 0x5200, M_GEOMETRY_VERTEX_BUFFER_DATA = 0x5210, M_MESH_SKELETON_LINK = 0x6000,
M_MESH_BONE_ASSIGNMENT = 0x7000, M_MESH_LOD = 0x8000, M_MESH_LOD_USAGE = 0x8100, M_MESH_LOD_MANUAL = 0x8110,
M_MESH_LOD_GENERATED = 0x8120, M_MESH_BOUNDS = 0x9000, M_SUBMESH_NAME_TABLE = 0xA000, M_SUBMESH_NAME_TABLE_ELEMENT = 0xA100,
M_EDGE_LISTS = 0xB000, M_EDGE_LIST_LOD = 0xB100, M_EDGE_GROUP = 0xB110, M_POSES = 0xC000,
M_POSE = 0xC100, M_POSE_VERTEX = 0xC111, M_ANIMATIONS = 0xD000, M_ANIMATION = 0xD100,
M_ANIMATION_TRACK = 0xD110, M_ANIMATION_MORPH_KEYFRAME = 0xD111, M_ANIMATION_POSE_KEYFRAME = 0xD112, M_ANIMATION_POSE_REF = 0xD113,
M_TABLE_EXTREMES = 0xE000, M_GEOMETRY_NORMALS = 0x5100, M_GEOMETRY_COLOURS = 0x5200, M_GEOMETRY_TEXCOORDS = 0x5300
}

| Definition of the OGRE .mesh file format. More...

## Enumeration Type Documentation

enum Ogre::MeshChunkID

Definition of the OGRE .mesh file format.

.mesh files are binary files (for read efficiency at runtime) and are arranged into chunks of data, very like 3D Studio's format. A chunk always consists of: unsigned short CHUNK_ID : one of the following chunk ids identifying the chunk unsigned long LENGTH : length of the chunk in bytes, including this header void* DATA : the data, which may contain other sub-chunks (various data types)

A .mesh file can contain both the definition of the Mesh itself, and optionally the definitions of the materials is uses (although these can be omitted, if so the Mesh assumes that at runtime the Materials referred to by name in the Mesh are loaded/created from another source)

A .mesh file only contains a single mesh, which can itself have multiple submeshes.

Enumeration values:

  M_HEADER |
  M_MESH |
  M_SUBMESH |
  M_SUBMESH_OPERATION |
  M_SUBMESH_BONE_ASSIGNMENT |
  M_SUBMESH_TEXTURE_ALIAS |
  M_GEOMETRY |
  M_GEOMETRY_VERTEX_DECLARATION |
  M_GEOMETRY_VERTEX_ELEMENT |
  M_GEOMETRY_VERTEX_BUFFER |
  M_GEOMETRY_VERTEX_BUFFER_DATA |
  M_MESH_SKELETON_LINK |
  M_MESH_BONE_ASSIGNMENT |
  M_MESH_LOD |
  M_MESH_LOD_USAGE |
  M_MESH_LOD_MANUAL |
  M_MESH_LOD_GENERATED |
  M_MESH_BOUNDS |
  M_SUBMESH_NAME_TABLE |
  M_SUBMESH_NAME_TABLE_ELEMENT |
  M_EDGE_LISTS |
  M_EDGE_LIST_LOD |
  M_EDGE_GROUP |
  M_POSES |
  M_POSE |
  M_POSE_VERTEX |
  M_ANIMATIONS |
  M_ANIMATION |
  M_ANIMATION_TRACK |
  M_ANIMATION_MORPH_KEYFRAME |
  M_ANIMATION_POSE_KEYFRAME |
  M_ANIMATION_POSE_REF |
  M_TABLE_EXTREMES |
  M_GEOMETRY_NORMALS |
  M_GEOMETRY_COLOURS |
  M_GEOMETRY_TEXCOORDS |

Definition at line 53 of file OgreMeshFileFormat.h.

Copyright © 2000-2005 by The OGRE Team
This work is licensed under a Creative Commons Attribution-ShareAlike 2.5 License.
Last modified Thu Mar 6 09:46:27 2008