blob: 0af069a99a19007256ea098a0dfd23592957b12f [file] [log] [blame]
Geoff Langf9a6f082015-01-22 13:32:49 -05001//
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
13namespace rx
14{
15
Jamie Madilld1405e52015-03-05 15:41:39 -050016FramebufferGL::FramebufferGL(const gl::Framebuffer::Data &data)
17 : FramebufferImpl(data)
Geoff Langf9a6f082015-01-22 13:32:49 -050018{}
19
20FramebufferGL::~FramebufferGL()
21{}
22
23void FramebufferGL::setColorAttachment(size_t index, const gl::FramebufferAttachment *attachment)
24{
Geoff Langf1e85922015-02-23 14:40:04 -050025 //UNIMPLEMENTED();
Geoff Langf9a6f082015-01-22 13:32:49 -050026}
27
28void FramebufferGL::setDepthttachment(const gl::FramebufferAttachment *attachment)
29{
Geoff Langf1e85922015-02-23 14:40:04 -050030 //UNIMPLEMENTED();
Geoff Langf9a6f082015-01-22 13:32:49 -050031}
32
33void FramebufferGL::setStencilAttachment(const gl::FramebufferAttachment *attachment)
34{
Geoff Langf1e85922015-02-23 14:40:04 -050035 //UNIMPLEMENTED();
Geoff Langf9a6f082015-01-22 13:32:49 -050036}
37
38void FramebufferGL::setDepthStencilAttachment(const gl::FramebufferAttachment *attachment)
39{
Geoff Langf1e85922015-02-23 14:40:04 -050040 //UNIMPLEMENTED();
Geoff Langf9a6f082015-01-22 13:32:49 -050041}
42
43void FramebufferGL::setDrawBuffers(size_t count, const GLenum *buffers)
44{
Geoff Langf1e85922015-02-23 14:40:04 -050045 //UNIMPLEMENTED();
Geoff Langf9a6f082015-01-22 13:32:49 -050046}
47
48void FramebufferGL::setReadBuffer(GLenum buffer)
49{
Geoff Langf1e85922015-02-23 14:40:04 -050050 //UNIMPLEMENTED();
Geoff Langf9a6f082015-01-22 13:32:49 -050051}
52
53gl::Error FramebufferGL::invalidate(size_t count, const GLenum *attachments)
54{
55 UNIMPLEMENTED();
56 return gl::Error(GL_INVALID_OPERATION);
57}
58
59gl::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
65gl::Error FramebufferGL::clear(const gl::State &state, GLbitfield mask)
66{
67 UNIMPLEMENTED();
68 return gl::Error(GL_INVALID_OPERATION);
69}
70
71gl::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
77gl::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
83gl::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
89gl::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
95GLenum FramebufferGL::getImplementationColorReadFormat() const
96{
97 UNIMPLEMENTED();
98 return GLenum();
99}
100
101GLenum FramebufferGL::getImplementationColorReadType() const
102{
103 UNIMPLEMENTED();
104 return GLenum();
105}
106
107gl::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
113gl::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
120GLenum FramebufferGL::checkStatus() const
121{
122 UNIMPLEMENTED();
123 return GLenum();
124}
125
126}