Wrapping (overflow)

Wrapping (overflow)

In computing, wrapping is when a variable that exceeds its maximum value returns to its minimum value and vice-versa. Most high-level programming languages avoid wrapping by giving an arithmetic overflow error if this occurs.

Camera wrapping is a technique often used in video games, which allows a player to move in a straight line and get back to where they started. This was more often used in older games to make it seem that the player is moving up or down an extremely high hill; memory can be saved by using wrapping instead of creating a larger area filled with unpassable walls:

*With wrapping:

-- --

*Without wrapping:

-- --

As the diagrams above show, using wrapping will reduce the size of the area needed.

Camera wrapping can also be used to simulate the surface of a cylinder or torus.


Wikimedia Foundation. 2010.

Игры ⚽ Нужно сделать НИР?

Look at other dictionaries:

  • Wrapping — *Wrapping (overflow), a variable that exceeds its maximum value in computing *Wrapping (graphics), the process of limiting a position to an area in computer graphics *Wrapping paper, paper used for wrapping a gift *Word wrapping, a feature… …   Wikipedia

  • Classic RISC pipeline — In the history of computer hardware, some early reduced instruction set computer central processing units (RISC CPUs) used a very similar architectural solution, now called a classic RISC pipeline. Those CPUs were: MIPS, SPARC, Motorola 88000,… …   Wikipedia

  • Markdown — is a lightweight markup language, originally created by John Gruber and Aaron Swartz allowing people to write using an easy to read, easy to write plain text format, then convert it to structurally valid XHTML (or HTML) .[1] The language takes… …   Wikipedia

  • Fibre (informatique) — Pour les articles homonymes, voir Fibre (homonymie). En Informatique, une fibre (fiber en anglais) est un thread d exécution particulièrement léger. Comme les threads, les fibres partagent la même mémoire virtuelle. Toutefois, les fibres… …   Wikipédia en Français

  • Digital signal processor — A Digital Signal Processor chip found in a guitar effects unit. A digital signal processor (DSP) is a specialized microprocessor with an architecture optimized for the fast operational needs of digital signal processing.[1] …   Wikipedia

  • cover — I (Roget s IV) n. 1. [A covering object] Syn. covering, top, lid, cap, ceiling, canopy, awning, tent, marquee, umbrella, parasol, roof, thatch, dome, blanket, bedspread, coverlet, stopper, plug, cork, canvas, seal, tarpaulin, book cover, binding …   English dictionary for students

  • padding — n 1. pad, stuffing, wadding, filling, fiber fill, filler, lining, Obs. bombast; wrapping, wrapper, wrapping paper; packing, packing material, shredded newspaper, tissue paper, Trademark. Styrofoam, Chem. polystyrene, plastic bubbles. 2. verbiage …   A Note on the Style of the synonym finder

  • Brainfuck — Not to be confused with Brain Fuck Scheduler. brainfuck Paradigm(s) esoteric Appeared in 1993 Designed by Urban Müller Influenced by P′′, FALSE Usual filename extensions …   Wikipedia

  • Carabane — Coordinates: 12°32′16″N 16°42′03″W / 12.5378°N 16.7008°W / 12.5378; 16.7008 …   Wikipedia

  • Exception handling — is a programming language construct or computer hardware mechanism designed to handle the occurrence of exceptions, special conditions that change the normal flow of program execution. Programming languages differ considerably in their support… …   Wikipedia

Share the article and excerpts

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