Search
lxdream.org :: lxdream/src/display.h :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/display.h
changeset 1282:9f445c5e252b
prev1256:a9d29fe74bf3
author nkeynes
date Tue Mar 27 08:23:52 2012 +1000 (10 years ago)
permissions -rw-r--r--
last change Android: Preserve render buffers when switching away from app.
- fix gl_read_render_buffer + gl_load_frame_buffer to work in GLES
a) glReadPixels only (guaranteed to) work for GL_RGBA,GL_UNSIGNED_BYTE
b) glTexSubImage2D can only load GL_RGBA into a GL_RGBA render buffer.
file annotate diff log raw
1.1 --- a/src/display.h Sun Mar 04 21:10:12 2012 +1000
1.2 +++ b/src/display.h Tue Mar 27 08:23:52 2012 +1000
1.3 @@ -101,7 +101,7 @@
1.4 uint32_t width;
1.5 uint32_t height;
1.6 uint32_t rowstride;
1.7 - uint32_t colour_format;
1.8 + uint32_t colour_format; /* Colour format that the dreamcast expects the data to be in */
1.9 sh4addr_t address;
1.10 uint32_t size; /* Size of buffer in bytes, must be width*height*bpp */
1.11 gboolean inverted;/* True if the buffer is upside down */
1.12 @@ -111,6 +111,7 @@
1.13 struct display_capabilities {
1.14 gboolean has_gl;
1.15 gboolean has_sl;
1.16 + gboolean has_bgra;
1.17 int depth_bits;
1.18 int stencil_bits; /* 0 = no stencil buffer */
1.19 };
.