Geoff Lang | f9a6f08 | 2015-01-22 13:32:49 -0500 | [diff] [blame^] | 1 | // |
| 2 | // Copyright 2015 The ANGLE Project Authors. All rights reserved. |
| 3 | // Use of this source code is governed by a BSD-style license that can be |
| 4 | // found in the LICENSE file. |
| 5 | // |
| 6 | |
| 7 | // FramebufferGL.cpp: Implements the class methods for FramebufferGL. |
| 8 | |
| 9 | #include "libANGLE/renderer/gl/FramebufferGL.h" |
| 10 | |
| 11 | #include "common/debug.h" |
| 12 | |
| 13 | namespace rx |
| 14 | { |
| 15 | |
| 16 | FramebufferGL::FramebufferGL() |
| 17 | : FramebufferImpl() |
| 18 | {} |
| 19 | |
| 20 | FramebufferGL::~FramebufferGL() |
| 21 | {} |
| 22 | |
| 23 | void FramebufferGL::setColorAttachment(size_t index, const gl::FramebufferAttachment *attachment) |
| 24 | { |
| 25 | UNIMPLEMENTED(); |
| 26 | } |
| 27 | |
| 28 | void FramebufferGL::setDepthttachment(const gl::FramebufferAttachment *attachment) |
| 29 | { |
| 30 | UNIMPLEMENTED(); |
| 31 | } |
| 32 | |
| 33 | void FramebufferGL::setStencilAttachment(const gl::FramebufferAttachment *attachment) |
| 34 | { |
| 35 | UNIMPLEMENTED(); |
| 36 | } |
| 37 | |
| 38 | void FramebufferGL::setDepthStencilAttachment(const gl::FramebufferAttachment *attachment) |
| 39 | { |
| 40 | UNIMPLEMENTED(); |
| 41 | } |
| 42 | |
| 43 | void FramebufferGL::setDrawBuffers(size_t count, const GLenum *buffers) |
| 44 | { |
| 45 | UNIMPLEMENTED(); |
| 46 | } |
| 47 | |
| 48 | void FramebufferGL::setReadBuffer(GLenum buffer) |
| 49 | { |
| 50 | UNIMPLEMENTED(); |
| 51 | } |
| 52 | |
| 53 | gl::Error FramebufferGL::invalidate(size_t count, const GLenum *attachments) |
| 54 | { |
| 55 | UNIMPLEMENTED(); |
| 56 | return gl::Error(GL_INVALID_OPERATION); |
| 57 | } |
| 58 | |
| 59 | gl::Error FramebufferGL::invalidateSub(size_t count, const GLenum *attachments, const gl::Rectangle &area) |
| 60 | { |
| 61 | UNIMPLEMENTED(); |
| 62 | return gl::Error(GL_INVALID_OPERATION); |
| 63 | } |
| 64 | |
| 65 | gl::Error FramebufferGL::clear(const gl::State &state, GLbitfield mask) |
| 66 | { |
| 67 | UNIMPLEMENTED(); |
| 68 | return gl::Error(GL_INVALID_OPERATION); |
| 69 | } |
| 70 | |
| 71 | gl::Error FramebufferGL::clearBufferfv(const gl::State &state, GLenum buffer, GLint drawbuffer, const GLfloat *values) |
| 72 | { |
| 73 | UNIMPLEMENTED(); |
| 74 | return gl::Error(GL_INVALID_OPERATION); |
| 75 | } |
| 76 | |
| 77 | gl::Error FramebufferGL::clearBufferuiv(const gl::State &state, GLenum buffer, GLint drawbuffer, const GLuint *values) |
| 78 | { |
| 79 | UNIMPLEMENTED(); |
| 80 | return gl::Error(GL_INVALID_OPERATION); |
| 81 | } |
| 82 | |
| 83 | gl::Error FramebufferGL::clearBufferiv(const gl::State &state, GLenum buffer, GLint drawbuffer, const GLint *values) |
| 84 | { |
| 85 | UNIMPLEMENTED(); |
| 86 | return gl::Error(GL_INVALID_OPERATION); |
| 87 | } |
| 88 | |
| 89 | gl::Error FramebufferGL::clearBufferfi(const gl::State &state, GLenum buffer, GLint drawbuffer, GLfloat depth, GLint stencil) |
| 90 | { |
| 91 | UNIMPLEMENTED(); |
| 92 | return gl::Error(GL_INVALID_OPERATION); |
| 93 | } |
| 94 | |
| 95 | GLenum FramebufferGL::getImplementationColorReadFormat() const |
| 96 | { |
| 97 | UNIMPLEMENTED(); |
| 98 | return GLenum(); |
| 99 | } |
| 100 | |
| 101 | GLenum FramebufferGL::getImplementationColorReadType() const |
| 102 | { |
| 103 | UNIMPLEMENTED(); |
| 104 | return GLenum(); |
| 105 | } |
| 106 | |
| 107 | gl::Error FramebufferGL::readPixels(const gl::State &state, const gl::Rectangle &area, GLenum format, GLenum type, GLvoid *pixels) const |
| 108 | { |
| 109 | UNIMPLEMENTED(); |
| 110 | return gl::Error(GL_INVALID_OPERATION); |
| 111 | } |
| 112 | |
| 113 | gl::Error FramebufferGL::blit(const gl::State &state, const gl::Rectangle &sourceArea, const gl::Rectangle &destArea, |
| 114 | GLbitfield mask, GLenum filter, const gl::Framebuffer *sourceFramebuffer) |
| 115 | { |
| 116 | UNIMPLEMENTED(); |
| 117 | return gl::Error(GL_INVALID_OPERATION); |
| 118 | } |
| 119 | |
| 120 | GLenum FramebufferGL::checkStatus() const |
| 121 | { |
| 122 | UNIMPLEMENTED(); |
| 123 | return GLenum(); |
| 124 | } |
| 125 | |
| 126 | } |