HomeSort by: relevance | last modified time | path
    Searched refs:shape (Results 1 - 15 of 15) sorted by relevancy

  /src/games/tetris/
shapes.c 55 const struct shape shapes[] = {
78 * Return true iff the given shape fits in the given position,
82 fits_in(const struct shape *shape, int pos)
84 const int *o = shape->off;
93 * Write the given shape into the current board, turning it on
97 place(const struct shape *shape, int pos, int onoff)
99 const int *o = shape->off;
100 onoff = onoff ? shape->color : 0
    [all...]
tetris.h 86 * A `shape' is the fundamental thing that makes up the game. There
95 * Except for 3 and 6, the center of each shape is one of the blots.
97 * described as offsets from the center. Shape 3 is the same under
99 * so that it `sticks out' upward and leftward. Except for shape 6,
101 * shape 6's center `wobbles' as it rotates, so that while it `sticks out'
109 * The shape is moved steadily downward until it collides with something:
110 * either another shape, or the bottom of the board. When the shape can
113 * these rows move down to make more room. A new random shape is again
115 * The game ends when the new shape will not fit at (1,5)
126 struct shape { struct
    [all...]
tetris.c 67 static const struct shape *curshape;
68 const struct shape *nextshape;
239 * Put up the current shape `permanently',
247 * Choose a new shape. If it does not fit,
289 const struct shape *new = &shapes[curshape->rot];
screen.c 299 static const struct shape *lastshape;
333 putstr("Next shape:");
  /src/sys/external/mit/xen-include-public/dist/xen/include/public/io/
kbdif.h 436 * Multi-touch shape event - touch point's shape has changed its shape.
437 * Shape is approximated by an ellipse through the major and minor axis
461 * Multi-touch orientation event - touch point's shape has changed
495 } shape; member in union:xenkbd_mtouch::__anon6c8a7878010a
  /src/sys/stand/efiboot/
smbios.h 197 uint8_t shape; member in struct:smbios_chassis
  /src/sys/dev/
smbiosvar.h 202 uint8_t shape; member in struct:smbios_chassis
smbios_platform.c 129 platform_add(&smbios, "chassis-type", pchassis->shape);
  /src/usr.bin/make/unit-tests/
check-expect.lua 61 --- @shape ExpLine
  /src/sys/arch/arm/broadcom/
bcm283x_platform.c 1092 int shape = 0; local in function:rpi_fb_do_cursor
1105 shape = 1;
1124 shape = 1;
1133 shape = 1;
1135 if (shape) {
  /src/sys/arch/arm/ti/
omap3_dss.c 1172 int shape = 0; local in function:omapfb_do_cursor
1205 shape = 1;
1211 shape = 1;
1213 if (shape) {
  /src/sys/dev/tc/
sfbplus.c 103 void (*shape)(void *, struct wsdisplay_curpos *, uint64_t *); member in struct:hwops
281 sc->sc_hwops.shape = bt459shape;
288 sc->sc_hwops.shape = sfbpshape;
594 (*sc->sc_hwops.shape)(base, &cc->cc_size, cc->cc_image);
  /src/sys/external/bsd/drm2/dist/drm/qxl/
qxl_dev.h 441 QXLPHYSICAL shape; member in struct:qxl_cursor_cmd::__anon314d145b060a::__anon314d145b0708
qxl_display.c 526 cmd->u.set.shape = qxl_bo_physical_address(qdev, qcrtc->cursor_bo, 0);
652 cmd->u.set.shape = qxl_bo_physical_address(qdev,
  /src/share/mk/
bsd.prog.mk 255 shape shm sync xf86dri xfixes xinerama xinput xkb xtest xv xvmc

Completed in 22 milliseconds