Search
lxdream.org :: lxdream/src/drivers/video_null.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/drivers/video_null.c
changeset 352:f0df7a6d4703
prev144:7f0714e89aaa
next424:421d68e78c46
author nkeynes
date Sun Feb 11 10:09:32 2007 +0000 (14 years ago)
permissions -rw-r--r--
last change Bug 27: Implement opengl framebuffer objects
Rewrite much of the final video output stage. Now uses generic "render
buffers", implemented on GL using framebuffer objects + textures.
file annotate diff log raw
1.1 --- a/src/drivers/video_null.c Mon May 15 08:28:52 2006 +0000
1.2 +++ b/src/drivers/video_null.c Sun Feb 11 10:09:32 2007 +0000
1.3 @@ -1,5 +1,5 @@
1.4 /**
1.5 - * $Id: video_null.c,v 1.2 2006-05-15 08:28:52 nkeynes Exp $
1.6 + * $Id: video_null.c,v 1.3 2007-02-11 10:09:32 nkeynes Exp $
1.7 *
1.8 * Null video output driver (ie no video output whatsoever)
1.9 *
1.10 @@ -18,24 +18,37 @@
1.11
1.12 #include "display.h"
1.13
1.14 -gboolean video_null_set_output_format( uint32_t hres, uint32_t vres,
1.15 - int colour_format )
1.16 +render_buffer_t video_null_create_render_buffer( uint32_t hres, uint32_t vres )
1.17 +{
1.18 + return NULL;
1.19 +}
1.20 +
1.21 +void video_null_destroy_render_buffer( render_buffer_t buffer )
1.22 {
1.23 return TRUE;
1.24 }
1.25
1.26 -gboolean video_null_set_render_format( uint32_t hres, uint32_t vres,
1.27 - int colour_format, gboolean tex )
1.28 +gboolean video_null_set_render_target( render_buffer_t buffer )
1.29 {
1.30 return TRUE;
1.31 }
1.32
1.33 -gboolean video_null_display_frame( video_buffer_t buffer )
1.34 +gboolean video_null_display_render_buffer( render_buffer_t buffer )
1.35 {
1.36 return TRUE;
1.37 }
1.38
1.39 -gboolean video_null_blank( uint32_t colour )
1.40 +gboolean video_null_read_render_buffer( render_buffer_t buffer, char *target )
1.41 +{
1.42 + return TRUE;
1.43 +}
1.44 +
1.45 +gboolean video_null_display_frame_buffer( frame_buffer_t buffer )
1.46 +{
1.47 + return TRUE;
1.48 +}
1.49 +
1.50 +gboolean video_null_display_blank( uint32_t colour )
1.51 {
1.52 return TRUE;
1.53 }
1.54 @@ -46,10 +59,13 @@
1.55
1.56
1.57 struct display_driver display_null_driver = { "null",
1.58 - NULL,
1.59 - NULL,
1.60 - video_null_set_output_format,
1.61 - video_null_set_render_format,
1.62 - video_null_display_frame,
1.63 - video_null_blank,
1.64 - video_null_display_back_buffer };
1.65 + NULL,
1.66 + NULL,
1.67 + NULL,
1.68 + video_null_create_render_buffer,
1.69 + video_null_destroy_render_buffer,
1.70 + video_null_set_render_target,
1.71 + video_null_display_render_buffer,
1.72 + video_null_display_frame_buffer,
1.73 + video_null_display_blank,
1.74 + video_null_read_render_buffer };
.