diff options
author | yokota <yokota@FreeBSD.org> | 1999-11-08 11:37:46 +0000 |
---|---|---|
committer | yokota <yokota@FreeBSD.org> | 1999-11-08 11:37:46 +0000 |
commit | 5b90185d7f6229e8275354d49c936845932f68e9 (patch) | |
tree | 2fd4989fd857b909af28670ef7714168fdbf0cea /lib/libvgl/vgl.h | |
parent | 6b891b634b32d132848bd61a4f23bbdfe8013306 (diff) | |
download | FreeBSD-src-5b90185d7f6229e8275354d49c936845932f68e9.zip FreeBSD-src-5b90185d7f6229e8275354d49c936845932f68e9.tar.gz |
- This is the new version of libvgl jointly developed by sos and I.
It adds new functions and extend some structures and can handle
VESA modes.
- Update the man page.
- Bump the library version number.
(The old version will be added to compat3x.)
Diffstat (limited to 'lib/libvgl/vgl.h')
-rw-r--r-- | lib/libvgl/vgl.h | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/lib/libvgl/vgl.h b/lib/libvgl/vgl.h index 8704ac9..4aa34c6 100644 --- a/lib/libvgl/vgl.h +++ b/lib/libvgl/vgl.h @@ -37,9 +37,14 @@ typedef unsigned char byte; typedef struct { byte Type; int Xsize, Ysize; + int VXsize, VYsize; + int Xorigin, Yorigin; byte *Bitmap; } VGLBitmap; +#define VGLBITMAP_INITIALIZER(t, x, y, bits) \ + { (t), (x), (y), 0, 0, 0, 0, (bits) } + /* * Defined Type's */ @@ -47,6 +52,8 @@ typedef struct { #define VIDBUF4 1 #define VIDBUF8 2 #define VIDBUF8X 3 +#define VIDBUF8S 4 +#define VIDBUF4S 5 #define NOBUF 255 typedef struct VGLText { @@ -78,7 +85,10 @@ typedef struct VGLObject { #define VGL_CODEKEYS 2 #define VGL_XLATEKEYS 3 -extern VGLBitmap *VGLDisplay; +extern video_adapter_info_t VGLAdpInfo; +extern video_info_t VGLModeInfo; +extern VGLBitmap *VGLDisplay; +extern byte *VGLBuf; /* * Prototypes @@ -86,6 +96,9 @@ extern VGLBitmap *VGLDisplay; /* bitmap.c */ int __VGLBitmapCopy(VGLBitmap *src, int srcx, int srcy, VGLBitmap *dst, int dstx, int dsty, int width, int hight); int VGLBitmapCopy(VGLBitmap *src, int srcx, int srcy, VGLBitmap *dst, int dstx, int dsty, int width, int hight); +VGLBitmap *VGLBitmapCreate(int type, int xsize, int ysize, byte *bits); +void VGLBitmapDestroy(VGLBitmap *object); +int VGLBitmapAllocateBits(VGLBitmap *object); /* keyboard.c */ int VGLKeyboardInit(int mode); void VGLKeyboardEnd(void); @@ -94,6 +107,9 @@ int VGLKeyboardGetCh(void); void VGLEnd(void); int VGLInit(int mode); void VGLCheckSwitch(void); +int VGLSetVScreenSize(VGLBitmap *object, int VXsize, int VYsize); +int VGLPanScreen(VGLBitmap *object, int x, int y); +int VGLSetSegment(unsigned int offset); /* mouse.c */ void VGLMousePointerShow(void); void VGLMousePointerHide(void); |