Move markerVO from Renderer to glmarker.cpp

As it's a common static buffer
pull/562/head
Hleb Valoshka 2019-12-01 22:15:11 +03:00
parent f8a4d69491
commit cb6162f4aa
2 changed files with 3 additions and 3 deletions

View File

@ -8,12 +8,12 @@
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
#include "marker.h"
#include <celmath/mathlib.h>
#include <celutil/util.h>
#include <GL/glew.h>
#include <vector>
#include "render.h"
#include "marker.h"
using namespace std;
@ -213,6 +213,8 @@ static void initVO(VertexObject& vo)
vo.setVertices(2, GL_FLOAT, false, 0, 0);
}
celgl::VertexObject markerVO{ GL_ARRAY_BUFFER, 0, GL_STATIC_DRAW };
void Renderer::renderMarker(MarkerRepresentation::Symbol symbol, float size, const Color& color)
{
assert(shaderManager != nullptr);

View File

@ -705,8 +705,6 @@ class Renderer
int m_GLStateFlag { 0 };
celgl::VertexObject markerVO{ GL_ARRAY_BUFFER, 0, GL_STATIC_DRAW };
public:
#if 0
struct OrbitSample