]> git.cworth.org Git - vogl/blob - src/vogleditor/vogleditor_statetreesampleritem.h
Merge pull request #27 from PeterLValve/master
[vogl] / src / vogleditor / vogleditor_statetreesampleritem.h
1 #ifndef VOGLEDITOR_STATETREESAMPLERITEM_H
2 #define VOGLEDITOR_STATETREESAMPLERITEM_H
3
4 #include "vogleditor_statetreeitem.h"
5
6 class vogl_sampler_state;
7
8 class vogleditor_stateTreeSamplerItem : public vogleditor_stateTreeItem
9 {
10 public:
11    vogleditor_stateTreeSamplerItem(QString name, QString value, vogleditor_stateTreeItem* parent, const vogl_sampler_state* pState, const vogl_context_info& info);
12    virtual ~vogleditor_stateTreeSamplerItem() { m_pState = NULL; m_pDiffBaseState = NULL; }
13
14    const vogl_sampler_state* get_sampler_state() const { return m_pState; }
15
16    void set_diff_base_state(const vogl_sampler_state* pBaseState);
17
18 private:
19    const vogl_sampler_state* m_pState;
20    const vogl_sampler_state* m_pDiffBaseState;
21    vogl::vector<vogleditor_stateTreeStateVecDiffableItem*> m_diffableItems;
22 };
23
24 #endif // VOGLEDITOR_STATETREESAMPLERITEM_H