WinG

WinG

In computing, WinG (pronounced "Win Gee") was an API to provide faster graphics performance on Windows 3.1. WinG included API calls such as "CreateDIBSection()", "SetDIBColorTable()", "BitBlt()", and "StretchBlt()".

WinG out-of-the-box support (i.e. as a separate API to Win32) was dropped in Windows 98 Second Edition (which integrated DirectX 6), as it did absolutely nothing but pass through to the Win32 APIs that it was wrapping. WinG DLLs were sometimes distributed with the application then it merely became a matter of copying the files wing.dll, wing32.dll, wingde.dll, wingdib.drv and wngpal.wnd to one's 'system32' directory to regain system-wide support.

The original Windows Graphics Device Interface (GDI) was designed with static images in mind, making its animation capabilities very limited. The GDI provides an interface to the graphics hardware that is device independent, that is, a program written using the GDI will work on all graphics and printer hardware, provided suitable Windows GDI drivers for the hardware are installed on the system. This means that graphics cannot be written to the physical framebuffer on the graphics hardware directly and must be written to a logical graphics "device context" (DC) provided by the GDI, which is then translated by the GDI and the device drivers to suit the target hardware device and is written to its physical frame buffer in an appropriate manner.

The major limitation of the GDI DC was that they were write-only. Data, once written, could not be retrieved. This was because the contents of the DC was device dependent, and data read from it would make no sense to the programmer. In order to do animation using the GDI DC, all of the animation frames needed to be manipulated in system memory and then each frame needed to be copied into a GDI DC for display on the graphics device. This was a very slow process.

WinG introduced a new type of DC called a WinGDC, which allowed programmers to both read and write to it directly using device-independent bitmaps (DIBs) with the wingdib.drv driver. Effectively, it gave programmers the ability to do with Windows what they'd been doing without hardware access limitations in DOS for years. Programmers could write DIBs to the WinGDC, yet would still have access to the individual bits of the image data. This meant that fast graphics algorithms could be written to allow fast scrolling, overdraw, dirty rectangles, double buffering, and other animation techniques. WinG also provided much better performance when blitting graphics data to physical graphics device memory. Since WinG used the DIB format, it was possible to mix original GDI API calls and WinG calls.

WinG would also perform a graphics hardware/driver profiling test on the first execution of the program in order to determine the best way to manipulate the graphics hardware. This test showed a window full of red curved lines, sections of which would wobble as performance was tested. Once WinG had determined the fastest calls that did not cause graphics corruption, a profile would be saved so that the test would not need to be performed again.

The entire WinG API is at present part of the Win32 API.

ee also

*Windows Graphics Foundation


Wikimedia Foundation. 2010.

Игры ⚽ Нужно решить контрольную?
Synonyms:

Look at other dictionaries:

  • Wing — Wing, n. [OE. winge, wenge; probably of Scand. origin; cf. Dan. & Sw. vinge, Icel. v[ae]ngr.] [1913 Webster] 1. One of the two anterior limbs of a bird, pterodactyl, or bat. They correspond to the arms of man, and are usually modified for flight …   The Collaborative International Dictionary of English

  • Wing — heißen die Orte: Wing (Alabama), Ort in den USA Wing (Buckinghamshire), Ort in England Ort der All Saints Church (Wing) Wing (Oakham) in Leicestershire, Mize Maze in England Wing (Rutland), Ort in England Port Wing (Wisconsin), Stadt in den USA… …   Deutsch Wikipedia

  • wing — /wing/, n. 1. either of the two forelimbs of most birds and of bats, corresponding to the human arms, that are specialized for flight. 2. either of two corresponding parts in flightless birds, which may be rudimentary, as in certain ratite birds …   Universalium

  • wing — [wiŋ] n. [ME winge, weng < ON vaengr (for IE base see WIND2): the word replaced OE fether, wing, FEATHER] 1. a) either of the two feathered forelimbs of a bird, fully developed for flying, as in most birds, or insufficiently developed for… …   English World dictionary

  • Wing On — (zh c|c=永安) is a department store in Hong Kong. It was founded in 1907, and it is the second Chinese owned department store in Hong Kong. It has five outlets providing 360,000 square feet (33,400 square metre) of shopping space.Its founders are… …   Wikipedia

  • wing — ► NOUN 1) a modified forelimb or other appendage enabling a bird, bat, insect, or other creature to fly. 2) a rigid horizontal structure projecting from both sides of an aircraft and supporting it in the air. 3) a part of a large building,… …   English terms dictionary

  • wing — (n.) late 12c., wenge, from O.N. vængr wing of a bird, aisle, etc. (Cf. Dan., Swed. vinge wing ), of unknown origin, perhaps from a P.Gmc. *we ingjaz and ultimately from PIE root *we blow (Cf. O.E. wawan to blow; see WIND (Cf. wind) (n.)).… …   Etymology dictionary

  • Wing — Wing, v. t. [imp. & p. p. {Winged}; p. pr. & vb. n. {Winging}.] 1. To furnish with wings; to enable to fly, or to move with celerity. [1913 Webster] Who heaves old ocean, and whowings the storms. Pope. [1913 Webster] Living, to wing with mirth… …   The Collaborative International Dictionary of English

  • WinG — (sprich: Win Gee) ist eine Grafik Programmierschnittstelle für Windows 3.1, die bis Windows 98 Second Edition unterstützt wurde und anschließend komplett in die Graphics Device Interface (GDI) übernommen wurde. Grund für ihre Entwicklung waren… …   Deutsch Wikipedia

  • Wing — Wing, ND U.S. city in North Dakota Population (2000): 124 Housing Units (2000): 89 Land area (2000): 0.589750 sq. miles (1.527446 sq. km) Water area (2000): 0.000000 sq. miles (0.000000 sq. km) Total area (2000): 0.589750 sq. miles (1.527446 sq.… …   StarDict's U.S. Gazetteer Places

  • Wing, ND — U.S. city in North Dakota Population (2000): 124 Housing Units (2000): 89 Land area (2000): 0.589750 sq. miles (1.527446 sq. km) Water area (2000): 0.000000 sq. miles (0.000000 sq. km) Total area (2000): 0.589750 sq. miles (1.527446 sq. km) FIPS… …   StarDict's U.S. Gazetteer Places

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”