-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCompressedBox.h
39 lines (31 loc) · 1.38 KB
/
CompressedBox.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
/*
* Copyright (C) fastman92 <[email protected]>, website: http://fastman92.com
* Licensed under the MIT License, see LICENSE at top level directory.
*
*/
#pragma once
#include "CompressedVector.h"
template<template<class> class Wrapper, typename T> class CompressedBox2D_templateForSingleType
{
public:
CompressedVector2D_templateForSingleType<Wrapper, T> m_vInf;
CompressedVector2D_templateForSingleType<Wrapper, T> m_vSup;
};
template<template<class> class Wrapper, typename T> class CompressedBox_templateForSingleType
{
public:
CompressedVector_templateForSingleType<Wrapper, T> m_vInf;
CompressedVector_templateForSingleType<Wrapper, T> m_vSup;
};
template <template<class> class Wrapper>
using CompressedBox2D_template = CompressedBox2D_templateForSingleType<Wrapper, int16_t>;
template <template<class> class Wrapper>
using CompressedBox2D_extended_template = CompressedBox2D_templateForSingleType<Wrapper, int32_t>;
template <template<class> class Wrapper>
using CompressedBox_template = CompressedBox_templateForSingleType<Wrapper, int16_t>;
template <template<class> class Wrapper>
using CompressedBox_extended_template = CompressedBox_templateForSingleType<Wrapper, int32_t>;
DEFINE_ENDIAN_STRUCTURE_DEFAULT(CompressedBox2D);
DEFINE_ENDIAN_STRUCTURE_DEFAULT(CompressedBox2D_extended);
DEFINE_ENDIAN_STRUCTURE_DEFAULT(CompressedBox_extended);
DEFINE_ENDIAN_STRUCTURE_DEFAULT(CompressedBox);