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 144:7f0714e89aaa
prev106:9048bac046c3
next352:f0df7a6d4703
author nkeynes
date Mon May 15 08:28:52 2006 +0000 (13 years ago)
permissions -rw-r--r--
last change Rename video_driver to display_driver
Add input source to display
Implement configuration file support
Hook controllers up to configuration
file annotate diff log raw
nkeynes@106
     1
/**
nkeynes@144
     2
 * $Id: video_null.c,v 1.2 2006-05-15 08:28:52 nkeynes Exp $
nkeynes@106
     3
 *
nkeynes@106
     4
 * Null video output driver (ie no video output whatsoever)
nkeynes@106
     5
 *
nkeynes@106
     6
 * Copyright (c) 2005 Nathan Keynes.
nkeynes@106
     7
 *
nkeynes@106
     8
 * This program is free software; you can redistribute it and/or modify
nkeynes@106
     9
 * it under the terms of the GNU General Public License as published by
nkeynes@106
    10
 * the Free Software Foundation; either version 2 of the License, or
nkeynes@106
    11
 * (at your option) any later version.
nkeynes@106
    12
 *
nkeynes@106
    13
 * This program is distributed in the hope that it will be useful,
nkeynes@106
    14
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
nkeynes@106
    15
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
nkeynes@106
    16
 * GNU General Public License for more details.
nkeynes@106
    17
 */
nkeynes@106
    18
nkeynes@144
    19
#include "display.h"
nkeynes@106
    20
nkeynes@106
    21
gboolean video_null_set_output_format( uint32_t hres, uint32_t vres,
nkeynes@106
    22
				       int colour_format )
nkeynes@106
    23
{
nkeynes@106
    24
    return TRUE;
nkeynes@106
    25
}
nkeynes@106
    26
nkeynes@106
    27
gboolean video_null_set_render_format( uint32_t hres, uint32_t vres,
nkeynes@106
    28
				       int colour_format, gboolean tex )
nkeynes@106
    29
{
nkeynes@106
    30
    return TRUE;
nkeynes@106
    31
}
nkeynes@106
    32
nkeynes@106
    33
gboolean video_null_display_frame( video_buffer_t buffer )
nkeynes@106
    34
{
nkeynes@106
    35
    return TRUE;
nkeynes@106
    36
}
nkeynes@106
    37
nkeynes@106
    38
gboolean video_null_blank( uint32_t colour )
nkeynes@106
    39
{
nkeynes@106
    40
    return TRUE;
nkeynes@106
    41
}
nkeynes@106
    42
nkeynes@106
    43
void video_null_display_back_buffer( void )
nkeynes@106
    44
{
nkeynes@106
    45
}
nkeynes@106
    46
nkeynes@106
    47
nkeynes@144
    48
struct display_driver display_null_driver = { "null", 
nkeynes@106
    49
					 NULL,
nkeynes@106
    50
					 NULL,
nkeynes@106
    51
					 video_null_set_output_format,
nkeynes@106
    52
					 video_null_set_render_format,
nkeynes@106
    53
					 video_null_display_frame,
nkeynes@106
    54
					 video_null_blank,
nkeynes@106
    55
					 video_null_display_back_buffer };
.