1 #define DWG_TYPE DWG_TYPE_RENDERENVIRONMENT
2 #include "common.c"
3
4 void
api_process(dwg_object * obj)5 api_process (dwg_object *obj)
6 {
7 int error, isnew;
8 BITCODE_BL class_version;
9 BITCODE_B fog_enabled;
10 BITCODE_B fog_background_enabled;
11 BITCODE_CMC fog_color;
12 BITCODE_BD fog_density_near;
13 BITCODE_BD fog_density_far;
14 BITCODE_BD fog_distance_near;
15 BITCODE_BD fog_distance_far;
16 BITCODE_B environ_image_enabled;
17 BITCODE_T environ_image_filename;
18
19 Dwg_Version_Type dwg_version = obj->parent->header.version;
20 dwg_obj_renderenvironment *_obj = dwg_object_to_RENDERENVIRONMENT (obj);
21
22 CHK_ENTITY_TYPE (_obj, RENDERENVIRONMENT, class_version, BL);
23 CHK_ENTITY_TYPE (_obj, RENDERENVIRONMENT, fog_enabled, B);
24 CHK_ENTITY_TYPE (_obj, RENDERENVIRONMENT, fog_background_enabled, B);
25 CHK_ENTITY_CMC (_obj, RENDERENVIRONMENT, fog_color);
26 CHK_ENTITY_TYPE (_obj, RENDERENVIRONMENT, fog_density_near, BD);
27 CHK_ENTITY_TYPE (_obj, RENDERENVIRONMENT, fog_density_far, BD);
28 CHK_ENTITY_TYPE (_obj, RENDERENVIRONMENT, fog_distance_near, BD);
29 CHK_ENTITY_TYPE (_obj, RENDERENVIRONMENT, fog_distance_far, BD);
30 CHK_ENTITY_TYPE (_obj, RENDERENVIRONMENT, environ_image_enabled, B);
31 CHK_ENTITY_UTF8TEXT (_obj, RENDERENVIRONMENT, environ_image_filename);
32 }
33