Ion
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
updatestatetable.h
Go to the documentation of this file.
1 
18 #ifndef ION_GFX_UPDATESTATETABLE_H_
19 #define ION_GFX_UPDATESTATETABLE_H_
20 
21 namespace ion {
22 namespace gfx {
23 
24 class GraphicsManager;
25 class StateTable;
26 
31 void UpdateStateTable(int default_width, int default_height,
32  GraphicsManager* gm, StateTable* st);
33 
38 void UpdateSettingsInStateTable(StateTable* st, GraphicsManager* gm);
39 
45 void ClearFromStateTable(const StateTable& new_state,
46  StateTable* save_state,
47  GraphicsManager* gm);
48 
56 void UpdateFromStateTable(const StateTable& new_state,
57  StateTable* save_state,
58  GraphicsManager* gm);
59 
60 } // namespace gfx
61 } // namespace ion
62 
63 #endif // ION_GFX_UPDATESTATETABLE_H_
void UpdateSettingsInStateTable(StateTable *st, GraphicsManager *gm)
This internal function can be used to update a StateTable instance to match the current OpenGL settin...
void ClearFromStateTable(const StateTable &new_state, StateTable *save_state, GraphicsManager *gm)
This internal function can be used to update the Clear()-related OpenGL state (dithering, scissor test, write masks, scissor box, and clear values) managed by a GraphicsManager to match a StateTable, and updates save_state to contain the new state.
void UpdateStateTable(int default_width, int default_height, GraphicsManager *gm, StateTable *st)
Public functions.
void UpdateFromStateTable(const StateTable &new_state, StateTable *save_state, GraphicsManager *gm)
This internal function can be used to update the OpenGL state managed by a GraphicsManager to match a...