summaryrefslogtreecommitdiff
path: root/src/gallium/include/state_tracker
diff options
context:
space:
mode:
authorKeith Whitwell <keithw@vmware.com>2010-05-14 12:12:54 +0100
committerKeith Whitwell <keithw@vmware.com>2010-05-14 12:19:57 +0100
commit15321a55e541c3209be6636ea467695a0bc6d55d (patch)
tree5fc82a59cd84668daa09861549e73145dfcdb54b /src/gallium/include/state_tracker
parentc26751447011a713924b9163a1e0b44fd39c6b1c (diff)
graw: combine graw_init and graw_create_window functions
Different environments seem to want to create these in different orders. Abstract over this by combining the calls.
Diffstat (limited to 'src/gallium/include/state_tracker')
-rw-r--r--src/gallium/include/state_tracker/graw.h14
1 files changed, 6 insertions, 8 deletions
diff --git a/src/gallium/include/state_tracker/graw.h b/src/gallium/include/state_tracker/graw.h
index 87e7d97543..e5b298e03d 100644
--- a/src/gallium/include/state_tracker/graw.h
+++ b/src/gallium/include/state_tracker/graw.h
@@ -19,20 +19,18 @@
struct pipe_screen;
struct pipe_context;
-PUBLIC struct pipe_screen *graw_init( void );
-
/* Returns a handle to be used with flush_frontbuffer()/present().
*
* Query format support with screen::is_format_supported and usage
* XXX.
*/
-PUBLIC void *graw_create_window( int x,
- int y,
- unsigned width,
- unsigned height,
- enum pipe_format format );
+PUBLIC struct pipe_screen *graw_create_window_and_screen( int x,
+ int y,
+ unsigned width,
+ unsigned height,
+ enum pipe_format format,
+ void **handle);
-PUBLIC void graw_destroy_window( void *handle );
PUBLIC void graw_set_display_func( void (*func)( void ) );
PUBLIC void graw_main_loop( void );