2014-03-04 11:14:35 +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/. */
|
|
|
|
|
2015-03-25 02:00:28 +03:00
|
|
|
#ifndef WEBGL_FRAMEBUFFER_ATTACHABLE_H_
|
|
|
|
#define WEBGL_FRAMEBUFFER_ATTACHABLE_H_
|
2014-03-04 11:14:35 +04:00
|
|
|
|
|
|
|
#include "GLDefs.h"
|
2015-03-17 07:32:52 +03:00
|
|
|
#include "mozilla/WeakPtr.h"
|
2015-03-25 02:00:28 +03:00
|
|
|
#include "nsTArray.h"
|
2014-07-30 23:52:07 +04:00
|
|
|
#include "WebGLFramebuffer.h"
|
2014-09-25 19:21:33 +04:00
|
|
|
#include "WebGLStrongTypes.h"
|
2014-03-04 11:14:35 +04:00
|
|
|
|
|
|
|
namespace mozilla {
|
|
|
|
|
|
|
|
class WebGLFramebufferAttachable
|
|
|
|
{
|
2015-03-25 02:00:28 +03:00
|
|
|
nsTArray<const WebGLFramebuffer::AttachPoint*> mAttachmentPoints;
|
2014-03-04 11:14:35 +04:00
|
|
|
|
|
|
|
public:
|
|
|
|
// Track FBO/Attachment combinations
|
2015-03-25 02:00:28 +03:00
|
|
|
void MarkAttachment(const WebGLFramebuffer::AttachPoint& attachment);
|
|
|
|
void UnmarkAttachment(const WebGLFramebuffer::AttachPoint& attachment);
|
|
|
|
void InvalidateStatusOfAttachedFBs() const;
|
2014-03-04 11:14:35 +04:00
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace mozilla
|
|
|
|
|
|
|
|
#endif // !WEBGLFRAMEBUFFERATTACHABLE_H_
|