| 101 | } |
| 102 | |
| 103 | void PixelPackState::Fetch(bool compressed) |
| 104 | { |
| 105 | if(!IsGLES) |
| 106 | { |
| 107 | GL.glGetIntegerv(eGL_PACK_SWAP_BYTES, &swapBytes); |
| 108 | GL.glGetIntegerv(eGL_PACK_LSB_FIRST, &lsbFirst); |
| 109 | GL.glGetIntegerv(eGL_PACK_IMAGE_HEIGHT, &imageheight); |
| 110 | GL.glGetIntegerv(eGL_PACK_SKIP_IMAGES, &skipImages); |
| 111 | } |
| 112 | GL.glGetIntegerv(eGL_PACK_ROW_LENGTH, &rowlength); |
| 113 | GL.glGetIntegerv(eGL_PACK_SKIP_PIXELS, &skipPixels); |
| 114 | GL.glGetIntegerv(eGL_PACK_SKIP_ROWS, &skipRows); |
| 115 | GL.glGetIntegerv(eGL_PACK_ALIGNMENT, &alignment); |
| 116 | |
| 117 | if(!IsGLES && compressed) |
| 118 | { |
| 119 | GL.glGetIntegerv(eGL_PACK_COMPRESSED_BLOCK_WIDTH, &compressedBlockWidth); |
| 120 | GL.glGetIntegerv(eGL_PACK_COMPRESSED_BLOCK_HEIGHT, &compressedBlockHeight); |
| 121 | GL.glGetIntegerv(eGL_PACK_COMPRESSED_BLOCK_DEPTH, &compressedBlockDepth); |
| 122 | GL.glGetIntegerv(eGL_PACK_COMPRESSED_BLOCK_SIZE, &compressedBlockSize); |
| 123 | } |
| 124 | } |
| 125 | |
| 126 | void PixelPackState::Apply(bool compressed) |
| 127 | { |
no test coverage detected