Panda3D
|
00001 // Filename: fltOpcode.h 00002 // Created by: drose (24Aug00) 00003 // 00004 //////////////////////////////////////////////////////////////////// 00005 // 00006 // PANDA 3D SOFTWARE 00007 // Copyright (c) Carnegie Mellon University. All rights reserved. 00008 // 00009 // All use of this software is subject to the terms of the revised BSD 00010 // license. You should have received a copy of this license along 00011 // with this source code in a file named "LICENSE." 00012 // 00013 //////////////////////////////////////////////////////////////////// 00014 00015 #ifndef FLTOPCODE_H 00016 #define FLTOPCODE_H 00017 00018 #include "pandatoolbase.h" 00019 00020 // Known opcodes, as of the latest version of flt. 00021 enum FltOpcode { 00022 FO_none = 0, 00023 FO_header = 1, 00024 FO_group = 2, 00025 FO_OB_scale = 3, // obsolete 00026 FO_object = 4, 00027 FO_face = 5, 00028 FO_OB_vertex_i = 6, // obsolete 00029 FO_OB_short_vertex = 7, // obsolete 00030 FO_OB_vertex_c = 8, // obsolete 00031 FO_OB_vertex_cn = 9, // obsolete 00032 FO_push = 10, 00033 FO_pop = 11, 00034 FO_OB_translate = 12, // obsolete 00035 FO_OB_dof = 13, // obsolete 00036 FO_dof = 14, 00037 FO_OB_instance_ref = 16, // obsolete 00038 FO_OB_instance = 17, // obsolete 00039 FO_push_face = 19, 00040 FO_pop_face = 20, 00041 FO_push_extension = 21, 00042 FO_pop_extension = 22, 00043 FO_continuation = 23, 00044 00045 FO_comment = 31, 00046 FO_color_palette = 32, 00047 FO_long_id = 33, 00048 FO_OB_translate2 = 40, // obsolete 00049 FO_OB_rotate_point = 41, // obsolete 00050 FO_OB_rotate_edge = 42, // obsolete 00051 FO_OB_scale2 = 43, // obsolete 00052 FO_OB_translate3 = 44, // obsolete 00053 FO_OB_nu_scale = 45, // obsolete 00054 FO_OB_rotate_point2 = 46, // obsolete 00055 FO_OB_rotate_to_point = 47, // obsolete 00056 FO_OB_put = 48, // obsolete 00057 FO_transform_matrix = 49, 00058 FO_vector = 50, 00059 FO_OB_bounding_box = 51, // obsolete 00060 FO_multitexture = 52, 00061 FO_uv_list = 53, 00062 FO_bsp = 55, 00063 FO_replicate = 60, 00064 FO_instance_ref = 61, 00065 FO_instance = 62, 00066 FO_external_ref = 63, 00067 FO_texture = 64, 00068 FO_OB_eyepoint_palette = 65, // obsolete 00069 FO_14_material_palette = 66, 00070 FO_vertex_palette = 67, 00071 FO_vertex_c = 68, 00072 FO_vertex_cn = 69, 00073 FO_vertex_cnu = 70, 00074 FO_vertex_cu = 71, 00075 FO_vertex_list = 72, 00076 FO_lod = 73, 00077 FO_bounding_box = 74, 00078 FO_rotate_about_edge = 76, 00079 FO_OB_scale3 = 77, // obsolete 00080 FO_translate = 78, 00081 FO_scale = 79, 00082 FO_rotate_about_point = 80, 00083 FO_rotate_and_scale = 81, 00084 FO_put = 82, 00085 FO_eyepoint_palette = 83, 00086 FO_mesh = 84, 00087 FO_local_vertex_pool = 85, 00088 FO_mesh_primitive = 86, 00089 FO_road_segment = 87, 00090 FO_road_zone = 88, 00091 FO_morph_list = 89, 00092 FO_behavior_palette = 90, 00093 FO_sound = 91, 00094 FO_road_path = 92, 00095 FO_sound_palette = 93, 00096 FO_general_matrix = 94, 00097 FO_text = 95, 00098 FO_switch = 96, 00099 FO_line_style = 97, 00100 FO_clip_region = 98, 00101 FO_extension = 100, 00102 FO_light_source = 101, 00103 FO_light_definition = 102, 00104 FO_bounding_sphere = 105, 00105 FO_bounding_cylinder = 106, 00106 FO_bv_center = 108, 00107 FO_bv_orientation = 109, 00108 FO_light_point = 111, 00109 FO_texture_map_palette = 112, 00110 FO_15_material = 113, 00111 FO_name_table = 114, 00112 FO_cat = 115, 00113 FO_cat_data = 116, 00114 FO_push_attribute = 122, 00115 FO_pop_attribute = 123, 00116 FO_adaptive_attribute = 125, 00117 FO_curve = 126, 00118 FO_road_construction = 127 00119 }; 00120 00121 ostream &operator << (ostream &out, FltOpcode opcode); 00122 00123 #endif 00124