Ion
|
#include "ion/gfx/statetable.h"
#include "ion/base/argcount.h"
#include "ion/base/enumhelper.h"
#include "ion/base/logging.h"
#include "ion/base/static_assert.h"
#include "ion/portgfx/glheaders.h"
Go to the source code of this file.
Namespaces | |
ion | |
Copyright 2016 Google Inc. | |
ion::gfx | |
ion::base | |
EnumHelper instantiations. These must be in the ion::base namespace. | |
Macros | |
#define | ION_UPDATE_VALUE1(n) data_.n = other.data_.n |
Definitions for each number of arguments. More... | |
#define | ION_UPDATE_VALUE2(n1, n2) |
#define | ION_UPDATE_VALUE3(n1, n2, n3) |
#define | ION_UPDATE_VALUE4(n1, n2, n3, n4) |
#define | ION_UPDATE_VALUE5(n1, n2, n3, n4, n5) |
#define | ION_UPDATE_VALUE6(n1, n2, n3, n4, n5, n6) |
#define | ION_UPDATE_VALUE_(UPDATE_VALUE_MACRO,...) UPDATE_VALUE_MACRO(__VA_ARGS__) |
#define | ION_UPDATE_VALUE(enum_name,...) |
This will call the right macro above by concatenating the macro name with the number of arguments. More... | |
#define | ION_COPY_VAL(var) data_.var = default_data.var |
#define | ION_INSTANTIATE_GETENUMSTRING(type) |
Enum to string utility functions. More... | |
#define | ION_CHECK_ARRAYS(enums, strings) |
Functions | |
ion::gfx::ION_INSTANTIATE_GETENUMSTRING (Capability) | |
ion::gfx::ION_INSTANTIATE_GETENUMSTRING (BlendEquation) | |
ion::gfx::ION_INSTANTIATE_GETENUMSTRING (BlendFunctionFactor) | |
ion::gfx::ION_INSTANTIATE_GETENUMSTRING (CullFaceMode) | |
ion::gfx::ION_INSTANTIATE_GETENUMSTRING (DepthFunction) | |
ion::gfx::ION_INSTANTIATE_GETENUMSTRING (FrontFaceMode) | |
ion::gfx::ION_INSTANTIATE_GETENUMSTRING (HintMode) | |
ion::gfx::ION_INSTANTIATE_GETENUMSTRING (StencilFunction) | |
ion::gfx::ION_INSTANTIATE_GETENUMSTRING (StencilOperation) | |
#define ION_CHECK_ARRAYS | ( | enums, | |
strings | |||
) |
Definition at line 509 of file statetable.cc.
Referenced by ion::base::EnumHelper::GetEnumData().
#define ION_COPY_VAL | ( | var | ) | data_.var = default_data.var |
Referenced by ion::gfx::StateTable::ResetValue().
#define ION_INSTANTIATE_GETENUMSTRING | ( | type | ) |
Enum to string utility functions.
Definition at line 482 of file statetable.cc.
#define ION_UPDATE_VALUE | ( | enum_name, | |
... | |||
) |
This will call the right macro above by concatenating the macro name with the number of arguments.
Definition at line 70 of file statetable.cc.
Referenced by ion::gfx::StateTable::MergeNonClearValuesFrom(), and ion::gfx::StateTable::MergeValuesFrom().
#define ION_UPDATE_VALUE1 | ( | n | ) | data_.n = other.data_.n |
Definitions for each number of arguments.
Definition at line 49 of file statetable.cc.
#define ION_UPDATE_VALUE2 | ( | n1, | |
n2 | |||
) |
Definition at line 50 of file statetable.cc.
#define ION_UPDATE_VALUE3 | ( | n1, | |
n2, | |||
n3 | |||
) |
Definition at line 53 of file statetable.cc.
#define ION_UPDATE_VALUE4 | ( | n1, | |
n2, | |||
n3, | |||
n4 | |||
) |
Definition at line 56 of file statetable.cc.
#define ION_UPDATE_VALUE5 | ( | n1, | |
n2, | |||
n3, | |||
n4, | |||
n5 | |||
) |
Definition at line 59 of file statetable.cc.
#define ION_UPDATE_VALUE6 | ( | n1, | |
n2, | |||
n3, | |||
n4, | |||
n5, | |||
n6 | |||
) |
Definition at line 62 of file statetable.cc.
#define ION_UPDATE_VALUE_ | ( | UPDATE_VALUE_MACRO, | |
... | |||
) | UPDATE_VALUE_MACRO(__VA_ARGS__) |
Definition at line 65 of file statetable.cc.