]> git.cworth.org Git - vogl/blob - src/vogleditor/vogleditor_statetreetextureitem.h
Initial vogl checkin
[vogl] / src / vogleditor / vogleditor_statetreetextureitem.h
1 #ifndef VOGLEDITOR_STATETREETEXTUREITEM_H
2 #define VOGLEDITOR_STATETREETEXTUREITEM_H
3
4 #include "vogleditor_statetreeitem.h"
5
6 class vogl_texture_state;
7
8 class vogleditor_stateTreeTextureItem : public vogleditor_stateTreeItem
9 {
10 public:
11     vogleditor_stateTreeTextureItem(QString name, QString value, vogleditor_stateTreeItem* parent, vogl_texture_state* pState, const vogl_context_info& info);
12     virtual ~vogleditor_stateTreeTextureItem()
13     {
14         m_pTexture = NULL;
15         m_pDiffBaseState = NULL;
16     }
17
18     virtual state_tree_type getStateType() const { return vogleditor_stateTreeItem::cTEXTURE; }
19     vogl_texture_state* get_texture_state() const { return m_pTexture; }
20
21     void set_diff_base_state(const vogl_texture_state* pBaseState);
22
23 private:
24     vogl_texture_state* m_pTexture;
25     const vogl_texture_state* m_pDiffBaseState;
26     vogl::vector<vogleditor_stateTreeStateVecDiffableItem*> m_diffableItems;
27 };
28 #endif // VOGLEDITOR_STATETREETEXTUREITEM_H