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 561:533f6b478071
prev481:3b2d6c5a19ad
next608:4f588e52bce0
author nkeynes
date Tue Jan 01 05:08:38 2008 +0000 (12 years ago)
branchlxdream-mmu
permissions -rw-r--r--
last change Enable Id keyword on all source files
file annotate diff log raw
nkeynes@106
     1
/**
nkeynes@561
     2
 * $Id$
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@352
    21
render_buffer_t video_null_create_render_buffer( uint32_t hres, uint32_t vres )
nkeynes@352
    22
{
nkeynes@352
    23
    return NULL;
nkeynes@352
    24
}
nkeynes@352
    25
nkeynes@352
    26
void video_null_destroy_render_buffer( render_buffer_t buffer )
nkeynes@106
    27
{
nkeynes@106
    28
}
nkeynes@106
    29
nkeynes@352
    30
gboolean video_null_set_render_target( render_buffer_t buffer )
nkeynes@106
    31
{
nkeynes@106
    32
    return TRUE;
nkeynes@106
    33
}
nkeynes@106
    34
nkeynes@352
    35
gboolean video_null_display_render_buffer( render_buffer_t buffer )
nkeynes@106
    36
{
nkeynes@106
    37
    return TRUE;
nkeynes@106
    38
}
nkeynes@106
    39
nkeynes@481
    40
gboolean video_null_read_render_buffer( unsigned char *target, render_buffer_t buffer, int rowstride, int format )
nkeynes@352
    41
{
nkeynes@352
    42
    return TRUE;
nkeynes@352
    43
}
nkeynes@352
    44
nkeynes@481
    45
void video_null_load_frame_buffer( frame_buffer_t frame, render_buffer_t buffer )
nkeynes@352
    46
{
nkeynes@352
    47
}
nkeynes@352
    48
nkeynes@352
    49
gboolean video_null_display_blank( uint32_t colour )
nkeynes@106
    50
{
nkeynes@106
    51
    return TRUE;
nkeynes@106
    52
}
nkeynes@106
    53
nkeynes@106
    54
void video_null_display_back_buffer( void )
nkeynes@106
    55
{
nkeynes@106
    56
}
nkeynes@106
    57
nkeynes@106
    58
nkeynes@144
    59
struct display_driver display_null_driver = { "null", 
nkeynes@352
    60
					      NULL,
nkeynes@352
    61
					      NULL,
nkeynes@352
    62
					      NULL,
nkeynes@352
    63
					      video_null_create_render_buffer,
nkeynes@352
    64
					      video_null_destroy_render_buffer,
nkeynes@352
    65
					      video_null_set_render_target,
nkeynes@481
    66
					      video_null_load_frame_buffer,
nkeynes@352
    67
					      video_null_display_render_buffer,
nkeynes@352
    68
					      video_null_display_blank,
nkeynes@352
    69
					      video_null_read_render_buffer };
.