#include "chrome/browser/vr/renderers/base_quad_renderer.h"
#include "device/vr/vr_gl_util.h"
#include "ui/gfx/geometry/transform.h"
namespace vr {
namespace {
static constexpr float kQuadVertices[8] = …;
static constexpr GLushort kQuadIndices[6] = …;
static constexpr int kQuadPositionDataSize = …;
}
BaseQuadRenderer::BaseQuadRenderer(const char* vertex_src,
const char* fragment_src)
: … { … }
BaseQuadRenderer::~BaseQuadRenderer() = default;
void BaseQuadRenderer::PrepareToDraw(GLuint view_proj_matrix_handle,
const gfx::Transform& view_proj_matrix) { … }
GLuint BaseQuadRenderer::vertex_buffer_ = …;
GLuint BaseQuadRenderer::index_buffer_ = …;
void BaseQuadRenderer::CreateBuffers() { … }
int BaseQuadRenderer::NumQuadIndices() { … }
}