Search
lxdream.org :: lxdream/src/drivers/video_null.c
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 (12 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.
view annotate diff log raw
     1 /**
     2  * $Id: video_null.c,v 1.3 2007-02-11 10:09:32 nkeynes Exp $
     3  *
     4  * Null video output driver (ie no video output whatsoever)
     5  *
     6  * Copyright (c) 2005 Nathan Keynes.
     7  *
     8  * This program is free software; you can redistribute it and/or modify
     9  * it under the terms of the GNU General Public License as published by
    10  * the Free Software Foundation; either version 2 of the License, or
    11  * (at your option) any later version.
    12  *
    13  * This program is distributed in the hope that it will be useful,
    14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
    15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    16  * GNU General Public License for more details.
    17  */
    19 #include "display.h"
    21 render_buffer_t video_null_create_render_buffer( uint32_t hres, uint32_t vres )
    22 {
    23     return NULL;
    24 }
    26 void video_null_destroy_render_buffer( render_buffer_t buffer )
    27 {
    28     return TRUE;
    29 }
    31 gboolean video_null_set_render_target( render_buffer_t buffer )
    32 {
    33     return TRUE;
    34 }
    36 gboolean video_null_display_render_buffer( render_buffer_t buffer )
    37 {
    38     return TRUE;
    39 }
    41 gboolean video_null_read_render_buffer( render_buffer_t buffer, char *target )
    42 {
    43     return TRUE;
    44 }
    46 gboolean video_null_display_frame_buffer( frame_buffer_t buffer )
    47 {
    48     return TRUE;
    49 }
    51 gboolean video_null_display_blank( uint32_t colour )
    52 {
    53     return TRUE;
    54 }
    56 void video_null_display_back_buffer( void )
    57 {
    58 }
    61 struct display_driver display_null_driver = { "null", 
    62 					      NULL,
    63 					      NULL,
    64 					      NULL,
    65 					      video_null_create_render_buffer,
    66 					      video_null_destroy_render_buffer,
    67 					      video_null_set_render_target,
    68 					      video_null_display_render_buffer,
    69 					      video_null_display_frame_buffer,
    70 					      video_null_display_blank,
    71 					      video_null_read_render_buffer };
.