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 1081:ef31ae97bb8b
prev805:b355f7b3ff2e
next1134:f502f3d32f90
author nkeynes
date Tue Dec 01 18:18:15 2009 +1000 (11 years ago)
permissions -rw-r--r--
last change Fix compile-time warnings
view annotate diff log raw
     1 /**
     2  * $Id$
     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 static render_buffer_t video_null_create_render_buffer( uint32_t hres, uint32_t vres, GLuint tex_id )
    22 {
    23     return NULL;
    24 }
    26 static void video_null_destroy_render_buffer( render_buffer_t buffer )
    27 {
    28 }
    30 static gboolean video_null_set_render_target( render_buffer_t buffer )
    31 {
    32     return TRUE;
    33 }
    35 static void video_null_finish_render( render_buffer_t buffer )
    36 {
    37 }
    39 static void video_null_display_render_buffer( render_buffer_t buffer )
    40 {
    41 }
    43 static gboolean video_null_read_render_buffer( unsigned char *target, 
    44                                                render_buffer_t buffer, 
    45                                                int rowstride, int format )
    46 {
    47     return TRUE;
    48 }
    50 static void video_null_load_frame_buffer( frame_buffer_t frame, 
    51                                           render_buffer_t buffer )
    52 {
    53 }
    55 static void video_null_display_blank( uint32_t colour )
    56 {
    57 }
    59 static void video_null_swap_buffers(void)
    60 {
    61 }
    63 struct display_driver display_null_driver = { 
    64         "null",
    65         N_("Null (no video) driver"),
    66         NULL,
    67         NULL,
    68         NULL,
    69         NULL, 
    70         NULL,
    71         video_null_create_render_buffer,
    72         video_null_destroy_render_buffer,
    73         video_null_set_render_target,
    74         video_null_finish_render,
    75         video_null_load_frame_buffer,
    76         video_null_display_render_buffer,
    77         video_null_display_blank,
    78         video_null_swap_buffers,
    79         video_null_read_render_buffer };
.