Search
lxdream.org :: lxdream/src/display.h :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/display.h
changeset 863:a5e5310061e2
prev850:28782ebbd01d
next1010:a506a2f66180
author nkeynes
date Sun Sep 28 01:09:51 2008 +0000 (11 years ago)
permissions -rw-r--r--
last change Initial shadow volume implementation for opaque polygons (stencil isn't quite
right, but we get some kind of shadows now)
file annotate diff log raw
1.1 --- a/src/display.h Mon Sep 08 07:56:33 2008 +0000
1.2 +++ b/src/display.h Sun Sep 28 01:09:51 2008 +0000
1.3 @@ -102,6 +102,10 @@
1.4 unsigned char *data;
1.5 };
1.6
1.7 +struct display_capabilities {
1.8 + int stencil_bits; /* 0 = no stencil buffer */
1.9 +};
1.10 +
1.11 /**
1.12 * Core video driver - exports function to setup a GL context, as well as handle
1.13 * keyboard input and display resultant output.
1.14 @@ -201,6 +205,7 @@
1.15 gboolean (*read_render_buffer)( unsigned char *target, render_buffer_t buffer,
1.16 int rowstride, int format );
1.17
1.18 + struct display_capabilities capabilities;
1.19 } *display_driver_t;
1.20
1.21 /**
.