source: branches/ali/SL/ITEM_SHADER/field_shader.h

Last change on this file was 14958, checked in by westram, 8 years ago
  • add stub for ItemFieldShader
    • currently always returns 'undefined'
  • NT_TreeShader
    • paints with AWT_GC_NONE_MARKED if shaded value is 'undefined'
    • added init() (called after shader has been installed in AP_tree). initializes ItemShader.
    • install tree shader after 1st AW_gc_manager was initialized, but before 1st display refresh
  • ItemShader
    • knows wanted overlay of "marked" and "color groups" (delegates to plugin)
    • installs plugin ItemFieldShader automatically
  • ShaderPlugin
    • initializes common and specific awars when plugged into ItemShader
    • knows wanted overlay of "marked" and "color groups" (stored in awars)
  • GUI
    • added toggles for overlay (GUI awars are mapped to awars of selected plugin)
    • global 'Enable color groups' toggle (AW_preset.cxx) triggers plugin local toggle (otherwise global toggle would seem disfunctional when a plugin is active (eg. by accident))
File size: 836 bytes
Line 
1// ============================================================ //
2//                                                              //
3//   File      : field_shader.h                                 //
4//   Purpose   : shader plugin using DB fields                  //
5//                                                              //
6//   Coded by Ralf Westram (coder@reallysoft.de) in June 2016   //
7//   http://www.arb-home.de/                                    //
8//                                                              //
9// ============================================================ //
10
11#ifndef FIELD_SHADER_H
12#define FIELD_SHADER_H
13
14#ifndef ITEM_SHADER_H
15#include "item_shader.h"
16#endif
17
18ShaderPluginPtr makeItemFieldShader(BoundItemSel& itemtype);
19
20#else
21#error field_shader.h included twice
22#endif // FIELD_SHADER_H
Note: See TracBrowser for help on using the repository browser.