/dports/games/powder-toy/The-Powder-Toy-95.0/src/simulation/ |
H A D | Gravity.cpp | 24 gravx = new float[size]; in Gravity() 43 delete[] gravx; in ~Gravity() 52 std::fill(gravx, gravx + size, 0.0f); in Clear() 157 memcpy(gravx, th_gravx, (XRES/CELL)*(YRES/CELL)*sizeof(float)); in gravity_update_async() 162 std::swap(gravx, th_gravx); in gravity_update_async() 182 membwand(gravx, gravmask, size * sizeof(float), size * sizeof(unsigned)); in gravity_update_async() 235 std::fill(&gravx[0], &gravx[size], 0.0f); in start_grav_async() 255 std::fill(&gravx[0], &gravx[size], 0.0f); in stop_grav_async()
|
H A D | Gravity.h | 73 float *gravx = nullptr; variable
|
H A D | Simulation.h | 94 float *gravx;//gravx[(YRES/CELL) * (XRES/CELL)]; variable
|
H A D | Simulation.cpp | 523 snap->GravVelocityX.insert(snap->GravVelocityX.begin(), gravx, gravx+((XRES/CELL)*(YRES/CELL))); in CreateSnapshot() 558 std::copy(snap.GravVelocityX.begin(), snap.GravVelocityX.end(), gravx); in Restore() 731 sample.GravityVelocityX = gravx[(y/CELL)*(XRES/CELL)+(x/CELL)]; in GetSample() 3253 pGravX = newtonGrav*gravx[(y/CELL)*(XRES/CELL)+(x/CELL)]; in GetGravityField() 3494 pGravX += elements[t].NewtonianGravity * gravx[(y/CELL)*(XRES/CELL)+(x/CELL)]; in UpdateParticles() 3969 gravtot = fabs(gravy[(y/CELL)*(XRES/CELL)+(x/CELL)])+fabs(gravx[(y/CELL)*(XRES/CELL)+(x/CELL)]); in UpdateParticles() 4512 pGravX += gravx[(ny/CELL)*(XRES/CELL)+(nx/CELL)]; in UpdateParticles() 4584 pGravX += gravx[(ny/CELL)*(XRES/CELL)+(nx/CELL)]; in UpdateParticles() 4941 gravx = grav->gravx; in BeforeSim() 5177 gravx = grav->gravx; in Simulation()
|
/dports/games/powder-toy/The-Powder-Toy-95.0/src/simulation/elements/ |
H A D | O2.cpp | 80 float gravx = sim->gravx[gravPos]; in update() local 82 if (gravx*gravx + gravy*gravy > 400) in update()
|
H A D | DEUT.cpp | 57 …float gravtot = fabs(sim->gravy[(y/CELL)*(XRES/CELL)+(x/CELL)])+fabs(sim->gravx[(y/CELL)*(XRES/CEL… in update()
|
/dports/x11-wm/afterstep/AfterStep-1.0/afterstep/ |
H A D | placement.c | 106 int gravx, gravy; /* gravity signs for positioning */ in PlaceWindow() local 109 GetGravityOffsets (tmp_win, &gravx, &gravy); in PlaceWindow() 298 tmp_win->attr.x -= gravx*(tmp_win->bw-tmp_win->old_bw); in PlaceWindow() 301 if(gravx > 0) in PlaceWindow()
|
/dports/devel/bullet/bullet3-3.21/test/SharedMemory/ |
H A D | test.c | 47 double gravx = 0, gravy = 0, gravz = -9.8; in testSharedMemory() local 58 ret = b3PhysicsParamSetGravity(command, gravx, gravy, gravz); in testSharedMemory()
|
/dports/devel/py-bullet3/bullet3-3.21/test/SharedMemory/ |
H A D | test.c | 47 double gravx = 0, gravy = 0, gravz = -9.8; in testSharedMemory() local 58 ret = b3PhysicsParamSetGravity(command, gravx, gravy, gravz); in testSharedMemory()
|
/dports/x11-wm/ctwm/ctwm-4.0.3/ |
H A D | ctwm_main.c | 1233 int gravx, gravy; in RestoreWithdrawnLocation() local 1246 GetGravityOffsets(tmp, &gravx, &gravy); in RestoreWithdrawnLocation() 1250 xwc.x += gravx * tmp->frame_bw3D; in RestoreWithdrawnLocation() 1257 xoff = gravx; in RestoreWithdrawnLocation() 1269 xwc.x += gravx * tmp->frame_bw; in RestoreWithdrawnLocation()
|
H A D | add_window.c | 105 int gravx, gravy; /* gravity signs for positioning */ in AddWindow() local 598 gravx = gravy = -1; in AddWindow() 601 GetGravityOffsets(tmp_win, &gravx, &gravy); in AddWindow() 1272 tmp_win->attr.x += gravx * delta; in AddWindow()
|
H A D | event_handlers.c | 3665 int gravx, gravy; in HandleConfigureRequest() local 3767 GetGravityOffsets(Tmp_win, &gravx, &gravy); in HandleConfigureRequest() 3772 x += gravx * bwdelta; /* change default values only */ in HandleConfigureRequest() 3778 x += (gravx < 0) ? bwdelta : -bwdelta; in HandleConfigureRequest() 3786 x -= ((gravx < 0) ? 0 : Tmp_win->frame_bw3D); in HandleConfigureRequest()
|
/dports/x11-wm/twm/twm-1.0.11/src/ |
H A D | twm.c | 862 int gravx, gravy; in RestoreWithdrawnLocation() local 869 GetGravityOffsets(tmp, &gravx, &gravy); in RestoreWithdrawnLocation() 877 xoff = gravx; in RestoreWithdrawnLocation() 889 xwc.x += gravx * tmp->frame_bw; in RestoreWithdrawnLocation()
|
H A D | add_window.c | 156 int gravx, gravy; /* gravity signs for positioning */ in AddWindow() local 379 gravx = gravy = -1; in AddWindow() 382 GetGravityOffsets(tmp_win, &gravx, &gravy); in AddWindow() 720 tmp_win->attr.x += gravx * delta; in AddWindow()
|
H A D | events.c | 2223 int gravx, gravy; in HandleConfigureRequest() local 2304 GetGravityOffsets(Tmp_win, &gravx, &gravy); in HandleConfigureRequest() 2310 x += gravx * bwdelta; /* change default values only */ in HandleConfigureRequest() 2315 x += (gravx < 0) ? bwdelta : -bwdelta; in HandleConfigureRequest()
|
/dports/x11-wm/piewm/piewm-1.04/ |
H A D | twm.c | 795 int gravx, gravy; in RestoreWithdrawnLocation() local 802 GetGravityOffsets (tmp, &gravx, &gravy); in RestoreWithdrawnLocation() 809 xoff = gravx; in RestoreWithdrawnLocation() 820 xwc.x += gravx * tmp->frame_bw; in RestoreWithdrawnLocation()
|
H A D | events.c | 2295 int gravx, gravy; in HandleConfigureRequest() local 2372 GetGravityOffsets (Tmp_win, &gravx, &gravy); in HandleConfigureRequest() 2377 x += gravx * bwdelta; /* change default values only */ in HandleConfigureRequest() 2381 x += (gravx < 0) ? bwdelta : -bwdelta; in HandleConfigureRequest()
|
H A D | add_window.c | 151 int gravx, gravy; /* gravity signs for positioning */ in AddWindow() local 350 GetGravityOffsets (tmp_win, &gravx, &gravy); in AddWindow() 363 tmp_win->attr.x += gravx * delta; in AddWindow()
|
/dports/x11-wm/vtwm/vtwm-5.5.0/ |
H A D | twm.c | 1415 int gravx, gravy; in RestoreWithdrawnLocation() local 1422 GetGravityOffsets(tmp, &gravx, &gravy); in RestoreWithdrawnLocation() 1426 xwc.x += gravx * tmp->frame_bw3D; in RestoreWithdrawnLocation() 1435 xoff = gravx; in RestoreWithdrawnLocation() 1449 xwc.x += gravx * tmp->frame_bw; in RestoreWithdrawnLocation()
|
H A D | add_window.c | 219 int gravx, gravy; /* gravity signs for positioning */ in AddWindow() local 446 GetGravityOffsets(tmp_win, &gravx, &gravy); in AddWindow() 554 tmp_win->attr.x += gravx * delta; in AddWindow() 565 JunkX = gravx + 1; in AddWindow() 1091 int stat, gravx, gravy; in AddMoveAndResize() local 1607 GetGravityOffsets(tmp_win, &gravx, &gravy); in AddMoveAndResize()
|
/dports/x11-wm/tvtwm/tvtwm/ |
H A D | twm.c | 1099 int gravx, gravy; local 1106 GetGravityOffsets (tmp, &gravx, &gravy); 1113 xoff = gravx; 1124 xwc.x += gravx * tmp->frame_bw;
|
H A D | add_window.c | 150 int gravx, gravy; /* gravity signs for positioning */ local 344 GetGravityOffsets (tmp_win, &gravx, &gravy); 374 tmp_win->attr.x += gravx * delta;
|
/dports/x11-toolkits/lesstif/lesstif-0.95.2/clients/Motif-2.1/mwm/ |
H A D | windows.c | 492 int gravx, gravy; /* gravity signs for positioning */ in place_window() local 496 get_gravity_offsets(tmp_win, &gravx, &gravy); in place_window() 675 tmp_win->attr.x -= gravx * (tmp_win->bw - tmp_win->old_bw); in place_window() 680 if (gravx > 0) in place_window()
|
/dports/editors/texmacs/TeXmacs-1.99.4-src/src/Graphics/Pictures/ |
H A D | raster.hpp | 876 raster<F> gravx= gravitation<F> (R, expon, false); in gravitational_outline() local 878 raster<C> convx= convolute (s, gravx); in gravitational_outline() 921 raster<F> gravx= gravitation<F> (R, expon, false); in gravitational_shadow() local 923 raster<F> convx= trim_border (convolute (als, gravx), R); in gravitational_shadow()
|
/dports/games/powder-toy/The-Powder-Toy-95.0/src/graphics/ |
H A D | Renderer.cpp | 347 glTexSubImage2D(GL_TEXTURE_2D, 0, 0, 0, XRES/CELL, YRES/CELL, GL_RED, GL_FLOAT, sim->gravx); in FinaliseParts() 1042 rx = (int)(nx-sim->gravx[co]*0.75f+0.5f); in render_gravlensing() 1044 gx = (int)(nx-sim->gravx[co]*0.875f+0.5f); in render_gravlensing() 1046 bx = (int)(nx-sim->gravx[co]+0.5f); in render_gravlensing() 2347 if(fabsf(sim->gravx[ca]) <= 0.001f && fabsf(sim->gravy[ca]) <= 0.001f) in draw_grav() 2351 dist = fabsf(sim->gravy[ca])+fabsf(sim->gravx[ca]); in draw_grav() 2354 nx -= sim->gravx[ca]*0.5f; in draw_grav()
|