| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009 Apple Inc. All rights reserved. | 2 * Copyright (C) 2009 Apple Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 protected: | 61 protected: |
| 62 WebGLAttachment(); | 62 WebGLAttachment(); |
| 63 }; | 63 }; |
| 64 | 64 |
| 65 ~WebGLFramebuffer() override; | 65 ~WebGLFramebuffer() override; |
| 66 | 66 |
| 67 static WebGLFramebuffer* create(WebGLRenderingContextBase*); | 67 static WebGLFramebuffer* create(WebGLRenderingContextBase*); |
| 68 | 68 |
| 69 Platform3DObject object() const { return m_object; } | 69 Platform3DObject object() const { return m_object; } |
| 70 | 70 |
| 71 void setAttachmentForBoundFramebuffer(GLenum target, GLenum attachment, GLen
um texTarget, WebGLTexture*, GLint level); | 71 void setAttachmentForBoundFramebuffer(GLenum target, GLenum attachment, GLen
um texTarget, WebGLTexture*, GLint level, GLint layer); |
| 72 void setAttachmentForBoundFramebuffer(GLenum target, GLenum attachment, WebG
LRenderbuffer*); | 72 void setAttachmentForBoundFramebuffer(GLenum target, GLenum attachment, WebG
LRenderbuffer*); |
| 73 // If an object is attached to the currently bound framebuffer, remove it. | 73 // If an object is attached to the currently bound framebuffer, remove it. |
| 74 void removeAttachmentFromBoundFramebuffer(GLenum target, WebGLSharedObject*)
; | 74 void removeAttachmentFromBoundFramebuffer(GLenum target, WebGLSharedObject*)
; |
| 75 // If a given attachment point for the currently bound framebuffer is not nu
ll, remove the attached object. | 75 // If a given attachment point for the currently bound framebuffer is not nu
ll, remove the attached object. |
| 76 void removeAttachmentFromBoundFramebuffer(GLenum target, GLenum attachment); | 76 void removeAttachmentFromBoundFramebuffer(GLenum target, GLenum attachment); |
| 77 WebGLSharedObject* getAttachmentObject(GLenum) const; | 77 WebGLSharedObject* getAttachmentObject(GLenum) const; |
| 78 | 78 |
| 79 GLenum colorBufferFormat() const; | 79 GLenum colorBufferFormat() const; |
| 80 | 80 |
| 81 // This should always be called before drawArray, drawElements, clear, | 81 // This should always be called before drawArray, drawElements, clear, |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 141 | 141 |
| 142 Vector<GLenum> m_drawBuffers; | 142 Vector<GLenum> m_drawBuffers; |
| 143 Vector<GLenum> m_filteredDrawBuffers; | 143 Vector<GLenum> m_filteredDrawBuffers; |
| 144 | 144 |
| 145 GLenum m_readBuffer; | 145 GLenum m_readBuffer; |
| 146 }; | 146 }; |
| 147 | 147 |
| 148 } // namespace blink | 148 } // namespace blink |
| 149 | 149 |
| 150 #endif // WebGLFramebuffer_h | 150 #endif // WebGLFramebuffer_h |
| OLD | NEW |