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