Lines Matching refs:texture

107 SW_CreateTexture(SDL_Renderer * renderer, SDL_Texture * texture)  in SW_CreateTexture()  argument
113 (texture->format, &bpp, &Rmask, &Gmask, &Bmask, &Amask)) { in SW_CreateTexture()
117 texture->driverdata = in SW_CreateTexture()
118 SDL_CreateRGBSurface(0, texture->w, texture->h, bpp, Rmask, Gmask, in SW_CreateTexture()
120 SDL_SetSurfaceColorMod(texture->driverdata, texture->r, texture->g, in SW_CreateTexture()
121 texture->b); in SW_CreateTexture()
122 SDL_SetSurfaceAlphaMod(texture->driverdata, texture->a); in SW_CreateTexture()
123 SDL_SetSurfaceBlendMode(texture->driverdata, texture->blendMode); in SW_CreateTexture()
128 if (texture->access == SDL_TEXTUREACCESS_STATIC && !Amask) { in SW_CreateTexture()
129 SDL_SetSurfaceRLE(texture->driverdata, 1); in SW_CreateTexture()
132 if (!texture->driverdata) { in SW_CreateTexture()
139 SW_UpdateTexture(SDL_Renderer * renderer, SDL_Texture * texture, in SW_UpdateTexture() argument
142 SDL_Surface *surface = (SDL_Surface *) texture->driverdata; in SW_UpdateTexture()
165 SW_LockTexture(SDL_Renderer * renderer, SDL_Texture * texture, in SW_LockTexture() argument
168 SDL_Surface *surface = (SDL_Surface *) texture->driverdata; in SW_LockTexture()
178 SW_UnlockTexture(SDL_Renderer * renderer, SDL_Texture * texture) in SW_UnlockTexture() argument
183 SW_SetTextureScaleMode(SDL_Renderer * renderer, SDL_Texture * texture, SDL_ScaleMode scaleMode) in SW_SetTextureScaleMode() argument
188 SW_SetRenderTarget(SDL_Renderer * renderer, SDL_Texture * texture) in SW_SetRenderTarget() argument
192 if (texture) { in SW_SetRenderTarget()
193 data->surface = (SDL_Surface *) texture->driverdata; in SW_SetRenderTarget()
270 SW_QueueCopy(SDL_Renderer * renderer, SDL_RenderCommand *cmd, SDL_Texture * texture, in SW_QueueCopy() argument
307 SW_QueueCopyEx(SDL_Renderer * renderer, SDL_RenderCommand *cmd, SDL_Texture * texture, in SW_QueueCopyEx() argument
338 SW_RenderCopyEx(SDL_Renderer * renderer, SDL_Surface *surface, SDL_Texture * texture, in SW_RenderCopyEx() argument
342 SDL_Surface *src = (SDL_Surface *) texture->driverdata; in SW_RenderCopyEx()
450 …src_rotated = SDLgfx_rotateSurface(src_clone, angle, dstwidth/2, dstheight/2, (texture->scaleMode … in SW_RenderCopyEx()
572 SDL_Texture *texture = cmd->data.draw.texture; in PrepTextureForCopy() local
573 SDL_Surface *surface = (SDL_Surface *) texture->driverdata; in PrepTextureForCopy()
710 SDL_Texture *texture = cmd->data.draw.texture; in SW_RunCommandQueue() local
711 SDL_Surface *src = (SDL_Surface *) texture->driverdata; in SW_RunCommandQueue()
733 SW_RenderCopyEx(renderer, surface, cmd->data.draw.texture, &copydata->srcrect, in SW_RunCommandQueue()
790 SW_DestroyTexture(SDL_Renderer * renderer, SDL_Texture * texture) in SW_DestroyTexture() argument
792 SDL_Surface *surface = (SDL_Surface *) texture->driverdata; in SW_DestroyTexture()