zenilib
0.5.3.0
|
#include "lib3ds_impl.h"
Go to the source code of this file.
Functions | |
static void | distance_cue_read (Lib3dsAtmosphere *at, Lib3dsIo *io) |
static void | fog_read (Lib3dsAtmosphere *at, Lib3dsIo *io) |
static void | layer_fog_read (Lib3dsAtmosphere *at, Lib3dsIo *io) |
void | lib3ds_atmosphere_read (Lib3dsAtmosphere *atmosphere, Lib3dsIo *io) |
void | lib3ds_atmosphere_write (Lib3dsAtmosphere *atmosphere, Lib3dsIo *io) |
|
static |
Definition at line 96 of file lib3ds_atmosphere.c.
References CHK_DCUE_BGND, CHK_DISTANCE_CUE, chunk, Lib3dsAtmosphere::dist_cue_background, Lib3dsAtmosphere::dist_cue_far_dimming, Lib3dsAtmosphere::dist_cue_far_plane, Lib3dsAtmosphere::dist_cue_near_dimming, Lib3dsAtmosphere::dist_cue_near_plane, lib3ds_chunk_read_end(), lib3ds_chunk_read_next(), lib3ds_chunk_read_start(), lib3ds_chunk_read_tell(), lib3ds_chunk_unknown(), lib3ds_io_read_float(), and TRUE.
Referenced by lib3ds_atmosphere_read().
|
static |
Definition at line 22 of file lib3ds_atmosphere.c.
References CHK_COLOR_F, CHK_FOG, CHK_FOG_BGND, CHK_LIN_COLOR_F, chunk, Lib3dsAtmosphere::fog_background, Lib3dsAtmosphere::fog_color, Lib3dsAtmosphere::fog_far_density, Lib3dsAtmosphere::fog_far_plane, Lib3dsAtmosphere::fog_near_density, Lib3dsAtmosphere::fog_near_plane, i, lib3ds_chunk_read_end(), lib3ds_chunk_read_next(), lib3ds_chunk_read_start(), lib3ds_chunk_read_tell(), lib3ds_chunk_unknown(), lib3ds_io_read_float(), and TRUE.
Referenced by lib3ds_atmosphere_read().
|
static |
Definition at line 62 of file lib3ds_atmosphere.c.
References CHK_COLOR_F, CHK_LAYER_FOG, CHK_LIN_COLOR_F, chunk, FALSE, Lib3dsAtmosphere::layer_fog_color, Lib3dsAtmosphere::layer_fog_density, Lib3dsAtmosphere::layer_fog_far_y, Lib3dsAtmosphere::layer_fog_flags, Lib3dsAtmosphere::layer_fog_near_y, lib3ds_chunk_read_end(), lib3ds_chunk_read_next(), lib3ds_chunk_read_start(), lib3ds_chunk_read_tell(), lib3ds_chunk_unknown(), lib3ds_io_read_dword(), lib3ds_io_read_float(), lib3ds_io_read_rgb(), and TRUE.
Referenced by lib3ds_atmosphere_read().
void lib3ds_atmosphere_read | ( | Lib3dsAtmosphere * | atmosphere, |
Lib3dsIo * | io | ||
) |
Definition at line 125 of file lib3ds_atmosphere.c.
References CHK_DISTANCE_CUE, CHK_FOG, CHK_LAYER_FOG, CHK_USE_DISTANCE_CUE, CHK_USE_FOG, CHK_USE_LAYER_FOG, Lib3dsChunk::chunk, distance_cue_read(), fog_read(), layer_fog_read(), lib3ds_chunk_read(), lib3ds_chunk_read_reset(), TRUE, Lib3dsAtmosphere::use_dist_cue, Lib3dsAtmosphere::use_fog, and Lib3dsAtmosphere::use_layer_fog.
Referenced by mdata_read().
void lib3ds_atmosphere_write | ( | Lib3dsAtmosphere * | atmosphere, |
Lib3dsIo * | io | ||
) |
Definition at line 167 of file lib3ds_atmosphere.c.
References CHK_COLOR_F, CHK_DCUE_BGND, CHK_DISTANCE_CUE, CHK_FOG, CHK_FOG_BGND, CHK_LAYER_FOG, CHK_USE_FOG, CHK_USE_LAYER_FOG, CHK_USE_V_GRADIENT, Lib3dsChunk::chunk, Lib3dsAtmosphere::dist_cue_background, Lib3dsAtmosphere::dist_cue_far_dimming, Lib3dsAtmosphere::dist_cue_far_plane, Lib3dsAtmosphere::dist_cue_near_dimming, Lib3dsAtmosphere::dist_cue_near_plane, Lib3dsAtmosphere::fog_background, Lib3dsAtmosphere::fog_color, Lib3dsAtmosphere::fog_far_density, Lib3dsAtmosphere::fog_far_plane, Lib3dsAtmosphere::fog_near_density, Lib3dsAtmosphere::fog_near_plane, Lib3dsAtmosphere::layer_fog_far_y, Lib3dsAtmosphere::layer_fog_flags, Lib3dsAtmosphere::layer_fog_near_y, lib3ds_chunk_write(), lib3ds_chunk_write_end(), lib3ds_chunk_write_start(), lib3ds_io_write_dword(), lib3ds_io_write_float(), lib3ds_io_write_rgb(), Lib3dsChunk::size, Lib3dsAtmosphere::use_dist_cue, Lib3dsAtmosphere::use_fog, and Lib3dsAtmosphere::use_layer_fog.
Referenced by mdata_write().