Cleaned up #defines for BUFFER_OFFSET

This commit is contained in:
Bruno de Oliveira Abinader
2015-06-18 09:48:34 +03:00
parent 6fba1464e3
commit ff0e54f35a
9 changed files with 2 additions and 30 deletions

View File

@@ -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;

View File

@@ -6,10 +6,6 @@
#include <cassert>
#ifndef BUFFER_OFFSET
#define BUFFER_OFFSET(i) ((char *)nullptr + (i))
#endif
using namespace mbgl;
DebugBucket::DebugBucket(DebugFontBuffer& fontBuffer_)

View File

@@ -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;

View File

@@ -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;

View File

@@ -40,8 +40,6 @@
using namespace mbgl;
#define BUFFER_OFFSET(i) ((char *)nullptr + (i))
Painter::Painter() {
}

View File

@@ -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) {

View File

@@ -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) {

View File

@@ -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_)

View File

@@ -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,