|
ARB
|
#include <smartptr.h>#include <arb_msg.h>#include <aw_base.hxx>#include <items.h>#include <aw_color_groups.hxx>#include <string>

Go to the source code of this file.
Classes | |
| class | Phaser |
| class | ValueTuple |
| class | ShaderPlugin |
| class | ItemShader |
| class | DelayReshade |
Macros | |
| #define | is_assert(cond) arb_assert(cond) |
| #define | NO_PLUGIN_SELECTED "" |
Typedefs | |
| typedef ValueTuple::ShadedValue | ShadedValue |
| typedef SmartPtr< ShaderPlugin > | ShaderPluginPtr |
| typedef void(* | ReshadeCallback )() |
Enumerations | |
| enum | ReshadeMode { SIMPLE_RESHADE = 0, CHECK_DIMENSION_CHANGE = 1 } |
Functions | |
| ShadedValue | mix (const ShadedValue &val1, float val1_ratio, const ShadedValue &val2) |
| ItemShader * | registerItemShader (AW_root *awr, AW_gc_manager *gcman, BoundItemSel &itemtype, const char *unique_id, const char *description, const char *help_id, ReshadeCallback reshade, int undef_gc) |
| #define is_assert | ( | cond | ) | arb_assert(cond) |
Definition at line 33 of file item_shader.h.
Referenced by ShaderPlugin::dimension_awar(), ShaderPlugin::get_shader_local_id(), Phaser::Phaser(), ShaderPlugin::plugin_awar(), ItemShader::shade(), and ItemShader::to_GC().
| #define NO_PLUGIN_SELECTED "" |
Definition at line 254 of file item_shader.h.
Referenced by FINAL_TYPE< SEQTYPE >::active_plugin_name(), ItemShader::deactivate_plugin(), and FINAL_TYPE< SEQTYPE >::selected_plugin_changed_cb().
| typedef ValueTuple::ShadedValue ShadedValue |
Definition at line 172 of file item_shader.h.
| typedef SmartPtr<ShaderPlugin> ShaderPluginPtr |
Definition at line 249 of file item_shader.h.
| typedef void(* ReshadeCallback)() |
Definition at line 256 of file item_shader.h.
| enum ReshadeMode |
| Enumerator | |
|---|---|
| SIMPLE_RESHADE | |
| CHECK_DIMENSION_CHANGE | |
Definition at line 183 of file item_shader.h.
|
inline |
Definition at line 174 of file item_shader.h.
Referenced by NT_TreeShader::calc_shaded_inner_GC().
| ItemShader* registerItemShader | ( | AW_root * | awr, |
| AW_gc_manager * | gcman, | ||
| BoundItemSel & | itemtype, | ||
| const char * | unique_id, | ||
| const char * | description, | ||
| const char * | help_id, | ||
| ReshadeCallback | reshade, | ||
| int | undef_gc | ||
| ) |
create a new ItemShader
| awr | the application root |
| gcman | gc-manager used for shading |
| itemtype | type of item |
| unique_id | unique ID |
| description | short description used ia. as title of config window (eg. "Tree shading") |
| help_id | helpfile |
| reshade_cb | callback which updates the shading + refreshes the display |
| undef_gc | GC reported for undefined ShadedValue |
(Note: the reshade_cb may be called very often! best is to trigger a temp. DB-awar like AWAR_TREE_RECOMPUTE)
Definition at line 615 of file item_shader.cxx.
References findItemShader(), is_assert, makeItemFieldShader(), and NULp.
1.8.8