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" |
Jamie Madill | 67102f0 | 2015-03-16 10:41:42 -0400 | [diff] [blame] | 12 | #include "libANGLE/State.h" |
Geoff Lang | f9a6f08 | 2015-01-22 13:32:49 -0500 | [diff] [blame] | 13 | |
| 14 | namespace rx |
| 15 | { |
| 16 | |
| 17 | TextureGL::TextureGL() |
| 18 | : TextureImpl() |
| 19 | {} |
| 20 | |
| 21 | TextureGL::~TextureGL() |
| 22 | {} |
| 23 | |
| 24 | void TextureGL::setUsage(GLenum usage) |
| 25 | { |
| 26 | UNIMPLEMENTED(); |
| 27 | } |
| 28 | |
| 29 | gl::Error TextureGL::setImage(GLenum target, size_t level, GLenum internalFormat, const gl::Extents &size, GLenum format, GLenum type, |
| 30 | const gl::PixelUnpackState &unpack, const uint8_t *pixels) |
| 31 | { |
Jamie Madill | 67102f0 | 2015-03-16 10:41:42 -0400 | [diff] [blame] | 32 | if (unpack.skipRows != 0 || unpack.skipPixels != 0 || unpack.imageHeight != 0 || unpack.skipImages != 0) |
| 33 | { |
| 34 | UNIMPLEMENTED(); |
| 35 | return gl::Error(GL_INVALID_OPERATION, "unimplemented pixel store state"); |
| 36 | } |
| 37 | |
Geoff Lang | f9a6f08 | 2015-01-22 13:32:49 -0500 | [diff] [blame] | 38 | UNIMPLEMENTED(); |
| 39 | return gl::Error(GL_INVALID_OPERATION); |
| 40 | } |
| 41 | |
| 42 | gl::Error TextureGL::setSubImage(GLenum target, size_t level, const gl::Box &area, GLenum format, GLenum type, |
| 43 | const gl::PixelUnpackState &unpack, const uint8_t *pixels) |
| 44 | { |
Jamie Madill | 67102f0 | 2015-03-16 10:41:42 -0400 | [diff] [blame] | 45 | if (unpack.skipRows != 0 || unpack.skipPixels != 0 || unpack.imageHeight != 0 || unpack.skipImages != 0) |
| 46 | { |
| 47 | UNIMPLEMENTED(); |
| 48 | return gl::Error(GL_INVALID_OPERATION, "unimplemented pixel store state"); |
| 49 | } |
| 50 | |
Geoff Lang | f9a6f08 | 2015-01-22 13:32:49 -0500 | [diff] [blame] | 51 | UNIMPLEMENTED(); |
| 52 | return gl::Error(GL_INVALID_OPERATION); |
| 53 | } |
| 54 | |
| 55 | gl::Error TextureGL::setCompressedImage(GLenum target, size_t level, GLenum internalFormat, const gl::Extents &size, |
| 56 | const gl::PixelUnpackState &unpack, const uint8_t *pixels) |
| 57 | { |
Jamie Madill | 67102f0 | 2015-03-16 10:41:42 -0400 | [diff] [blame] | 58 | if (unpack.skipRows != 0 || unpack.skipPixels != 0 || unpack.imageHeight != 0 || unpack.skipImages != 0) |
| 59 | { |
| 60 | UNIMPLEMENTED(); |
| 61 | return gl::Error(GL_INVALID_OPERATION, "unimplemented pixel store state"); |
| 62 | } |
| 63 | |
Geoff Lang | f9a6f08 | 2015-01-22 13:32:49 -0500 | [diff] [blame] | 64 | UNIMPLEMENTED(); |
| 65 | return gl::Error(GL_INVALID_OPERATION); |
| 66 | } |
| 67 | |
| 68 | gl::Error TextureGL::setCompressedSubImage(GLenum target, size_t level, const gl::Box &area, GLenum format, |
| 69 | const gl::PixelUnpackState &unpack, const uint8_t *pixels) |
| 70 | { |
Jamie Madill | 67102f0 | 2015-03-16 10:41:42 -0400 | [diff] [blame] | 71 | if (unpack.skipRows != 0 || unpack.skipPixels != 0 || unpack.imageHeight != 0 || unpack.skipImages != 0) |
| 72 | { |
| 73 | UNIMPLEMENTED(); |
| 74 | return gl::Error(GL_INVALID_OPERATION, "unimplemented pixel store state"); |
| 75 | } |
| 76 | |
Geoff Lang | f9a6f08 | 2015-01-22 13:32:49 -0500 | [diff] [blame] | 77 | UNIMPLEMENTED(); |
| 78 | return gl::Error(GL_INVALID_OPERATION); |
| 79 | } |
| 80 | |
| 81 | gl::Error TextureGL::copyImage(GLenum target, size_t level, const gl::Rectangle &sourceArea, GLenum internalFormat, |
| 82 | const gl::Framebuffer *source) |
| 83 | { |
| 84 | UNIMPLEMENTED(); |
| 85 | return gl::Error(GL_INVALID_OPERATION); |
| 86 | } |
| 87 | |
| 88 | gl::Error TextureGL::copySubImage(GLenum target, size_t level, const gl::Offset &destOffset, const gl::Rectangle &sourceArea, |
| 89 | const gl::Framebuffer *source) |
| 90 | { |
| 91 | UNIMPLEMENTED(); |
| 92 | return gl::Error(GL_INVALID_OPERATION); |
| 93 | } |
| 94 | |
| 95 | gl::Error TextureGL::setStorage(GLenum target, size_t levels, GLenum internalFormat, const gl::Extents &size) |
| 96 | { |
| 97 | UNIMPLEMENTED(); |
| 98 | return gl::Error(GL_INVALID_OPERATION); |
| 99 | } |
| 100 | |
| 101 | gl::Error TextureGL::generateMipmaps() |
| 102 | { |
| 103 | UNIMPLEMENTED(); |
| 104 | return gl::Error(GL_INVALID_OPERATION); |
| 105 | } |
| 106 | |
| 107 | void TextureGL::bindTexImage(egl::Surface *surface) |
| 108 | { |
| 109 | UNIMPLEMENTED(); |
| 110 | } |
| 111 | |
| 112 | void TextureGL::releaseTexImage() |
| 113 | { |
| 114 | UNIMPLEMENTED(); |
| 115 | } |
| 116 | |
| 117 | } |