4 * Null video output driver (ie no video output whatsoever)
6 * Copyright (c) 2005 Nathan Keynes.
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.
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.
20 #include "drivers/video_gl.h"
22 static gboolean video_null_init( void );
24 static render_buffer_t video_null_create_render_buffer( uint32_t hres, uint32_t vres, GLuint tex_id )
29 static void video_null_destroy_render_buffer( render_buffer_t buffer )
33 static gboolean video_null_set_render_target( render_buffer_t buffer )
38 static void video_null_finish_render( render_buffer_t buffer )
42 static void video_null_display_render_buffer( render_buffer_t buffer )
46 static gboolean video_null_read_render_buffer( unsigned char *target,
47 render_buffer_t buffer,
48 int rowstride, int format )
53 static void video_null_load_frame_buffer( frame_buffer_t frame,
54 render_buffer_t buffer )
58 static void video_null_display_blank( uint32_t colour )
62 static void video_null_swap_buffers(void)
66 struct display_driver display_null_driver = {
68 N_("Null (no video) driver"),
74 video_null_create_render_buffer,
75 video_null_destroy_render_buffer,
76 video_null_set_render_target,
77 video_null_finish_render,
78 video_null_load_frame_buffer,
79 video_null_display_render_buffer,
80 video_null_display_blank,
81 video_null_swap_buffers,
82 video_null_read_render_buffer,
85 static gboolean video_null_init( void )
87 gl_vbo_fallback_init(&display_null_driver);
.