Cleaned up #defines for BUFFER_OFFSET
This commit is contained in:
@@ -5,6 +5,8 @@
|
||||
#include <mbgl/util/noncopyable.hpp>
|
||||
#include <mbgl/util/mat4.hpp>
|
||||
|
||||
#define BUFFER_OFFSET(i) ((char*)nullptr + (i))
|
||||
|
||||
namespace mbgl {
|
||||
|
||||
class Painter;
|
||||
|
||||
@@ -6,10 +6,6 @@
|
||||
|
||||
#include <cassert>
|
||||
|
||||
#ifndef BUFFER_OFFSET
|
||||
#define BUFFER_OFFSET(i) ((char *)nullptr + (i))
|
||||
#endif
|
||||
|
||||
using namespace mbgl;
|
||||
|
||||
DebugBucket::DebugBucket(DebugFontBuffer& fontBuffer_)
|
||||
|
||||
@@ -12,10 +12,6 @@
|
||||
|
||||
#include <cassert>
|
||||
|
||||
#ifndef BUFFER_OFFSET
|
||||
#define BUFFER_OFFSET(i) ((char *)nullptr + (i))
|
||||
#endif
|
||||
|
||||
struct geometry_too_long_exception : std::exception {};
|
||||
|
||||
using namespace mbgl;
|
||||
|
||||
@@ -10,10 +10,6 @@
|
||||
#include <mbgl/util/math.hpp>
|
||||
#include <mbgl/platform/gl.hpp>
|
||||
|
||||
#ifndef BUFFER_OFFSET
|
||||
#define BUFFER_OFFSET(i) ((char*)nullptr + (i))
|
||||
#endif
|
||||
|
||||
#include <cassert>
|
||||
|
||||
using namespace mbgl;
|
||||
|
||||
@@ -40,8 +40,6 @@
|
||||
|
||||
using namespace mbgl;
|
||||
|
||||
#define BUFFER_OFFSET(i) ((char *)nullptr + (i))
|
||||
|
||||
Painter::Painter() {
|
||||
}
|
||||
|
||||
|
||||
@@ -4,10 +4,6 @@
|
||||
#include <mbgl/util/clip_id.hpp>
|
||||
#include <mbgl/gl/debugging.hpp>
|
||||
|
||||
#ifndef BUFFER_OFFSET
|
||||
#define BUFFER_OFFSET(i) ((char *)nullptr + (i))
|
||||
#endif
|
||||
|
||||
using namespace mbgl;
|
||||
|
||||
void Painter::drawClippingMasks(const std::set<Source*>& sources) {
|
||||
|
||||
@@ -6,10 +6,6 @@
|
||||
#include <mbgl/util/string.hpp>
|
||||
#include <mbgl/gl/debugging.hpp>
|
||||
|
||||
#ifndef BUFFER_OFFSET
|
||||
#define BUFFER_OFFSET(i) ((char *)nullptr + (i))
|
||||
#endif
|
||||
|
||||
using namespace mbgl;
|
||||
|
||||
void Painter::renderTileDebug(const Tile& tile) {
|
||||
|
||||
@@ -2,10 +2,6 @@
|
||||
#include <mbgl/shader/raster_shader.hpp>
|
||||
#include <mbgl/renderer/painter.hpp>
|
||||
|
||||
#ifndef BUFFER_OFFSET
|
||||
#define BUFFER_OFFSET(i) ((char *)nullptr + (i))
|
||||
#endif
|
||||
|
||||
using namespace mbgl;
|
||||
|
||||
RasterBucket::RasterBucket(TexturePool& texturePool, const StyleLayoutRaster& layout_)
|
||||
|
||||
@@ -24,10 +24,6 @@
|
||||
#include <mbgl/util/clip_lines.hpp>
|
||||
#include <mbgl/util/std.hpp>
|
||||
|
||||
#ifndef BUFFER_OFFSET
|
||||
#define BUFFER_OFFSET(i) ((char *)nullptr + (i))
|
||||
#endif
|
||||
|
||||
namespace mbgl {
|
||||
|
||||
SymbolInstance::SymbolInstance(Anchor &anchor, const std::vector<Coordinate> &line,
|
||||
|
||||
Reference in New Issue
Block a user