Home
last modified time | relevance | path

Searched refs:GRID_LENGTH (Results 1 – 17 of 17) sorted by relevance

/dports/astro/stellarium/stellarium-0.21.3/plugins/Scenery3d/src/
H A DHeightmap.cpp160 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 DHeightmap.hpp57 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 Dmap_object.h203 _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 Dmap_escape_point.cpp47 SetCollPixelHeight((_animation->GetHeight() / MAP_ZOOM_RATIO) - 0.3f * GRID_LENGTH); in EscapePoint()
H A Dmap_save_point.cpp47 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 Dmap_zones.cpp98 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 Dmap_object_supervisor.cpp896 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 Dmap_utils.h62 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 Dmap_tiles.cpp343 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 Dmap_mode.cpp1003 _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 Dbluemoon.c51 #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 Dblue.c45 #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 Dblue.c45 #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 Dblue.c64 #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 Dmap_treasure.cpp67 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 Dmap_utils.h49 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 Dmap_sprite.cpp491 vt_video::VideoManager->DrawRectangle(GRID_LENGTH / 2, in _DrawDebugInfo()
492 GRID_LENGTH / 2, in _DrawDebugInfo()