Lines Matching refs:DrawState
30 } DrawState;
91 DrawComposite(DrawState *s)
174 Draw(DrawState *s)
220 DrawState *drawstates;
257 drawstates = SDL_stack_alloc(DrawState, state->num_windows);
259 DrawState *drawstate = &drawstates[i];
261 drawstate->window = state->windows[i];
262 drawstate->renderer = state->renderers[i];
264 drawstate->sprite = LoadTexture(drawstate->renderer, "icon-alpha.bmp", SDL_TRUE);
266 drawstate->sprite = LoadTexture(drawstate->renderer, "icon.bmp", SDL_TRUE);
268 drawstate->background = LoadTexture(drawstate->renderer, "sample.bmp", SDL_FALSE);
269 if (!drawstate->sprite || !drawstate->background) {
272 SDL_QueryTexture(drawstate->sprite, NULL, NULL,
273 &drawstate->sprite_rect.w, &drawstate->sprite_rect.h);
274 drawstate->scale_direction = 1;