port collision box debug rendering
This commit is contained in:
23
src/mbgl/geometry/collision_box_buffer.hpp
Normal file
23
src/mbgl/geometry/collision_box_buffer.hpp
Normal file
@@ -0,0 +1,23 @@
|
||||
#ifndef MBGL_GEOMETRY_COLLISIONBOX_BUFFER
|
||||
#define MBGL_GEOMETRY_COLLISIONBOX_BUFFER
|
||||
|
||||
#include <mbgl/geometry/buffer.hpp>
|
||||
#include <array>
|
||||
|
||||
namespace mbgl {
|
||||
|
||||
class CollisionBoxVertexBuffer : public Buffer <
|
||||
12,
|
||||
GL_ARRAY_BUFFER,
|
||||
32768
|
||||
> {
|
||||
public:
|
||||
typedef int16_t vertex_type;
|
||||
|
||||
size_t add(int16_t x, int16_t y, float ex, float ey, float maxzoom, float placementZoom);
|
||||
};
|
||||
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user