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 | // TextureGL.cpp: Implements the class methods for TextureGL. |
| 8 | |
| 9 | #include "libANGLE/renderer/gl/TextureGL.h" |
| 10 | |
| 11 | #include "common/debug.h" |
| 12 | |
| 13 | namespace rx |
| 14 | { |
| 15 | |
| 16 | TextureGL::TextureGL() |
| 17 | : TextureImpl() |
| 18 | {} |
| 19 | |
| 20 | TextureGL::~TextureGL() |
| 21 | {} |
| 22 | |
| 23 | void TextureGL::setUsage(GLenum usage) |
| 24 | { |
| 25 | UNIMPLEMENTED(); |
| 26 | } |
| 27 | |
| 28 | gl::Error TextureGL::setImage(GLenum target, size_t level, GLenum internalFormat, const gl::Extents &size, GLenum format, GLenum type, |
| 29 | const gl::PixelUnpackState &unpack, const uint8_t *pixels) |
| 30 | { |
| 31 | UNIMPLEMENTED(); |
| 32 | return gl::Error(GL_INVALID_OPERATION); |
| 33 | } |
| 34 | |
| 35 | gl::Error TextureGL::setSubImage(GLenum target, size_t level, const gl::Box &area, GLenum format, GLenum type, |
| 36 | const gl::PixelUnpackState &unpack, const uint8_t *pixels) |
| 37 | { |
| 38 | UNIMPLEMENTED(); |
| 39 | return gl::Error(GL_INVALID_OPERATION); |
| 40 | } |
| 41 | |
| 42 | gl::Error TextureGL::setCompressedImage(GLenum target, size_t level, GLenum internalFormat, const gl::Extents &size, |
| 43 | const gl::PixelUnpackState &unpack, const uint8_t *pixels) |
| 44 | { |
| 45 | UNIMPLEMENTED(); |
| 46 | return gl::Error(GL_INVALID_OPERATION); |
| 47 | } |
| 48 | |
| 49 | gl::Error TextureGL::setCompressedSubImage(GLenum target, size_t level, const gl::Box &area, GLenum format, |
| 50 | const gl::PixelUnpackState &unpack, const uint8_t *pixels) |
| 51 | { |
| 52 | UNIMPLEMENTED(); |
| 53 | return gl::Error(GL_INVALID_OPERATION); |
| 54 | } |
| 55 | |
| 56 | gl::Error TextureGL::copyImage(GLenum target, size_t level, const gl::Rectangle &sourceArea, GLenum internalFormat, |
| 57 | const gl::Framebuffer *source) |
| 58 | { |
| 59 | UNIMPLEMENTED(); |
| 60 | return gl::Error(GL_INVALID_OPERATION); |
| 61 | } |
| 62 | |
| 63 | gl::Error TextureGL::copySubImage(GLenum target, size_t level, const gl::Offset &destOffset, const gl::Rectangle &sourceArea, |
| 64 | const gl::Framebuffer *source) |
| 65 | { |
| 66 | UNIMPLEMENTED(); |
| 67 | return gl::Error(GL_INVALID_OPERATION); |
| 68 | } |
| 69 | |
| 70 | gl::Error TextureGL::setStorage(GLenum target, size_t levels, GLenum internalFormat, const gl::Extents &size) |
| 71 | { |
| 72 | UNIMPLEMENTED(); |
| 73 | return gl::Error(GL_INVALID_OPERATION); |
| 74 | } |
| 75 | |
| 76 | gl::Error TextureGL::generateMipmaps() |
| 77 | { |
| 78 | UNIMPLEMENTED(); |
| 79 | return gl::Error(GL_INVALID_OPERATION); |
| 80 | } |
| 81 | |
| 82 | void TextureGL::bindTexImage(egl::Surface *surface) |
| 83 | { |
| 84 | UNIMPLEMENTED(); |
| 85 | } |
| 86 | |
| 87 | void TextureGL::releaseTexImage() |
| 88 | { |
| 89 | UNIMPLEMENTED(); |
| 90 | } |
| 91 | |
| 92 | } |