
Go to the source code of this file.
Classes | |
| struct | SIO2mist |
Functions | |
| SIO2mist * | sio2MistInit (char *) |
| SIO2mist * | sio2MistFree (SIO2mist *) |
| void | sio2MistCreate (SIO2mist *, vec4 *, float, float, float, float) |
| void | sio2MistRender (SIO2mist *) |
| void | sio2MistReset (void) |
| void sio2MistCreate | ( | SIO2mist * | _SIO2mist, | |
| vec4 * | _col, | |||
| float | _dens, | |||
| float | _mode, | |||
| float | _cstart, | |||
| float | _cend | |||
| ) |
Helper function to create a mist directly instead of setting every variables independently.
_SIO2mist: A valid SIO2mist pointer. Basically the mist that will receive the rest of the values.
_col: The color of the mist.
_dens: The density of the mist.
_mode: The OpenGL mode to use for the mist.
_cstart: The mist clipping start distance.
_cend: The mist clipping end distance.
References SIO2mist::cend, SIO2mist::col, SIO2mist::cstart, SIO2mist::dens, and SIO2mist::mode.
Free a valid SIO2mist pointer, and remove its handle from the global sio2 SIO2resource handle.
_SIO2mist: A valid SIO2mist pointer.
return a NULL SIO2mist structure pointer.
References SIO2::_SIO2resource, sio2, SIO2_MIST, sio2MistReset(), and sio2ResourceDel().
Referenced by sio2ResourceUnload().

Create a new SIO2mist, this new SIO2mist pointer will be added to the global sio2 SIO2resource handle.
_name: The name to use to associate the SIO2mist within the SIO2resource.
return a new SIO2mist structure pointer.
References SIO2::_SIO2resource, sio2, SIO2_MIST, and sio2ResourceAdd().

| void sio2MistRender | ( | SIO2mist * | _SIO2mist | ) |
Setup the necessary parameters to render the mist.
_SIO2mist: A valid SIO2mist pointer. Make sure that you have setup all the parameters properly before rendering the mist. In addition the mist have to be set BEFORE the rendering of any objects. You can also render multiply mist by modifying the rendering sequence, and render other mist with different colors and values. Please take note to always call sio2MistReset before setting a new mist.
References SIO2::_SIO2state, SIO2mist::cend, SIO2mist::col, SIO2mist::cstart, SIO2mist::dens, SIO2state::flags, SIO2mist::mode, sio2, SIO2_FOG, sio2IsStateEnabled(), and sio2StateEnable().

| void sio2MistReset | ( | void | ) |
Disable the machine states that makes the SIO2mist rendering possible.
References SIO2::_SIO2state, sio2, SIO2_FOG, and sio2StateDisable().
Referenced by sio2MistFree().

1.5.6