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.
file annotate diff log raw
nkeynes@106
     1
/**
nkeynes@352
     2
 * $Id: video_null.c,v 1.3 2007-02-11 10:09:32 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@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
    return TRUE;
nkeynes@106
    29
}
nkeynes@106
    30
nkeynes@352
    31
gboolean video_null_set_render_target( render_buffer_t buffer )
nkeynes@106
    32
{
nkeynes@106
    33
    return TRUE;
nkeynes@106
    34
}
nkeynes@106
    35
nkeynes@352
    36
gboolean video_null_display_render_buffer( render_buffer_t buffer )
nkeynes@106
    37
{
nkeynes@106
    38
    return TRUE;
nkeynes@106
    39
}
nkeynes@106
    40
nkeynes@352
    41
gboolean video_null_read_render_buffer( render_buffer_t buffer, char *target )
nkeynes@352
    42
{
nkeynes@352
    43
    return TRUE;
nkeynes@352
    44
}
nkeynes@352
    45
nkeynes@352
    46
gboolean video_null_display_frame_buffer( frame_buffer_t buffer )
nkeynes@352
    47
{
nkeynes@352
    48
    return TRUE;
nkeynes@352
    49
}
nkeynes@352
    50
nkeynes@352
    51
gboolean video_null_display_blank( uint32_t colour )
nkeynes@106
    52
{
nkeynes@106
    53
    return TRUE;
nkeynes@106
    54
}
nkeynes@106
    55
nkeynes@106
    56
void video_null_display_back_buffer( void )
nkeynes@106
    57
{
nkeynes@106
    58
}
nkeynes@106
    59
nkeynes@106
    60
nkeynes@144
    61
struct display_driver display_null_driver = { "null", 
nkeynes@352
    62
					      NULL,
nkeynes@352
    63
					      NULL,
nkeynes@352
    64
					      NULL,
nkeynes@352
    65
					      video_null_create_render_buffer,
nkeynes@352
    66
					      video_null_destroy_render_buffer,
nkeynes@352
    67
					      video_null_set_render_target,
nkeynes@352
    68
					      video_null_display_render_buffer,
nkeynes@352
    69
					      video_null_display_frame_buffer,
nkeynes@352
    70
					      video_null_display_blank,
nkeynes@352
    71
					      video_null_read_render_buffer };
.