2014-06-05 16:38:27 -07:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
|
2014-11-13 20:03:50 -08:00
|
|
|
#ifndef WEBGL_VERTEX_ARRAY_GL_H_
|
|
|
|
#define WEBGL_VERTEX_ARRAY_GL_H_
|
2014-06-05 16:38:27 -07:00
|
|
|
|
|
|
|
#include "WebGLVertexArray.h"
|
|
|
|
|
|
|
|
namespace mozilla {
|
|
|
|
|
2015-03-21 09:28:04 -07:00
|
|
|
class WebGLVertexArrayGL final
|
2014-06-05 16:38:27 -07:00
|
|
|
: public WebGLVertexArray
|
|
|
|
{
|
|
|
|
public:
|
2015-03-21 09:28:04 -07:00
|
|
|
virtual void DeleteImpl() override;
|
|
|
|
virtual void BindVertexArrayImpl() override;
|
|
|
|
virtual void GenVertexArray() override;
|
2014-06-05 16:38:27 -07:00
|
|
|
|
|
|
|
private:
|
2014-11-13 20:03:50 -08:00
|
|
|
explicit WebGLVertexArrayGL(WebGLContext* webgl)
|
|
|
|
: WebGLVertexArray(webgl)
|
2014-06-05 16:38:27 -07:00
|
|
|
{ }
|
|
|
|
|
|
|
|
~WebGLVertexArrayGL() {
|
|
|
|
DeleteOnce();
|
|
|
|
}
|
|
|
|
|
|
|
|
friend class WebGLVertexArray;
|
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace mozilla
|
|
|
|
|
2014-11-13 20:03:50 -08:00
|
|
|
#endif // WEBGL_VERTEX_ARRAY_GL_H_
|