File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed
src/Graphics/Rendering/OpenGL/GL/Texturing Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change 1
1
3.0.2.0
2
2
-------
3
- * Added ` PixelInternalFormat ` constructors for S3_s3tc, EXT_texture_compression_s3tc, and ARB_texture_float extensions.
3
+ * Added ` PixelInternalFormat ` constructors for S3_s3tc, EXT_texture_compression_s3tc,
4
+ ARB_texture_float, and EXT_packed_depth_stencil extensions.
4
5
5
6
3.0.1.0
6
7
-------
Original file line number Diff line number Diff line change @@ -151,6 +151,7 @@ data PixelInternalFormat =
151
151
| Intensity16F
152
152
| Luminance16F
153
153
| LuminanceAlpha16F
154
+ | Depth24Stencil8
154
155
deriving ( Eq , Ord , Show )
155
156
156
157
marshalPixelInternalFormat :: PixelInternalFormat -> GLint
@@ -283,6 +284,7 @@ marshalPixelInternalFormat x = fromIntegral $ case x of
283
284
Intensity16F -> GL_INTENSITY16F_ARB
284
285
Luminance16F -> GL_LUMINANCE16F_ARB
285
286
LuminanceAlpha16F -> GL_LUMINANCE_ALPHA16F_ARB
287
+ Depth24Stencil8 -> GL_DEPTH24_STENCIL8_EXT
286
288
287
289
-- *sigh* The OpenGL API is sometimes a bit creative in its usage of types...
288
290
marshalPixelInternalFormat' :: PixelInternalFormat -> GLenum
@@ -413,6 +415,7 @@ unmarshalPixelInternalFormat x
413
415
| y == GL_INTENSITY16F_ARB = Intensity16F
414
416
| y == GL_LUMINANCE16F_ARB = Luminance16F
415
417
| y == GL_LUMINANCE_ALPHA16F_ARB = LuminanceAlpha16F
418
+ | y == GL_DEPTH24_STENCIL8_EXT = Depth24Stencil8
416
419
-- legacy values
417
420
| y == 1 = Luminance'
418
421
| y == 2 = LuminanceAlpha'
You can’t perform that action at this time.
0 commit comments