/dports/devel/stb/stb-f54acd4/tests/caveview/ |
H A D | cave_render.c | 128 void free_chunk(int slot_x, int slot_y) in free_chunk() argument 130 chunk_mesh *cm = &cached_chunk_mesh[slot_y][slot_x]; in free_chunk() 135 cached_chunk_mesh[slot_y][slot_x].state = STATE_invalid; in free_chunk() 161 int slot_x = (cx >> 1) & (CACHED_MESH_NUM_X-1); in upload_mesh_data() local 165 free_chunk(slot_x, slot_y); in upload_mesh_data() 167 cm = &cached_chunk_mesh[slot_y][slot_x]; in upload_mesh_data() 803 int slot_x = (cx>>1) & (CACHED_MESH_NUM_X-1); in render_caves() local 805 chunk_mesh *cm = &cached_chunk_mesh[slot_y][slot_x]; in render_caves() 811 … free_chunk(slot_x, slot_y); // it probably will have already gotten freed, but just in case in render_caves() 835 int slot_x = (cx>>1) & (CACHED_MESH_NUM_X-1); in render_caves() local [all …]
|
H A D | cave_parse.c | 94 int slot_x = reg_x & (MAX_MAP_REGIONS-1); in get_region() local 98 r = regions[slot_z][slot_x]; in get_region() 107 regions[slot_z][slot_x] = r; in get_region() 134 int slot_x = chunk_x & (NUM_CACHED_X-1); in get_compressed_chunk() local 136 compressed_chunk *cc = cached_chunk[slot_z][slot_x]; in get_compressed_chunk() 146 cached_chunk[slot_z][slot_x] = NULL; in get_compressed_chunk() 168 cached_chunk[slot_z][slot_x] = cc; in get_compressed_chunk()
|
H A D | cave_mesher.c | 536 int slot_x = (chunk_x & (cache_size-1)); in get_converted_fastchunk() local 541 ccc = &chunk_cache[slot_y][slot_x]; in get_converted_fastchunk()
|
/dports/net-im/uTox/uTox/third-party/stb/tests/caveview/ |
H A D | cave_render.c | 128 void free_chunk(int slot_x, int slot_y) in free_chunk() argument 130 chunk_mesh *cm = &cached_chunk_mesh[slot_y][slot_x]; in free_chunk() 135 cached_chunk_mesh[slot_y][slot_x].state = STATE_invalid; in free_chunk() 161 int slot_x = (cx >> 1) & (CACHED_MESH_NUM_X-1); in upload_mesh_data() local 165 free_chunk(slot_x, slot_y); in upload_mesh_data() 167 cm = &cached_chunk_mesh[slot_y][slot_x]; in upload_mesh_data() 803 int slot_x = (cx>>1) & (CACHED_MESH_NUM_X-1); in render_caves() local 805 chunk_mesh *cm = &cached_chunk_mesh[slot_y][slot_x]; in render_caves() 811 … free_chunk(slot_x, slot_y); // it probably will have already gotten freed, but just in case in render_caves() 835 int slot_x = (cx>>1) & (CACHED_MESH_NUM_X-1); in render_caves() local [all …]
|
H A D | cave_parse.c | 94 int slot_x = reg_x & (MAX_MAP_REGIONS-1); in get_region() local 98 r = regions[slot_z][slot_x]; in get_region() 107 regions[slot_z][slot_x] = r; in get_region() 134 int slot_x = chunk_x & (NUM_CACHED_X-1); in get_compressed_chunk() local 136 compressed_chunk *cc = cached_chunk[slot_z][slot_x]; in get_compressed_chunk() 146 cached_chunk[slot_z][slot_x] = NULL; in get_compressed_chunk() 168 cached_chunk[slot_z][slot_x] = cc; in get_compressed_chunk()
|
H A D | cave_mesher.c | 533 int slot_x = (chunk_x & (cache_size-1)); in get_converted_fastchunk() local 538 ccc = &chunk_cache[slot_y][slot_x]; in get_converted_fastchunk()
|
/dports/cad/cura-engine/CuraEngine-fadb5d6b/include/stb/tests/caveview/ |
H A D | cave_render.c | 128 void free_chunk(int slot_x, int slot_y) in free_chunk() argument 130 chunk_mesh *cm = &cached_chunk_mesh[slot_y][slot_x]; in free_chunk() 135 cached_chunk_mesh[slot_y][slot_x].state = STATE_invalid; in free_chunk() 161 int slot_x = (cx >> 1) & (CACHED_MESH_NUM_X-1); in upload_mesh_data() local 165 free_chunk(slot_x, slot_y); in upload_mesh_data() 167 cm = &cached_chunk_mesh[slot_y][slot_x]; in upload_mesh_data() 803 int slot_x = (cx>>1) & (CACHED_MESH_NUM_X-1); in render_caves() local 805 chunk_mesh *cm = &cached_chunk_mesh[slot_y][slot_x]; in render_caves() 811 … free_chunk(slot_x, slot_y); // it probably will have already gotten freed, but just in case in render_caves() 835 int slot_x = (cx>>1) & (CACHED_MESH_NUM_X-1); in render_caves() local [all …]
|
H A D | cave_parse.c | 94 int slot_x = reg_x & (MAX_MAP_REGIONS-1); in get_region() local 98 r = regions[slot_z][slot_x]; in get_region() 107 regions[slot_z][slot_x] = r; in get_region() 134 int slot_x = chunk_x & (NUM_CACHED_X-1); in get_compressed_chunk() local 136 compressed_chunk *cc = cached_chunk[slot_z][slot_x]; in get_compressed_chunk() 146 cached_chunk[slot_z][slot_x] = NULL; in get_compressed_chunk() 168 cached_chunk[slot_z][slot_x] = cc; in get_compressed_chunk()
|
H A D | cave_mesher.c | 536 int slot_x = (chunk_x & (cache_size-1)); in get_converted_fastchunk() local 541 ccc = &chunk_cache[slot_y][slot_x]; in get_converted_fastchunk()
|
/dports/security/ridl/ridl-11b3240/stb/tests/caveview/ |
H A D | cave_render.c | 128 void free_chunk(int slot_x, int slot_y) in free_chunk() argument 130 chunk_mesh *cm = &cached_chunk_mesh[slot_y][slot_x]; in free_chunk() 135 cached_chunk_mesh[slot_y][slot_x].state = STATE_invalid; in free_chunk() 161 int slot_x = (cx >> 1) & (CACHED_MESH_NUM_X-1); in upload_mesh_data() local 165 free_chunk(slot_x, slot_y); in upload_mesh_data() 167 cm = &cached_chunk_mesh[slot_y][slot_x]; in upload_mesh_data() 803 int slot_x = (cx>>1) & (CACHED_MESH_NUM_X-1); in render_caves() local 805 chunk_mesh *cm = &cached_chunk_mesh[slot_y][slot_x]; in render_caves() 811 … free_chunk(slot_x, slot_y); // it probably will have already gotten freed, but just in case in render_caves() 835 int slot_x = (cx>>1) & (CACHED_MESH_NUM_X-1); in render_caves() local [all …]
|
H A D | cave_parse.c | 94 int slot_x = reg_x & (MAX_MAP_REGIONS-1); in get_region() local 98 r = regions[slot_z][slot_x]; in get_region() 107 regions[slot_z][slot_x] = r; in get_region() 134 int slot_x = chunk_x & (NUM_CACHED_X-1); in get_compressed_chunk() local 136 compressed_chunk *cc = cached_chunk[slot_z][slot_x]; in get_compressed_chunk() 146 cached_chunk[slot_z][slot_x] = NULL; in get_compressed_chunk() 168 cached_chunk[slot_z][slot_x] = cc; in get_compressed_chunk()
|
H A D | cave_mesher.c | 536 int slot_x = (chunk_x & (cache_size-1)); in get_converted_fastchunk() local 541 ccc = &chunk_cache[slot_y][slot_x]; in get_converted_fastchunk()
|
/dports/emulators/mess/mame-mame0226/src/mame/drivers/ |
H A D | cave.cpp | 839 int slot_x = floor( ((320.0f - 1 - x) - 12) / 20 ); in ppsatan_touch_r() local 841 if (slot_x < 0) in ppsatan_touch_r() 842 slot_x = 0; in ppsatan_touch_r() 843 else if (slot_x > 14) in ppsatan_touch_r() 844 slot_x = 14; in ppsatan_touch_r() 846 if ( (m_ppsatan_io_mux & (1 << slot_x)) || ((m_ppsatan_io_mux << 13) & (1 << slot_x)) ) in ppsatan_touch_r() 847 ret_x |= 1 << (slot_x % 8); in ppsatan_touch_r()
|
/dports/emulators/mame/mame-mame0226/src/mame/drivers/ |
H A D | cave.cpp | 839 int slot_x = floor( ((320.0f - 1 - x) - 12) / 20 ); in ppsatan_touch_r() local 841 if (slot_x < 0) in ppsatan_touch_r() 842 slot_x = 0; in ppsatan_touch_r() 843 else if (slot_x > 14) in ppsatan_touch_r() 844 slot_x = 14; in ppsatan_touch_r() 846 if ( (m_ppsatan_io_mux & (1 << slot_x)) || ((m_ppsatan_io_mux << 13) & (1 << slot_x)) ) in ppsatan_touch_r() 847 ret_x |= 1 << (slot_x % 8); in ppsatan_touch_r()
|