Add a simple Range type to represent an integer 1D range.

TRAC #22497 Signed-off-by: Nicolas Capens Signed-off-by: Shannon Woods Author: Jamie Madill git-svn-id: https://angleproject.googlecode.com/svn/branches/dx11proto@1874 736b8ea6-26fd-11df-bfd4-992fa37f6226
parent 1abd7974
...@@ -13,6 +13,7 @@ ...@@ -13,6 +13,7 @@
#include <math.h> #include <math.h>
#include "common/system.h" #include "common/system.h"
#include "common/debug.h"
namespace gl namespace gl
{ {
...@@ -143,4 +144,18 @@ float float16ToFloat32(unsigned short h); ...@@ -143,4 +144,18 @@ float float16ToFloat32(unsigned short h);
} }
namespace rx
{
struct Range
{
Range() {}
Range(int lo, int hi) : start(lo), end(hi) { ASSERT(lo <= hi); }
int start;
int end;
};
}
#endif // LIBGLESV2_MATHUTIL_H_ #endif // LIBGLESV2_MATHUTIL_H_
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment