/dports/games/spring/spring_98.0/rts/Sim/Path/Default/ |
H A D | PathFinderDef.cpp | 21 goalSquareX = goalCenter.x / SQUARE_SIZE; in CPathFinderDef() 22 goalSquareZ = goalCenter.z / SQUARE_SIZE; in CPathFinderDef() 25 sqGoalRadius = std::max(sqGoalRadius, SQUARE_SIZE * SQUARE_SIZE * 2.0f); in CPathFinderDef() 46 const float r0 = SQUARE_SIZE * SQUARE_SIZE * 4.0f; // same as (SQUARE_SIZE*2)^2 in IsGoalBlocked() 47 …const float r1 = ((moveDef.xsize * SQUARE_SIZE) >> 1) * ((moveDef.zsize * SQUARE_SIZE) >> 1) * 1.5… in IsGoalBlocked() 79 const unsigned int startX = start.x / SQUARE_SIZE; in CCircularSearchConstraint() 80 const unsigned int startZ = start.z / SQUARE_SIZE; in CCircularSearchConstraint() 84 halfWayX = halfWay.x / SQUARE_SIZE; in CCircularSearchConstraint() 85 halfWayZ = halfWay.z / SQUARE_SIZE; in CCircularSearchConstraint() 103 unsigned int startBlockX = startPos.x / SQUARE_SIZE; in CRectangularSearchConstraint() [all …]
|
/dports/games/spring/spring_98.0/rts/Sim/Path/QTPFS/ |
H A D | PathCache.cpp | 17 vScales.x = ((r.x2 - r.x1) * SQUARE_SIZE); in GetRectangleCollisionVolume() 18 vScales.z = ((r.z2 - r.z1) * SQUARE_SIZE); in GetRectangleCollisionVolume() 22 rm.x = ((r.x1 + r.x2) * SQUARE_SIZE) >> 1; in GetRectangleCollisionVolume() 162 ((p0.x >= (r.x1 * SQUARE_SIZE) && p0.x < (r.x2 * SQUARE_SIZE)) && in MarkDeadPaths() 163 (p0.z >= (r.z1 * SQUARE_SIZE) && p0.z < (r.z2 * SQUARE_SIZE))); in MarkDeadPaths() 165 ((p1.x >= (r.x1 * SQUARE_SIZE) && p1.x < (r.x2 * SQUARE_SIZE)) && in MarkDeadPaths() 166 (p1.z >= (r.z1 * SQUARE_SIZE) && p1.z < (r.z2 * SQUARE_SIZE))); in MarkDeadPaths() 174 xRangeInRect = (p0.x >= (r.x1 * SQUARE_SIZE) && p1.x < (r.x2 * SQUARE_SIZE)), in MarkDeadPaths() 175 xRangeExRect = (p0.x < (r.x1 * SQUARE_SIZE) && p1.x >= (r.x2 * SQUARE_SIZE)), in MarkDeadPaths() 176 zRangeInRect = (p0.z >= (r.z1 * SQUARE_SIZE) && p1.z < (r.z2 * SQUARE_SIZE)), in MarkDeadPaths() [all …]
|
H A D | Node.cpp | 63 const float dx = float(xmid() * SQUARE_SIZE) - float(n->xmid() * SQUARE_SIZE); in GetDistance() 64 const float dz = float(zmid() * SQUARE_SIZE) - float(n->zmid() * SQUARE_SIZE); in GetDistance() 123 …case REL_NGB_EDGE_T | REL_NGB_EDGE_L: { p.x = xmin() * SQUARE_SIZE; p.z = zmin() * SQUARE_SIZE; } … in GetNeighborEdgeTransitionPoint() 124 …case REL_NGB_EDGE_T | REL_NGB_EDGE_R: { p.x = xmax() * SQUARE_SIZE; p.z = zmin() * SQUARE_SIZE; } … in GetNeighborEdgeTransitionPoint() 125 …case REL_NGB_EDGE_B | REL_NGB_EDGE_R: { p.x = xmax() * SQUARE_SIZE; p.z = zmax() * SQUARE_SIZE; } … in GetNeighborEdgeTransitionPoint() 126 …case REL_NGB_EDGE_B | REL_NGB_EDGE_L: { p.x = xmin() * SQUARE_SIZE; p.z = zmax() * SQUARE_SIZE; } … in GetNeighborEdgeTransitionPoint() 134 … REL_NGB_EDGE_T: { p.x = Clamp(CAST(pos.x / SQUARE_SIZE), minx, maxx) * SQUARE_SIZE; p.z = minz * … in GetNeighborEdgeTransitionPoint() 135 … REL_NGB_EDGE_B: { p.x = Clamp(CAST(pos.x / SQUARE_SIZE), minx, maxx) * SQUARE_SIZE; p.z = maxz * … in GetNeighborEdgeTransitionPoint() 136 … REL_NGB_EDGE_R: { p.z = Clamp(CAST(pos.z / SQUARE_SIZE), minz, maxz) * SQUARE_SIZE; p.x = maxx * … in GetNeighborEdgeTransitionPoint() 137 … REL_NGB_EDGE_L: { p.z = Clamp(CAST(pos.z / SQUARE_SIZE), minz, maxz) * SQUARE_SIZE; p.x = minx * … in GetNeighborEdgeTransitionPoint() [all …]
|
H A D | PathSearch.cpp | 39 srcNode = nodeLayer->GetNode(srcPoint.x / SQUARE_SIZE, srcPoint.z / SQUARE_SIZE); in Initialize() 40 tgtNode = nodeLayer->GetNode(tgtPoint.x / SQUARE_SIZE, tgtPoint.z / SQUARE_SIZE); in Initialize() 115 tgtPoint.x = minNode->xmid() * SQUARE_SIZE; in Execute() 116 tgtPoint.z = minNode->zmid() * SQUARE_SIZE; in Execute() 459 ok = ok && (pi.x >= (xmin * SQUARE_SIZE) && pi.x <= (xmax * SQUARE_SIZE)); in SmoothPath() 460 ok = ok && (pi.z >= (zmin * SQUARE_SIZE) && pi.z <= (zmax * SQUARE_SIZE)); in SmoothPath() 476 e0.x = xmin * SQUARE_SIZE; in SmoothPath() 477 e1.x = xmax * SQUARE_SIZE; in SmoothPath() 480 e0.z = zmin * SQUARE_SIZE; in SmoothPath() 481 e1.z = zmax * SQUARE_SIZE; in SmoothPath() [all …]
|
H A D | NodeLayer.cpp | 243 const int xoff = (currFrameNum % ((gs->mapx >> 1) / SQUARE_SIZE)) * SQUARE_SIZE; in ExecNodeNeighborCacheUpdate() 244 const int zoff = (currFrameNum / ((gs->mapy >> 1) / SQUARE_SIZE)) * SQUARE_SIZE; in ExecNodeNeighborCacheUpdate() 256 …const int xmax = std::min(xmin + SQUARE_SIZE, gs->mapx >> 1), zmax = std::min(zmin + SQUARE_SIZE, … in ExecNodeNeighborCacheUpdate() 271 …const int xmax = std::min(xmin + SQUARE_SIZE, gs->mapx ), zmax = std::min(zmin + SQUARE_SIZE… in ExecNodeNeighborCacheUpdate() 286 …const int xmax = std::min(xmin + SQUARE_SIZE, gs->mapx ), zmax = std::min(zmin + SQUARE_SIZE… in ExecNodeNeighborCacheUpdate() 301 …const int xmax = std::min(xmin + SQUARE_SIZE, gs->mapx >> 1), zmax = std::min(zmin + SQUARE_SIZE, … in ExecNodeNeighborCacheUpdate()
|
/dports/games/spring/spring_98.0/rts/Map/ |
H A D | Ground.cpp | 32 x = Clamp(x, 0.0f, float3::maxxpos) / SQUARE_SIZE; in InterpolateHeight() 33 z = Clamp(z, 0.0f, float3::maxzpos) / SQUARE_SIZE; in InterpolateHeight() 90 cornerVertex.x = xs * SQUARE_SIZE; in LineGroundSquareCol() 91 cornerVertex.z = ys * SQUARE_SIZE; in LineGroundSquareCol() 115 cornerVertex.x += SQUARE_SIZE; in LineGroundSquareCol() 116 cornerVertex.z += SQUARE_SIZE; in LineGroundSquareCol() 235 const int sx = from.x / SQUARE_SIZE; in LineGroundCol() 236 const int sz = from.z / SQUARE_SIZE; in LineGroundCol() 301 const float rdsz = SQUARE_SIZE / dz; in LineGroundCol() 435 const float dx = (x / SQUARE_SIZE) - sx; in GetSmoothNormal() [all …]
|
H A D | BasicMapDamage.cpp | 70 e->x1 = Clamp<int>((pos.x - radius) / SQUARE_SIZE, 1, gs->mapxm1); in Explosion() 71 e->x2 = Clamp<int>((pos.x + radius) / SQUARE_SIZE, 1, gs->mapxm1); in Explosion() 72 e->y1 = Clamp<int>((pos.z - radius) / SQUARE_SIZE, 1, gs->mapym1); in Explosion() 73 e->y2 = Clamp<int>((pos.z + radius) / SQUARE_SIZE, 1, gs->mapym1); in Explosion() 93 const float expDist = pos.distance2D(float3(x * SQUARE_SIZE, 0, y * SQUARE_SIZE)); in Explosion() 113 grassDrawer->RemoveGrass(float3(x * SQUARE_SIZE, 0.0f, y * SQUARE_SIZE)); in Explosion() 130 const float expDist = pos.distance2D(float3(x * SQUARE_SIZE, 0, z * SQUARE_SIZE)); in Explosion() 169 minQuadNumX = (x1 * SQUARE_SIZE - (quadField->GetQuadSizeX() / 2)) / quadField->GetQuadSizeX(), in RecalcArea() 170 maxQuadNumX = (x2 * SQUARE_SIZE + (quadField->GetQuadSizeX() / 2)) / quadField->GetQuadSizeX(); in RecalcArea() 172 minQuadNumZ = (y1 * SQUARE_SIZE - (quadField->GetQuadSizeZ() / 2)) / quadField->GetQuadSizeZ(), in RecalcArea() [all …]
|
/dports/multimedia/librespot/librespot-0.1.3/cargo-crates/sdl2-0.32.2/examples/ |
H A D | game-of-life.rs | 13 pub const SQUARE_SIZE: u32 = 16; const 123 …let mut square_texture1 = texture_creator.create_texture_target(None, SQUARE_SIZE, SQUARE_SIZE).ma… in dummy_texture() 124 …let mut square_texture2 = texture_creator.create_texture_target(None, SQUARE_SIZE, SQUARE_SIZE).ma… in dummy_texture() 136 for i in 0..SQUARE_SIZE { in dummy_texture() 137 for j in 0..SQUARE_SIZE { in dummy_texture() 152 for i in 0..SQUARE_SIZE { in dummy_texture() 153 for j in 0..SQUARE_SIZE { in dummy_texture() 172 for i in 0..SQUARE_SIZE { in dummy_texture() 173 for j in 0..SQUARE_SIZE { in dummy_texture() 205 SQUARE_SIZE*PLAYGROUND_WIDTH, in main() [all …]
|
H A D | game-of-life-unsafe-textures.rs | 23 pub const SQUARE_SIZE: u32 = 16; const 134 …let mut square_texture1 = canvas.create_texture_target(None, SQUARE_SIZE, SQUARE_SIZE).map_err(|e|… in dummy_texture() 135 …let mut square_texture2 = canvas.create_texture_target(None, SQUARE_SIZE, SQUARE_SIZE).map_err(|e|… in dummy_texture() 147 for i in 0..SQUARE_SIZE { in dummy_texture() 148 for j in 0..SQUARE_SIZE { in dummy_texture() 163 for i in 0..SQUARE_SIZE { in dummy_texture() 164 for j in 0..SQUARE_SIZE { in dummy_texture() 183 for i in 0..SQUARE_SIZE { in dummy_texture() 184 for j in 0..SQUARE_SIZE { in dummy_texture() 217 SQUARE_SIZE*PLAYGROUND_WIDTH, in main() [all …]
|
/dports/games/dose-response/dose-response-179c326/cargo-crates/sdl2-0.32.2/examples/ |
H A D | game-of-life-unsafe-textures.rs | 23 pub const SQUARE_SIZE: u32 = 16; const 134 …let mut square_texture1 = canvas.create_texture_target(None, SQUARE_SIZE, SQUARE_SIZE).map_err(|e|… in dummy_texture() 135 …let mut square_texture2 = canvas.create_texture_target(None, SQUARE_SIZE, SQUARE_SIZE).map_err(|e|… in dummy_texture() 147 for i in 0..SQUARE_SIZE { in dummy_texture() 148 for j in 0..SQUARE_SIZE { in dummy_texture() 163 for i in 0..SQUARE_SIZE { in dummy_texture() 164 for j in 0..SQUARE_SIZE { in dummy_texture() 183 for i in 0..SQUARE_SIZE { in dummy_texture() 184 for j in 0..SQUARE_SIZE { in dummy_texture() 217 SQUARE_SIZE*PLAYGROUND_WIDTH, in main() [all …]
|
H A D | game-of-life.rs | 13 pub const SQUARE_SIZE: u32 = 16; const 123 …let mut square_texture1 = texture_creator.create_texture_target(None, SQUARE_SIZE, SQUARE_SIZE).ma… in dummy_texture() 124 …let mut square_texture2 = texture_creator.create_texture_target(None, SQUARE_SIZE, SQUARE_SIZE).ma… in dummy_texture() 136 for i in 0..SQUARE_SIZE { in dummy_texture() 137 for j in 0..SQUARE_SIZE { in dummy_texture() 152 for i in 0..SQUARE_SIZE { in dummy_texture() 153 for j in 0..SQUARE_SIZE { in dummy_texture() 172 for i in 0..SQUARE_SIZE { in dummy_texture() 173 for j in 0..SQUARE_SIZE { in dummy_texture() 205 SQUARE_SIZE*PLAYGROUND_WIDTH, in main() [all …]
|
/dports/games/battletanks/btanks-0.9.8083/engine/menu/ |
H A D | join_team.cpp | 11 #define SQUARE_SIZE 64 macro 24 … w = math::max(SQUARE_SPACING + (SQUARE_SIZE + SQUARE_SPACING) * teams, title_w + 2 * SQUARE_SPAC… in JoinTeamControl() 43 team_logo[i].create_rgb(SQUARE_SIZE, SQUARE_SIZE, 32); in JoinTeamControl() 72 …int dx = (SQUARE_SIZE - join_logo->get_width()) / 2, dy = (SQUARE_SIZE - join_logo->get_height()) … in render() 74 …int xp = mx + SQUARE_SPACING + (w - 2 * mx - (SQUARE_SIZE + SQUARE_SPACING) * teams - SQUARE_SPACI… in render() 75 int yp = my + SQUARE_SPACING + (h - 2 * my - (SQUARE_SIZE + SQUARE_SPACING * 2)) / 2 + title_h; in render() 77 int x0 = x + xp + (SQUARE_SIZE + SQUARE_SPACING) * i, y0 = y + yp; in render() 82 …_font->render(surface, x0 + (SQUARE_SIZE - w) / 2, y0 + (SQUARE_SIZE - _font->get_height()) / 2, p… in render()
|
/dports/graphics/shotwell/shotwell-0.30.14/plugins/shotwell-transitions/ |
H A D | ChessEffect.vala | 31 private const int SQUARE_SIZE = 100; 44 square_count_y = visuals.to_pos.height / SQUARE_SIZE + 2; 45 square_count_x = visuals.to_pos.width / SQUARE_SIZE + 2; 55 double size = 2 * alpha * SQUARE_SIZE; 66 double translation = (x+y) % 2 == 0 ? -1.5 * SQUARE_SIZE : 1.5 * SQUARE_SIZE; 68 ctx.rectangle(visuals.to_pos.x + translation + x * SQUARE_SIZE, 69 visuals.to_pos.y + y * SQUARE_SIZE, size, SQUARE_SIZE); 72 * SQUARE_SIZE - size, visuals.to_pos.y + y * SQUARE_SIZE, size, 73 SQUARE_SIZE);
|
/dports/x11-toolkits/tepl/tepl-5.1.1/tepl/ |
H A D | tepl-gutter-renderer-folds.c | 21 #define SQUARE_SIZE 9 macro 40 gint sign_width = SQUARE_SIZE - 4; in G_DEFINE_TYPE_WITH_PRIVATE() 47 left_margin = (cell_area->width - SQUARE_SIZE) / 2; in G_DEFINE_TYPE_WITH_PRIVATE() 48 top_margin = (cell_area->height - SQUARE_SIZE) / 2; in G_DEFINE_TYPE_WITH_PRIVATE() 56 SQUARE_SIZE - 1.0, in G_DEFINE_TYPE_WITH_PRIVATE() 57 SQUARE_SIZE - 1.0); in G_DEFINE_TYPE_WITH_PRIVATE() 61 y + SQUARE_SIZE / 2.0); in G_DEFINE_TYPE_WITH_PRIVATE() 68 x + SQUARE_SIZE / 2.0, in G_DEFINE_TYPE_WITH_PRIVATE() 126 if (cell_area->height < SQUARE_SIZE || in split_cell_area() 127 cell_area->width < SQUARE_SIZE) in split_cell_area() [all …]
|
/dports/x11-toolkits/tepl6/tepl-6.00.0/tepl/ |
H A D | tepl-gutter-renderer-folds.c | 21 #define SQUARE_SIZE 9 macro 40 gint sign_width = SQUARE_SIZE - 4; in G_DEFINE_TYPE_WITH_PRIVATE() 47 left_margin = (cell_area->width - SQUARE_SIZE) / 2; in G_DEFINE_TYPE_WITH_PRIVATE() 48 top_margin = (cell_area->height - SQUARE_SIZE) / 2; in G_DEFINE_TYPE_WITH_PRIVATE() 56 SQUARE_SIZE - 1.0, in G_DEFINE_TYPE_WITH_PRIVATE() 57 SQUARE_SIZE - 1.0); in G_DEFINE_TYPE_WITH_PRIVATE() 61 y + SQUARE_SIZE / 2.0); in G_DEFINE_TYPE_WITH_PRIVATE() 68 x + SQUARE_SIZE / 2.0, in G_DEFINE_TYPE_WITH_PRIVATE() 126 if (cell_area->height < SQUARE_SIZE || in split_cell_area() 127 cell_area->width < SQUARE_SIZE) in split_cell_area() [all …]
|
/dports/graphics/elementary-photos/photos-2.7.1/plugins/pantheon-photos-transitions/ |
H A D | ChessEffect.vala | 44 private const int SQUARE_SIZE = 100; 57 square_count_y = visuals.to_pos.height / SQUARE_SIZE + 2; 58 square_count_x = visuals.to_pos.width / SQUARE_SIZE + 2; 68 double size = 2 * alpha * SQUARE_SIZE; 79 double translation = (x + y) % 2 == 0 ? -1.5 * SQUARE_SIZE : 1.5 * SQUARE_SIZE; 81 ctx.rectangle (visuals.to_pos.x + translation + x * SQUARE_SIZE, 82 visuals.to_pos.y + y * SQUARE_SIZE, size, SQUARE_SIZE); 85 … * SQUARE_SIZE - size, visuals.to_pos.y + y * SQUARE_SIZE, size, 86 SQUARE_SIZE);
|
/dports/games/spring/spring_98.0/rts/Game/ |
H A D | GameHelper.cpp | 865 ….x = math::floor((buildInfo.pos.x ) / (SQUARE_SIZE * 2)) * SQUARE_SIZE * 2 + SQUARE_S… in Pos2BuildPos() 867 pos.x = math::floor((buildInfo.pos.x + SQUARE_SIZE) / (SQUARE_SIZE * 2)) * SQUARE_SIZE * 2; in Pos2BuildPos() 870 ….z = math::floor((buildInfo.pos.z ) / (SQUARE_SIZE * 2)) * SQUARE_SIZE * 2 + SQUARE_S… in Pos2BuildPos() 872 pos.z = math::floor((buildInfo.pos.z + SQUARE_SIZE) / (SQUARE_SIZE * 2)) * SQUARE_SIZE * 2; in Pos2BuildPos() 1022 const int px = (pos.x - (xsize * (SQUARE_SIZE >> 1))) / SQUARE_SIZE; in GetBuildHeight() 1100 const int mindx = xsize * (SQUARE_SIZE >> 1) - (SQUARE_SIZE >> 1); in TestUnitBuildSquare() 1101 const int mindz = zsize * (SQUARE_SIZE >> 1) - (SQUARE_SIZE >> 1); in TestUnitBuildSquare() 1130 …if (std::max(bc.pos.x - x * SQUARE_SIZE - SQUARE_SIZE, x * SQUARE_SIZE - bc.pos.x) * 2 < bc.GetXSi… in TestUnitBuildSquare() 1131 …std::max(bc.pos.z - z * SQUARE_SIZE - SQUARE_SIZE, z * SQUARE_SIZE - bc.pos.z) * 2 < bc.GetZSize()… in TestUnitBuildSquare() 1183 const int yardxpos = int(pos.x + (SQUARE_SIZE >> 1)) / SQUARE_SIZE; in TestBuildSquare() [all …]
|
/dports/graphics/libcaca/libcaca-0.99.beta19/examples/ |
H A D | trifiller.c | 31 #define SQUARE_SIZE 20 macro 52 {-SQUARE_SIZE, -SQUARE_SIZE}, in main() 53 {SQUARE_SIZE, -SQUARE_SIZE}, in main() 54 {SQUARE_SIZE, SQUARE_SIZE}, in main() 55 {-SQUARE_SIZE, SQUARE_SIZE}, in main()
|
/dports/games/spring/spring_98.0/rts/Sim/Units/ |
H A D | UnitLoader.cpp | 209 const float sqHalfMapSize = sqSize / 2 * 10 * SQUARE_SIZE; in GiveUnits() 267 pos.x - (((squareSize - 1) * xsize * SQUARE_SIZE) / 2), in GiveUnits() 269 pos.z - (((squareSize - 1) * zsize * SQUARE_SIZE) / 2) in GiveUnits() 276 const float px = squarePos.x + x * xsize * SQUARE_SIZE; in GiveUnits() 277 const float pz = squarePos.z + z * zsize * SQUARE_SIZE; in GiveUnits() 313 pos.x - (((squareSize - 1) * xsize * SQUARE_SIZE) / 2), in GiveUnits() 315 pos.z - (((squareSize - 1) * zsize * SQUARE_SIZE) / 2) in GiveUnits() 322 const float px = squarePos.x + x * xsize * SQUARE_SIZE; in GiveUnits() 323 const float pz = squarePos.z + z * zsize * SQUARE_SIZE; in GiveUnits() 374 const float hss = 0.5f * SQUARE_SIZE; in FlattenGround() [all …]
|
/dports/games/spring/spring_98.0/rts/Sim/MoveTypes/MoveMath/ |
H A D | MoveMath.h | 45 return (GetPosSpeedMod(moveDef, pos.x / SQUARE_SIZE, pos.z / SQUARE_SIZE)); in GetPosSpeedMod() 49 return (GetPosSpeedMod(moveDef, pos.x / SQUARE_SIZE, pos.z / SQUARE_SIZE, moveDir)); in GetPosSpeedMod() 70 return (SquareIsBlocked(moveDef, pos.x / SQUARE_SIZE, pos.z / SQUARE_SIZE, collider)); in SquareIsBlocked() 92 return (IsBlocked(moveDef, pos.x / SQUARE_SIZE, pos.z / SQUARE_SIZE, collider)); in IsBlocked()
|
/dports/games/spring/spring_98.0/rts/Rendering/ |
H A D | QTPFSPathDrawer.cpp | 87 const float3 mins = float3(n->xmin() * SQUARE_SIZE, 0.0f, n->zmin() * SQUARE_SIZE); in DrawNodeTreeRec() 88 const float3 maxs = float3(n->xmax() * SQUARE_SIZE, 0.0f, n->zmax() * SQUARE_SIZE); in DrawNodeTreeRec() 104 const float3 mins = float3(n->xmin() * SQUARE_SIZE, 0.0f, n->zmin() * SQUARE_SIZE); in GetVisibleNodes() 105 const float3 maxs = float3(n->xmax() * SQUARE_SIZE, 0.0f, n->zmax() * SQUARE_SIZE); in GetVisibleNodes() 244 #define xminw (node->xmin() * SQUARE_SIZE) in DrawNode() 245 #define xmaxw (node->xmax() * SQUARE_SIZE) in DrawNode() 246 #define zminw (node->zmin() * SQUARE_SIZE) in DrawNode() 247 #define zmaxw (node->zmax() * SQUARE_SIZE) in DrawNode() 248 #define xmidw (node->xmid() * SQUARE_SIZE) in DrawNode() 249 #define zmidw (node->zmid() * SQUARE_SIZE) in DrawNode() [all …]
|
H A D | DefaultPathDrawer.cpp | 128 …const float3 pos(tx * (SQUARE_SIZE << 1) + SQUARE_SIZE, 0.0f, ty * (SQUARE_SIZE << 1) + SQUARE_SIZ… in UpdateExtraTexture() 356 p1.x = sqr.x * SQUARE_SIZE; in Draw() 357 p1.z = sqr.y * SQUARE_SIZE; in Draw() 363 p2.x = obp.x * SQUARE_SIZE; in Draw() 364 p2.z = obp.y * SQUARE_SIZE; in Draw() 409 p1.x = (blockStates.peNodeOffsets[md->pathType][blockNr].x) * SQUARE_SIZE; in Draw() 410 p1.z = (blockStates.peNodeOffsets[md->pathType][blockNr].y) * SQUARE_SIZE; in Draw() 520 p1.x = (blockStates.peNodeOffsets[md->pathType][blockNr].x) * SQUARE_SIZE; in Draw() 521 p1.z = (blockStates.peNodeOffsets[md->pathType][blockNr].y) * SQUARE_SIZE; in Draw() 547 p1.x = (blockStates.peNodeOffsets[md->pathType][blockNr].x) * SQUARE_SIZE; in Draw() [all …]
|
/dports/games/spring/spring_98.0/rts/Sim/Objects/ |
H A D | SolidObject.cpp | 259 …gpos.x += SQUARE_SIZE / 2; //??? needed to move to SQUARE-center? (possibly current input is wrong) in GetGroundBlockingMaskAtPos() 260 gpos.z += SQUARE_SIZE / 2; in GetGroundBlockingMaskAtPos() 275 gpos -= float3(mapPos.x * SQUARE_SIZE, 0.0f, mapPos.y * SQUARE_SIZE); in GetGroundBlockingMaskAtPos() 278 gpos.x += SQUARE_SIZE / 2 - (this->xsize >> 1) * SQUARE_SIZE; in GetGroundBlockingMaskAtPos() 279 gpos.z += SQUARE_SIZE / 2 - (this->zsize >> 1) * SQUARE_SIZE; in GetGroundBlockingMaskAtPos() 283 float by = frontv.dot(gpos) / SQUARE_SIZE; in GetGroundBlockingMaskAtPos() 284 float bx = rightv.dot(gpos) / SQUARE_SIZE; in GetGroundBlockingMaskAtPos() 307 mp.x = (int(position.x + SQUARE_SIZE / 2) / SQUARE_SIZE) - (xsize / 2); in GetMapPos() 308 mp.y = (int(position.z + SQUARE_SIZE / 2) / SQUARE_SIZE) - (zsize / 2); in GetMapPos()
|
/dports/net-im/toxic/toxic-0.11.3/src/ |
H A D | qr_code.c | 38 #define SQUARE_SIZE 5 macro 139 real_width = (qr_obj->width + BORDER_LEN * 2) * SQUARE_SIZE; in ID_to_QRcode_png() 186 for (y = 0; y < BORDER_LEN * SQUARE_SIZE; y++) { in ID_to_QRcode_png() 197 for (xx = 0; xx < SQUARE_SIZE; xx++) { in ID_to_QRcode_png() 199 memcpy(&row[((BORDER_LEN + x) * SQUARE_SIZE + xx) * 4], black, 4); in ID_to_QRcode_png() 206 for (yy = 0; yy < SQUARE_SIZE; yy++) { in ID_to_QRcode_png() 214 for (y = 0; y < BORDER_LEN * SQUARE_SIZE; y++) { in ID_to_QRcode_png()
|
/dports/games/angband/Angband-4.2.2/src/ |
H A D | cave.h | 68 #define SQUARE_SIZE FLAG_SIZE(SQUARE_MAX) macro 71 #define sqinfo_next(f, flag) flag_next(f, SQUARE_SIZE, flag) 72 #define sqinfo_is_empty(f) flag_is_empty(f, SQUARE_SIZE) 73 #define sqinfo_is_full(f) flag_is_full(f, SQUARE_SIZE) 78 #define sqinfo_off(f, flag) flag_off(f, SQUARE_SIZE, flag) 79 #define sqinfo_wipe(f) flag_wipe(f, SQUARE_SIZE) 80 #define sqinfo_setall(f) flag_setall(f, SQUARE_SIZE) 81 #define sqinfo_negate(f) flag_negate(f, SQUARE_SIZE) 82 #define sqinfo_copy(f1, f2) flag_copy(f1, f2, SQUARE_SIZE) 83 #define sqinfo_union(f1, f2) flag_union(f1, f2, SQUARE_SIZE) [all …]
|