2001-01-11 00:32:10 +08:00
|
|
|
// Opcode.h
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef __FLT_OPCODE_H
|
|
|
|
#define __FLT_OPCODE_H
|
|
|
|
|
|
|
|
#define OF_VERSION 1520 //OpenFlight version
|
|
|
|
|
|
|
|
#define UNKNOWN_OP 0
|
|
|
|
|
2001-12-05 00:03:10 +08:00
|
|
|
#define HEADER_OP 1
|
|
|
|
#define GROUP_OP 2
|
2001-01-11 00:32:10 +08:00
|
|
|
#define OLD_LOD_OP 3
|
2001-12-05 00:03:10 +08:00
|
|
|
#define OBJECT_OP 4
|
|
|
|
#define FACE_OP 5
|
2001-01-11 00:32:10 +08:00
|
|
|
#define OLD_VERTEX_OP 7
|
|
|
|
#define OLD_VERTEX_COLOR_OP 8
|
|
|
|
#define OLD_VERTEX_COLOR_NORMAL_OP 9
|
2001-12-05 00:03:10 +08:00
|
|
|
#define PUSH_LEVEL_OP 10
|
|
|
|
#define POP_LEVEL_OP 11
|
|
|
|
#define DOF_OP 14
|
2001-01-11 00:32:10 +08:00
|
|
|
#define PUSH_SUBFACE_OP 19
|
|
|
|
#define POP_SUBFACE_OP 20
|
|
|
|
#define PUSH_EXTENSION_OP 21
|
|
|
|
#define POP_EXTENSION_OP 22
|
2001-12-05 00:03:10 +08:00
|
|
|
#define COMMENT_OP 31
|
|
|
|
#define COLOR_PALETTE_OP 32
|
2001-01-11 00:32:10 +08:00
|
|
|
#define LONG_ID_OP 33
|
2001-09-20 05:08:56 +08:00
|
|
|
/*
|
|
|
|
Ignore 40-48
|
|
|
|
#define OLD_TRANSLATE_OP 44
|
|
|
|
*/
|
2001-12-05 00:03:10 +08:00
|
|
|
#define MATRIX_OP 49
|
2001-01-11 00:32:10 +08:00
|
|
|
#define VECTOR_OP 50
|
2001-12-05 00:03:10 +08:00
|
|
|
#define REPLICATE_OP 60
|
|
|
|
#define INSTANCE_REFERENCE_OP 61
|
|
|
|
#define INSTANCE_DEFINITION_OP 62
|
|
|
|
#define EXTERNAL_REFERENCE_OP 63
|
|
|
|
#define TEXTURE_PALETTE_OP 64
|
2001-09-20 05:08:56 +08:00
|
|
|
#define OLD_MATERIAL_PALETTE_OP 66
|
2001-12-05 00:03:10 +08:00
|
|
|
#define VERTEX_PALETTE_OP 67
|
2001-01-11 00:32:10 +08:00
|
|
|
#define VERTEX_C_OP 68
|
|
|
|
#define VERTEX_CN_OP 69
|
|
|
|
#define VERTEX_CNT_OP 70
|
|
|
|
#define VERTEX_CT_OP 71
|
|
|
|
#define VERTEX_LIST_OP 72
|
2001-12-05 00:03:10 +08:00
|
|
|
#define LOD_OP 73
|
2001-01-11 00:32:10 +08:00
|
|
|
#define BOUNDING_BOX_OP 74
|
2001-09-20 05:08:56 +08:00
|
|
|
/*
|
|
|
|
Ignore 76-82
|
2001-01-11 00:32:10 +08:00
|
|
|
#define ROTATE_ABOUT_EDGE_OP 76
|
|
|
|
#define TRANSLATE_OP 78
|
|
|
|
#define SCALE_OP 79
|
|
|
|
#define ROTATE_ABOUT_POINT_OP 80
|
|
|
|
#define ROTATE_SCALE_TO_POINT_OP 81
|
|
|
|
#define PUT_TRANSFORM_OP 82
|
2001-09-20 05:08:56 +08:00
|
|
|
*/
|
2001-01-11 00:32:10 +08:00
|
|
|
#define ROAD_ZONE_OP 88
|
|
|
|
#define MORPH_VERTEX_LIST_OP 89
|
|
|
|
#define GENERAL_MATRIX_OP 94
|
|
|
|
#define SWITCH_OP 96
|
|
|
|
#define EXTENSION_OP 100
|
|
|
|
#define LIGHT_SOURCE_OP 101
|
|
|
|
#define LIGHT_SOURCE_PALETTE_OP 102
|
|
|
|
#define BOUNDING_SPHERE_OP 105
|
|
|
|
#define BOUNDING_CYLINDER_OP 106
|
|
|
|
#define BOUNDING_VOLUME_CENTER_OP 108
|
|
|
|
#define BOUNDING_VOLUME_ORIENTATION_OP 109
|
|
|
|
#define LIGHT_POINT_OP 111
|
|
|
|
#define TEXTURE_MAPPING_PALETTE_OP 112
|
|
|
|
#define MATERIAL_PALETTE_OP 113
|
|
|
|
#define CAT_OP 115
|
|
|
|
#define CAT_DATA_OP 116
|
|
|
|
|
|
|
|
#endif // __FLT_OPCODE_H
|
|
|
|
|
|
|
|
|