20 #include "base/integral_types.h"
27 #define DefineComponentFunctionPair(c_type, bo_type, count) \
29 ION_API gfx::BufferObject::ComponentType \
30 GetComponentType<c_type>() { \
31 return gfx::BufferObject::bo_type; \
34 ION_API size_t GetComponentCount<c_type>() { \
38 #define DefineComponentFunctions(c_type, bo_type, suffix) \
39 DefineComponentFunctionPair(c_type, bo_type, 1U); \
40 DefineComponentFunctionPair(math::VectorBase1##suffix, bo_type, 1U); \
41 DefineComponentFunctionPair(math::VectorBase2##suffix, bo_type, 2U); \
42 DefineComponentFunctionPair(math::VectorBase3##suffix, bo_type, 3U); \
43 DefineComponentFunctionPair(math::VectorBase4##suffix, bo_type, 4U);
56 #undef DefineComponentFunctions
57 #undef DefineComponentFunctionPair
Matrix< 4, float > Matrix4f
Matrix< 3, float > Matrix3f
DefineComponentFunctions(char, kByte, i8)
DefineComponentFunctionPair(math::Matrix2f, kFloatMatrixColumn2, 2U)
Copyright 2016 Google Inc.
Matrix< 2, float > Matrix2f
Dimension- and type-specific typedefs.