HomeSort by relevance Sort by last modified time
    Searched refs:velocities (Results 1 - 3 of 3) sorted by null

  /prebuilts/misc/windows/sdl2/test/
testspriteminimal.c 27 static SDL_Rect velocities[NUM_SPRITES]; variable
101 velocity = &velocities[i];
147 velocities[i].x = 0;
148 velocities[i].y = 0;
149 while (!velocities[i].x && !velocities[i].y) {
150 velocities[i].x = (rand() % (MAX_SPEED * 2 + 1)) - MAX_SPEED;
151 velocities[i].y = (rand() % (MAX_SPEED * 2 + 1)) - MAX_SPEED;
testnative.c 39 static SDL_Rect *positions, *velocities; variable
102 velocity = &velocities[i];
189 velocities = (SDL_Rect *) SDL_malloc(NUM_SPRITES * sizeof(SDL_Rect));
190 if (!positions || !velocities) {
200 velocities[i].x = 0;
201 velocities[i].y = 0;
202 while (!velocities[i].x && !velocities[i].y) {
203 velocities[i].x = (rand() % (MAX_SPEED * 2 + 1)) - MAX_SPEED;
204 velocities[i].y = (rand() % (MAX_SPEED * 2 + 1)) - MAX_SPEED
    [all...]
testsprite2.c 33 static SDL_Rect *velocities; variable
47 SDL_free(velocities);
197 velocity = &velocities[i];
322 velocities = (SDL_Rect *) SDL_malloc(num_sprites * sizeof(SDL_Rect));
323 if (!positions || !velocities) {
328 /* Position sprites and set their velocities using the fuzzer */
342 velocities[i].x = 0;
343 velocities[i].y = 0;
344 while (!velocities[i].x && !velocities[i].y)
    [all...]

Completed in 331 milliseconds