Ion
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
buffertoattributebinder.cc File Reference
#include "ion/gfxutils/buffertoattributebinder.h"
#include "base/integral_types.h"
#include "ion/base/logging.h"
#include "ion/math/vector.h"
Include dependency graph for buffertoattributebinder.cc:

Go to the source code of this file.

Namespaces

 ion
 Copyright 2016 Google Inc.
 
 ion::gfxutils
 

Macros

#define DefineComponentFunctionPair(c_type, bo_type, count)
 
#define DefineComponentFunctions(c_type, bo_type, suffix)
 

Functions

 ion::gfxutils::DefineComponentFunctions (char, kByte, i8)
 
 ion::gfxutils::DefineComponentFunctions (unsigned char, kUnsignedByte, ui8)
 
 ion::gfxutils::DefineComponentFunctions (int16, kShort, i16)
 
 ion::gfxutils::DefineComponentFunctions (uint16, kUnsignedShort, ui16)
 
 ion::gfxutils::DefineComponentFunctions (int32, kInt, i)
 
 ion::gfxutils::DefineComponentFunctions (uint32, kUnsignedInt, ui)
 
 ion::gfxutils::DefineComponentFunctions (float, kFloat, f)
 
 ion::gfxutils::DefineComponentFunctionPair (math::Matrix2f, kFloatMatrixColumn2, 2U)
 
 ion::gfxutils::DefineComponentFunctionPair (math::Matrix3f, kFloatMatrixColumn3, 3U)
 
 ion::gfxutils::DefineComponentFunctionPair (math::Matrix4f, kFloatMatrixColumn4, 4U)
 

Macro Definition Documentation

#define DefineComponentFunctionPair (   c_type,
  bo_type,
  count 
)
Value:
template <> \
ION_API gfx::BufferObject::ComponentType \
GetComponentType<c_type>() { \
return gfx::BufferObject::bo_type; \
} \
template <> \
ION_API size_t GetComponentCount<c_type>() { \
return count; \
}

Definition at line 27 of file buffertoattributebinder.cc.

#define DefineComponentFunctions (   c_type,
  bo_type,
  suffix 
)
Value:
DefineComponentFunctionPair(c_type, bo_type, 1U); \
DefineComponentFunctionPair(math::VectorBase1##suffix, bo_type, 1U); \
DefineComponentFunctionPair(math::VectorBase2##suffix, bo_type, 2U); \
DefineComponentFunctionPair(math::VectorBase3##suffix, bo_type, 3U); \
DefineComponentFunctionPair(math::VectorBase4##suffix, bo_type, 4U);
#define DefineComponentFunctionPair(c_type, bo_type, count)

Definition at line 38 of file buffertoattributebinder.cc.