1/*-
2 * Copyright (c) 1991-1997 S�ren Schmidt
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright
--- 11 unchanged lines hidden (view full) ---
20 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
21 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
22 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 *
28 * $FreeBSD: head/share/examples/libvgl/demo.c 53013 1999-11-08 11:37:46Z yokota $
29 */
30
31#include <sys/types.h>
32#include <machine/console.h>
33#include "vgl.h"
34
35int
36main(int argc, char **argv)
37{
38 int x, y, xsize, ysize, i,j;
39 VGLBitmap *tmp;
40
41 // set graphics mode, here 320x240 256 colors
42 // supported modes are (from <machine/console.h>):
43 // SW_VGA_CG320: std VGA 320x200 256 colors
44 // SW_VGA_MODEX: Modex VGA 320x240 256 colors
45 // SW_VGA_VG640: std VGA 640x480 16 colors
46 VGLInit(SW_VGA_MODEX);
--- 75 unchanged lines hidden ---
2 * Copyright (c) 1991-1997 S�ren Schmidt
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright
--- 11 unchanged lines hidden (view full) ---
20 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
21 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
22 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 *
28 * $FreeBSD: head/share/examples/libvgl/demo.c 53013 1999-11-08 11:37:46Z yokota $
29 */
30
31#include <sys/types.h>
32#include <machine/console.h>
33#include "vgl.h"
34
35int
36main(int argc, char **argv)
37{
38 int x, y, xsize, ysize, i,j;
39 VGLBitmap *tmp;
40
41 // set graphics mode, here 320x240 256 colors
42 // supported modes are (from <machine/console.h>):
43 // SW_VGA_CG320: std VGA 320x200 256 colors
44 // SW_VGA_MODEX: Modex VGA 320x240 256 colors
45 // SW_VGA_VG640: std VGA 640x480 16 colors
46 VGLInit(SW_VGA_MODEX);
--- 75 unchanged lines hidden ---