blob: 2edf1071feb4573e252c80dbf71712d1b093661f [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
16FramebufferGL::FramebufferGL()
17 : FramebufferImpl()
18{}
19
20FramebufferGL::~FramebufferGL()
21{}
22
23void FramebufferGL::setColorAttachment(size_t index, const gl::FramebufferAttachment *attachment)
24{
25 UNIMPLEMENTED();
26}
27
28void FramebufferGL::setDepthttachment(const gl::FramebufferAttachment *attachment)
29{
30 UNIMPLEMENTED();
31}
32
33void FramebufferGL::setStencilAttachment(const gl::FramebufferAttachment *attachment)
34{
35 UNIMPLEMENTED();
36}
37
38void FramebufferGL::setDepthStencilAttachment(const gl::FramebufferAttachment *attachment)
39{
40 UNIMPLEMENTED();
41}
42
43void FramebufferGL::setDrawBuffers(size_t count, const GLenum *buffers)
44{
45 UNIMPLEMENTED();
46}
47
48void FramebufferGL::setReadBuffer(GLenum buffer)
49{
50 UNIMPLEMENTED();
51}
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}