亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? font.doc

?? DOS游戲編程中處理Int 13的工具包
?? DOC
字號:
>>> FONT.DOC

****************************************************************************

Images.Hpp and Images.Cpp along with this document file are copyright 1991
by the Gamers Programming Workshop, GAMERS forum, Compuserve (GO GAMERS,
section 11). The code and related document are free for use, distribution,
and modification, provided the following conditions are met:

	1. no commercial use of this source code or documents is permitted.
	2. no fee may be charged beyond disk duplication cost for any of this
	   material.
	3. If the code is upgraded or modified a copy of the modification must
	   be uploaded to section 11 of the GAMERS forum on Compuserve. All
	   modifications must be documented and the author's name included in
	   the source code header block, and the subsequent file package must
	   include all the original doc files as well as any additions. If you
	   modify or add functions please update the function list below.

****************************************************************************

Images.hpp and images.cpp provide basic tools for working in graphics mode
13h, the 256 color standard vga mode, which has become the most popular for
producing high quality gaming software. The following files are required to
use the tools in this package:

	IMAGES.HPP   - the image tools header file
	IMAGES.CPP   - image tools function definitions
	KEYBOARD.HPP - low level keyboard interface header file
	KEYBOARD.CPP - functions required by the font class in images.hpp

A demo of the functions in this package is included, as IDEMO.EXE.

NOTE: Compile these modules in the Large model (pointers default to far).

*****************************************************************************

Images.Hpp contains the declaration of a class font, which is an object
class designed to do basic operations with bitmapped text in VGA mode 13h
(standard 256 color graphics mode). There is also a source file included
for GETFONT.EXE which can be used to capture your own fonts which have been
saved in .PCX format.


USING THE FONT CLASS


The font class contains a font bitmap, as well as related data, and meth-
ods for displaying and reading text strings, setting the text style, and
checking for a valid installation. An object of this class is defined as
follows:
			font small("csfont1.fnt");

or
			font *small
			small = new font("csfont1.fnt");

This statement generates a call to the font constructor, which performs
5 important tasks. First the font file is opened, then the font header and
character width table are read into data space in the font object. It then
allocates enough memory for the cursor mask, and reads that in from disk.
Last, memory is allocated and the font bitmap itself is loaded. If at any
point in this process an error occurs the constructor terminates and the
function sets the font status variable to 0. This variable is returned by
a call to installed(). If the initialization is successful the font is set
to default style : foreground=0, background=15, character tab=1, opacity=
opaque, space=5. This yields black on white text which overwrites the cur-
rent image. The letters are spaced 1 pixel apart, and a space character is
worth 5 pixels.

All allocated memory is freed by the destructor as soon as the font object
goes out of scope and is no longer needed, or if it is deleted (if opened
using the new operator).

The interface to the font object is contained in these functions:

****************************************************************************

void setstyle(int f_grnd,int b_grnd,short char_tab,opacity o,char space_wid);

>>	setstyle() selects the style of text that will be used on the next call
to show(). Call with foreground color in f_grnd, background color in b_grnd,
pixels between characters in char_tab, background treatment in o, and width
of space character (ascii 32) in pixels in space_wid. Possible values are:

	f_grnd, b_grnd : 0..255
	char_tab       : 0..320
	space_wid      : 0..10
	o              : trans,opaque

When o is set to trans the value in b_grnd is ignored, and only the fore-
ground color of the text is plotted. When o is opaque the background color
is plotted.

****************************************************************************

int getforecolor();

>>	returns the current text foreground color

****************************************************************************

int getbackcolor();

>>	returns the current text background color

****************************************************************************

void show(int x, int y, char *str);

>>	displays the string of characters pointed to by str, with the top left
corner of the first character displayed at (x,y). This function does not
return a value. The displayed text is not clipped at the screen edge, but
will wrap into the next scan line.

****************************************************************************

void readstr(int x, int y,char *str, char length, char mask);

>>	readstr() reads in a series of characters entered at the keyboard and
stores them in the string pointed to by str. The resulting string is prop-
erly formatted with a terminating null '\0' character. The entered text is
echoed to the screen at (x,y), as in show() above. The function returns
when the user presses enter, or the string reaches length bytes. As the
entered text is echoed to screen the function moves a blinking cursor, the
mask for which is stored as part of the font data. A good improvement to
the font class would be to allow the cursor mask to be redefined to something
other than the font default. Backspace is supported, but insert and delete
are not, and they would be another good improvement. The function gets its
keystrokes from the getfilteredkey() function defined in KEYBOARD.HPP. The
mask value determines which characters are passed through. See the definition
of the mask types in KEYBOARD.DOC.

****************************************************************************

int installed();

>>	installed() should be called immediately after defining an instance of
a font object, to ensure that there were no errors during initialization
of the font. The funtion returns 1 if no errors occured, or 0 if an error
has occured. Possible errors are memory allocation and file access errors.

****************************************************************************


The following is an example:

	#include <stdio.h>
	#include "images.h"
	#include "keyboard.h"

	void main() {
		char *str;

		// set up graphics mode

		_setgraphmode();

		// clear the screen to white

		clearscr(15);

		// initialize csfont1.fnt from the current directory

		font small("csfont1.fnt");

		// check for successful installation

		if (!small.installed()) {
			printf("error installing font object\n");
			return;
		}

		// set style to black on black, 1 pixel between characters, back-
		// ground is transparent, space=5

		small.setstyle(0,0,1,trans,5);

		// display a string at 10,10

		small.show(10,10,"This black text does not overwrite the background");

		// set style to blue on white, background is opaque

		small.setstyle(9,15,1,opaque,5);
		small.show(10,10,"This blue on white text does overwrite it");
		clearscr(15);
		small.show(10,10,"Now type in a text string, then press enter.");

		// read in a string and echo to screen at 10,20

		small.readstr(10,20,str,30);
		small.show(10,30,"Here is the string you entered:");
		small.show(10,40,str);
		small.show(50,180,"press any key to exit");
		while (!kbhit());
	}


For information on using the getfont source to capture your own fonts see
GETFONT.DOC

Support:

Support for this code will be provided as and where possible through messages
posted to 76605,2346 in the Game Design section (sec. 11) of the Gamers
Forum on Compuserve. Sorry, but no telephone support is possible.

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲网友自拍偷拍| 亚洲四区在线观看| 一区二区三区中文字幕| 国产一区二区h| 精品免费日韩av| 久久精品国产亚洲a| 日韩限制级电影在线观看| 亚洲国产精品嫩草影院| 欧美日韩免费观看一区二区三区| 亚洲一区在线视频观看| 91日韩精品一区| 91美女在线观看| 久久综合狠狠综合| 91丨九色丨蝌蚪富婆spa| 婷婷综合久久一区二区三区| 日韩欧美综合一区| 亚洲国产成人va在线观看天堂 | 成人妖精视频yjsp地址| 亚洲一区在线视频观看| 久久久久久免费网| 欧美视频在线不卡| www.色精品| 国产一区二区91| 免费观看成人av| 一级日本不卡的影视| 综合av第一页| 国产亚洲欧美日韩俺去了| 精品日韩在线一区| 欧美精品 国产精品| 欧美日韩精品一区二区在线播放| 99精品欧美一区| 91视视频在线观看入口直接观看www| 韩国女主播一区二区三区| 美女国产一区二区| 毛片不卡一区二区| 亚洲电影一区二区三区| 久久久另类综合| 国产亚洲欧美在线| 国产精品毛片a∨一区二区三区| 久久久久久综合| 国产午夜亚洲精品羞羞网站| 欧美国产一区视频在线观看| 国产情人综合久久777777| 国产精品丝袜黑色高跟| 中文字幕亚洲不卡| 亚洲va国产天堂va久久en| 亚洲成av人片| 国产精品中文有码| 一本大道久久a久久精二百| 欧美日韩久久一区| 久久天堂av综合合色蜜桃网| 亚洲三级理论片| 免费在线成人网| 91免费在线看| 欧美刺激午夜性久久久久久久 | 亚洲国产成人av好男人在线观看| 亚洲va韩国va欧美va精品| 国产精品18久久久久久久网站| 狠狠色狠狠色综合| 在线精品国精品国产尤物884a| 91美女蜜桃在线| 久久亚洲一区二区三区四区| 亚洲影院理伦片| 不卡电影一区二区三区| 欧美一区二区三区免费观看视频| 亚洲国产成人私人影院tom| 水蜜桃久久夜色精品一区的特点| 久久97超碰色| 欧美日韩综合不卡| 一区二区成人在线观看| 丰满放荡岳乱妇91ww| 欧美成人r级一区二区三区| 青青草精品视频| 欧美性色欧美a在线播放| 亚洲欧洲精品一区二区三区| 国产精品一区二区黑丝| 国产精品女主播在线观看| 国内精品伊人久久久久av影院| 日韩片之四级片| 久久精品国产免费| 欧美激情资源网| 成人听书哪个软件好| 国产欧美一区二区精品久导航 | 欧洲色大大久久| 欧美裸体bbwbbwbbw| 精品久久久久一区二区国产| 麻豆精品一区二区| 精品国产三级电影在线观看| 国产精品99久久久久久宅男| 欧美国产激情二区三区| 91啪亚洲精品| 秋霞午夜av一区二区三区| 久久久久久久久久久99999| 99久久精品情趣| 石原莉奈一区二区三区在线观看| 日韩精品一区二区在线| 成人免费黄色大片| 日韩综合一区二区| 国产精品久久久久aaaa| 欧美老年两性高潮| av网站一区二区三区| 青青草97国产精品免费观看| 国产精品久久久久久久裸模| 9191成人精品久久| 91国产视频在线观看| 99久久免费视频.com| 美女在线视频一区| 视频一区二区三区中文字幕| 亚洲色图视频网| 中文字幕一区二区三区精华液 | 欧美三级三级三级爽爽爽| 国产精品99久久久| 国产呦萝稀缺另类资源| 日韩激情视频在线观看| 亚洲福利视频导航| 亚洲一级二级在线| 亚洲一区视频在线观看视频| 欧美国产禁国产网站cc| 国产精品久久久久久久久搜平片| 日韩精品在线一区二区| 精品福利二区三区| 久久婷婷色综合| 国产精品欧美极品| 亚洲女性喷水在线观看一区| 亚洲精品成a人| 日韩电影在线一区二区三区| 亚洲国产精品影院| 麻豆91精品视频| 成人久久18免费网站麻豆| 成人精品国产一区二区4080| 一本到一区二区三区| 欧美人牲a欧美精品| 精品成人免费观看| 亚洲欧洲精品一区二区三区| 亚洲黄一区二区三区| 日本最新不卡在线| 成人91在线观看| 欧美tickling挠脚心丨vk| 国产精品久久夜| 奇米色一区二区| 91电影在线观看| 国产欧美一区二区精品秋霞影院| 亚洲第一在线综合网站| 国产成人午夜高潮毛片| 欧美一区二区三区婷婷月色| 国产精品久久久久久久久久久免费看 | wwww国产精品欧美| 亚洲国产欧美在线| 91日韩在线专区| 国产精品视频你懂的| 久色婷婷小香蕉久久| 在线不卡一区二区| 一片黄亚洲嫩模| 91免费观看国产| 亚洲欧美中日韩| 成人黄色软件下载| 国产日韩成人精品| 国产精品小仙女| 国产精品女主播在线观看| 成人午夜激情影院| 亚洲视频一二区| 欧美性大战久久| 首页国产欧美日韩丝袜| 欧美放荡的少妇| 久草在线在线精品观看| 久久在线观看免费| 国产高清精品久久久久| 亚洲视频中文字幕| 色哟哟精品一区| 日韩av二区在线播放| 337p粉嫩大胆噜噜噜噜噜91av| 国产精品一区二区三区网站| 国产精品不卡在线| 欧美精品v国产精品v日韩精品| 丝袜亚洲另类丝袜在线| 欧美中文字幕一区| 国产在线观看一区二区| 国产欧美日韩中文久久| 欧美亚洲尤物久久| 蜜桃视频在线一区| 国产传媒日韩欧美成人| 欧美亚洲动漫制服丝袜| 午夜精品久久久久久久久久久| 日韩午夜精品视频| 在线观看av一区| 国产一区二区不卡在线| 亚洲精品乱码久久久久久久久 | 亚洲一区二区视频| 久久精品网站免费观看| 欧美一级黄色录像| 色94色欧美sute亚洲线路一久| 精品一区二区免费视频| 亚洲第一二三四区| 亚洲精品免费视频| 国产精品另类一区| 国产精品视频一区二区三区不卡| 91精品国产综合久久小美女| 色欧美88888久久久久久影院| 成人一区二区三区在线观看| 韩国午夜理伦三级不卡影院|