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 614:a2d239d4438a
prev608:4f588e52bce0
next669:ab344e42bca9
author nkeynes
date Mon Feb 18 09:21:43 2008 +0000 (14 years ago)
branchlxdream-render
permissions -rw-r--r--
last change More render WIP - initial glrender.c
view annotate diff log raw
     4 /**
     5  * $Id$
     6  *
     7  * Null video output driver (ie no video output whatsoever)
     8  *
     9  * Copyright (c) 2005 Nathan Keynes.
    10  *
    11  * This program is free software; you can redistribute it and/or modify
    12  * it under the terms of the GNU General Public License as published by
    13  * the Free Software Foundation; either version 2 of the License, or
    14  * (at your option) any later version.
    15  *
    16  * This program is distributed in the hope that it will be useful,
    17  * but WITHOUT ANY WARRANTY; without even the implied warranty of
    18  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    19  * GNU General Public License for more details.
    20  */
    22 #include "display.h"
    24 render_buffer_t video_null_create_render_buffer( uint32_t hres, uint32_t vres )
    25 {
    26     return NULL;
    27 }
    29 void video_null_destroy_render_buffer( render_buffer_t buffer )
    30 {
    31 }
    33 gboolean video_null_set_render_target( render_buffer_t buffer )
    34 {
    35     return TRUE;
    36 }
    38 gboolean video_null_display_render_buffer( render_buffer_t buffer )
    39 {
    40     return TRUE;
    41 }
    43 gboolean video_null_read_render_buffer( unsigned char *target, render_buffer_t buffer, int rowstride, int format )
    44 {
    45     return TRUE;
    46 }
    48 void video_null_load_frame_buffer( frame_buffer_t frame, render_buffer_t buffer )
    49 {
    50 }
    52 gboolean video_null_display_blank( uint32_t colour )
    53 {
    54     return TRUE;
    55 }
    57 void video_null_display_back_buffer( void )
    58 {
    59 }
    62 struct display_driver display_null_driver = { "null", 
    63 					      NULL,
    64 					      NULL,
    65 					      NULL,
    66 					      NULL, 
    67 					      NULL,
    68 					      video_null_create_render_buffer,
    69 					      video_null_destroy_render_buffer,
    70 					      video_null_set_render_target,
    71 					      video_null_load_frame_buffer,
    72 					      video_null_display_render_buffer,
    73 					      video_null_display_blank,
    74 					      video_null_read_render_buffer };
.