filename | src/drivers/video_null.c |
changeset | 805:b355f7b3ff2e |
prev | 736:a02d1475ccfd |
next | 1081:ef31ae97bb8b |
author | nkeynes |
date | Sun Apr 19 05:14:19 2009 +0000 (15 years ago) |
branch | xlat-refactor |
permissions | -rw-r--r-- |
last change | Remove branch instructions and replace with direct modification of PC + EXIT Add MIN/MAX instructions (for bound checks) Implement x86_target_is_legal Correct a few sh4 instructions |
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 }
60 struct display_driver display_null_driver = {
61 "null",
62 N_("Null (no video) driver"),
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_finish_render,
72 video_null_load_frame_buffer,
73 video_null_display_render_buffer,
74 video_null_display_blank,
75 video_null_read_render_buffer };
.