2014-06-06 03:38:27 +04: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-14 07:03:50 +03:00
|
|
|
#ifndef WEBGL_VERTEX_ARRAY_FAKE_H_
|
|
|
|
#define WEBGL_VERTEX_ARRAY_FAKE_H_
|
2014-06-06 03:38:27 +04:00
|
|
|
|
|
|
|
#include "WebGLVertexArray.h"
|
|
|
|
|
|
|
|
namespace mozilla {
|
|
|
|
|
|
|
|
class WebGLVertexArrayFake MOZ_FINAL
|
|
|
|
: public WebGLVertexArray
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
virtual void BindVertexArrayImpl() MOZ_OVERRIDE;
|
2014-11-14 07:03:50 +03:00
|
|
|
virtual void DeleteImpl() MOZ_OVERRIDE {};
|
|
|
|
virtual void GenVertexArray() MOZ_OVERRIDE {};
|
2014-06-06 03:38:27 +04:00
|
|
|
|
|
|
|
private:
|
2014-11-14 07:03:50 +03:00
|
|
|
explicit WebGLVertexArrayFake(WebGLContext* webgl)
|
|
|
|
: WebGLVertexArray(webgl)
|
2014-06-06 03:38:27 +04:00
|
|
|
{ }
|
|
|
|
|
|
|
|
~WebGLVertexArrayFake() {
|
|
|
|
DeleteOnce();
|
|
|
|
}
|
|
|
|
|
|
|
|
friend class WebGLVertexArray;
|
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace mozilla
|
|
|
|
|
2014-11-14 07:03:50 +03:00
|
|
|
#endif // WEBGL_VERTEX_ARRAY_FAKE_H_
|