/dports/astro/stellarium/stellarium-0.21.3/plugins/Scenery3d/src/ |
H A D | Heightmap.cpp | 160 grid = new GridSpace[GRID_LENGTH*GRID_LENGTH]; in initGrid() 181 Vec2i minIdx(triMin * GRID_LENGTH); in initGrid() 182 minIdx = minIdx.clamp(Vec2i(0),Vec2i(GRID_LENGTH-1)); in initGrid() 183 Vec2i maxIdx(triMax * GRID_LENGTH); in initGrid() 184 maxIdx = maxIdx.clamp(Vec2i(0),Vec2i(GRID_LENGTH-1)); in initGrid() 191 Vec2f rectMin = min + (Vec2f(x,y) * range) / GRID_LENGTH; in initGrid() 202 FaceVector* faces = &grid[y*GRID_LENGTH + x].faces; in initGrid() 215 int ix = (x - min[0]) / (range[0]) * GRID_LENGTH; in getSpace() 216 int iy = (y - min[1]) / (range[1]) * GRID_LENGTH; in getSpace() 218 if ((ix < 0) || (ix >= GRID_LENGTH) || (iy < 0) || (iy >= GRID_LENGTH)) in getSpace() [all …]
|
H A D | Heightmap.hpp | 57 static const int GRID_LENGTH = 60; // # of grid spaces is GRID_LENGTH^2 member in Heightmap
|
/dports/games/valyriatear/ValyriaTear-1.1.0/src/modes/map/map_objects/ |
H A D | map_object.h | 203 _img_grid_half_width = width / GRID_LENGTH * MAP_ZOOM_RATIO; in SetImgPixelHalfWidth() 211 _img_grid_height = height / GRID_LENGTH * MAP_ZOOM_RATIO; in SetImgPixelHeight() 217 _coll_grid_half_width = collision / GRID_LENGTH * MAP_ZOOM_RATIO; in SetCollPixelHalfWidth() 223 _coll_grid_height = collision / GRID_LENGTH * MAP_ZOOM_RATIO; in SetCollPixelHeight()
|
H A D | map_escape_point.cpp | 47 SetCollPixelHeight((_animation->GetHeight() / MAP_ZOOM_RATIO) - 0.3f * GRID_LENGTH); in EscapePoint()
|
H A D | map_save_point.cpp | 47 SetCollPixelHeight((_animations->at(0).GetHeight() / MAP_ZOOM_RATIO) - 0.3f * GRID_LENGTH); in SavePoint()
|
/dports/games/valyriatear/ValyriaTear-1.1.0/src/modes/map/ |
H A D | map_zones.cpp | 98 vt_video::VideoManager->DrawRectangle((it->right - it->left) * GRID_LENGTH, in Draw() 99 (it->bottom - it->top) * GRID_LENGTH, in Draw() 147 vt_video::VideoManager->MoveRelative(0.0f, -1.0f * GRID_LENGTH); in DrawInteractionIcon() 448 vt_video::VideoManager->DrawRectangle((it->right - it->left) * GRID_LENGTH, in Draw() 449 (it->bottom - it->top) * GRID_LENGTH, in Draw()
|
H A D | map_object_supervisor.cpp | 896 vt_video::VideoManager->Move(GRID_LENGTH * (frame->tile_offset.x - 0.5f), in DrawCollisionArea() 897 GRID_LENGTH * (frame->tile_offset.y - 1.0f)); in DrawCollisionArea() 906 vt_video::VideoManager->DrawRectangle(GRID_LENGTH, GRID_LENGTH, in DrawCollisionArea() 909 vt_video::VideoManager->MoveRelative(GRID_LENGTH, 0.0f); in DrawCollisionArea() 911 …vt_video::VideoManager->MoveRelative(-static_cast<float>(frame->num_draw_x_axis * 2) * GRID_LENGTH, in DrawCollisionArea() 912 GRID_LENGTH); in DrawCollisionArea()
|
H A D | map_utils.h | 62 const uint16_t GRID_LENGTH = vt_video::VIDEO_STANDARD_RES_WIDTH / SCREEN_GRID_X_LENGTH; variable 64 const uint16_t TILE_LENGTH = GRID_LENGTH * 2;
|
H A D | map_tiles.cpp | 343 VideoManager->Move(GRID_LENGTH * (frame->tile_offset.x - 1.0f), in DrawLayers() 344 GRID_LENGTH * (frame->tile_offset.y - 2.0f)); in DrawLayers()
|
H A D | map_mode.cpp | 1003 _pixel_length.x /= GRID_LENGTH; in _UpdateMapFrame() 1004 _pixel_length.y /= GRID_LENGTH; in _UpdateMapFrame() 1130 float x = _map_frame.tile_offset.x * GRID_LENGTH; in _DrawDebugGrid() 1131 float y = _map_frame.tile_offset.y * GRID_LENGTH; in _DrawDebugGrid()
|
/dports/games/bluemoon/bluemoon-2.12/ |
H A D | bluemoon.c | 51 #define GRID_LENGTH (NSUITS * GRID_WIDTH) macro 63 static int grid[GRID_LENGTH]; /* card layout grid */ 207 for(i = 0; i < GRID_LENGTH; i++) in find()
|
/dports/devel/libslang2/slang-2.3.2/src/curses/ |
H A D | blue.c | 45 #define GRID_LENGTH 56 /* 4*(13+1) */ macro 54 static int grid[GRID_LENGTH]; /* card layout grid */ 210 for(i = 0; i < GRID_LENGTH; i++) in find()
|
/dports/japanese/libslang/slang-1.4.5jp2/src/curses/ |
H A D | blue.c | 45 #define GRID_LENGTH 56 /* 4*(13+1) */ macro 54 static int grid[GRID_LENGTH]; /* card layout grid */ 210 for(i = 0; i < GRID_LENGTH; i++) in find()
|
/dports/devel/ncurses/ncurses-6.3/test/ |
H A D | blue.c | 64 #define GRID_LENGTH 56 /* 4*(13+1) */ macro 79 static int grid[GRID_LENGTH]; /* card layout grid */ 277 for (i = 0; i < GRID_LENGTH; i++) in find()
|
/dports/games/allacrost/allacrost-1.0.2/src/modes/map/ |
H A D | map_treasure.cpp | 67 frames[i].SetWidth(frames[i].GetWidth() / (GRID_LENGTH / 2)); in MapTreasure() 68 frames[i].SetHeight(frames[i].GetHeight() / (GRID_LENGTH / 2)); in MapTreasure()
|
H A D | map_utils.h | 49 const uint16 GRID_LENGTH = 32; // Length of a grid element in pixels variable
|
/dports/games/valyriatear/ValyriaTear-1.1.0/src/modes/map/map_sprites/ |
H A D | map_sprite.cpp | 491 vt_video::VideoManager->DrawRectangle(GRID_LENGTH / 2, in _DrawDebugInfo() 492 GRID_LENGTH / 2, in _DrawDebugInfo()
|