Lines Matching full:sprite
56 SDL_Texture *sprite;
58 /* Load the sprite image */
71 sprite = SDL_CreateTextureFromSurface(renderer, temp);
72 if (!sprite) {
80 return sprite;
84 MoveSprites(SDL_Renderer * renderer, SDL_Texture * sprite)
93 SDL_QueryTexture(sprite, NULL, NULL, &sprite_w, &sprite_h);
99 /* Move the sprite, bounce at the wall, and draw */
114 /* Blit the sprite onto the screen */
115 SDL_RenderCopy(renderer, sprite, NULL, position);
129 SDL_Texture *sprite;
176 /* Clear the window, load the sprite and go! */
180 sprite = LoadSprite(renderer, "icon.bmp");
181 if (!sprite) {
185 /* Allocate memory for the sprite info */
187 SDL_QueryTexture(sprite, NULL, NULL, &sprite_w, &sprite_h);
229 MoveSprites(renderer, sprite);