ARB
Classes | Macros | Typedefs | Enumerations | Functions
item_shader.h File Reference
#include <smartptr.h>
#include <arb_msg.h>
#include <aw_base.hxx>
#include <items.h>
#include <aw_color_groups.hxx>
#include <string>
Include dependency graph for item_shader.h:
This graph shows which files directly or indirectly include this file:

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< ShaderPluginShaderPluginPtr
 
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)
 
ItemShaderregisterItemShader (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)
 

Macro Definition Documentation

#define is_assert (   cond)    arb_assert(cond)
#define NO_PLUGIN_SELECTED   ""

Typedef Documentation

Definition at line 172 of file item_shader.h.

Definition at line 249 of file item_shader.h.

typedef void(* ReshadeCallback)()

Definition at line 256 of file item_shader.h.

Enumeration Type Documentation

Enumerator
SIMPLE_RESHADE 
CHECK_DIMENSION_CHANGE 

Definition at line 183 of file item_shader.h.

Function Documentation

ShadedValue mix ( const ShadedValue val1,
float  val1_ratio,
const ShadedValue val2 
)
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

Parameters
awrthe application root
gcmangc-manager used for shading
itemtypetype of item
unique_idunique ID
descriptionshort description used ia. as title of config window (eg. "Tree shading")
help_idhelpfile
reshade_cbcallback which updates the shading + refreshes the display
undef_gcGC 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.