/AliOS-Things-master/components/SDL2/src/render/ |
A D | SDL_render.c | 501 if (PrepQueueCmdDraw(renderer, texture->r, texture->g, texture->b, texture->a) == 0) { in PrepQueueCmdDrawTexture() 512 cmd->data.draw.texture = texture; in PrepQueueCmdDrawTexture() 1110 texture->native->next = texture->next; in SDL_CreateTexture() 1116 texture->prev->next = texture; in SDL_CreateTexture() 1118 texture->native->prev = texture; in SDL_CreateTexture() 1119 texture->next = texture->native; in SDL_CreateTexture() 1880 texture = texture->native; in SDL_SetRenderTarget() 2992 texture = texture->native; in SDL_RenderCopyF() 3086 texture = texture->native; in SDL_RenderCopyExF() 3180 texture->next->prev = texture->prev; in SDL_DestroyTexture() [all …]
|
A D | SDL_sysrender.h | 97 SDL_Texture *texture; member 116 int (*CreateTexture) (SDL_Renderer * renderer, SDL_Texture * texture); 125 int (*QueueCopy) (SDL_Renderer * renderer, SDL_RenderCommand *cmd, SDL_Texture * texture, 127 int (*QueueCopyEx) (SDL_Renderer * renderer, SDL_RenderCommand *cmd, SDL_Texture * texture, 131 int (*UpdateTexture) (SDL_Renderer * renderer, SDL_Texture * texture, 134 int (*UpdateTextureYUV) (SDL_Renderer * renderer, SDL_Texture * texture, 139 int (*LockTexture) (SDL_Renderer * renderer, SDL_Texture * texture, 141 void (*UnlockTexture) (SDL_Renderer * renderer, SDL_Texture * texture); 143 int (*SetRenderTarget) (SDL_Renderer * renderer, SDL_Texture * texture); 147 void (*DestroyTexture) (SDL_Renderer * renderer, SDL_Texture * texture); [all …]
|
/AliOS-Things-master/components/SDL2/src/render/direct3d/ |
A D | SDL_render_d3d.c | 440 if (texture->texture) { in D3D_RecreateTextureRep() 442 texture->texture = NULL; in D3D_RecreateTextureRep() 505 if (texture->texture) { in D3D_DestroyTextureRep() 507 texture->texture = NULL; in D3D_DestroyTextureRep() 536 …ep(data->device, &texturedata->texture, usage, texture->format, PixelFormatToD3DFMT(texture->forma… in D3D_CreateTexture() 1025 if (texture->dirty && texture->staging) { in UpdateDirtyTexture() 1027 if (!texture->texture) { in UpdateDirtyTexture() 1126 if (texture != data->drawstate.texture) { in SetDrawState() 1151 data->drawstate.texture = texture; in SetDrawState() 1618 for (texture = renderer->textures; texture; texture = texture->next) { in D3D_Reset() [all …]
|
/AliOS-Things-master/components/SDL2/src/render/opengles/ |
A D | SDL_render_gles.c | 69 SDL_Texture *texture; member 105 GLuint texture; member 347 data->pitch = texture->w * SDL_BYTESPERPIXEL(texture->format); in GLES_CreateTexture() 361 data->fbo = GLES_GetFBO(renderer->driverdata, texture->w, texture->h); in GLES_CreateTexture() 395 renderdata->drawstate.texture = texture; in GLES_CreateTexture() 460 renderdata->drawstate.texture = texture; in GLES_UpdateTexture() 813 SDL_Texture *texture = cmd->data.draw.texture; in SetCopyState() local 816 if (texture != data->drawstate.texture) { in SetCopyState() 819 data->drawstate.texture = texture; in SetCopyState() 1036 if (renderdata->drawstate.texture == texture) { in GLES_DestroyTexture() [all …]
|
/AliOS-Things-master/components/SDL2/src/render/opengl/ |
A D | SDL_render_gl.c | 66 SDL_Texture *texture; member 123 GLuint texture; member 473 data->pitch = texture->w * SDL_BYTESPERPIXEL(texture->format); in GL_CreateTexture() 493 data->fbo = GL_GetFBO(renderdata, texture->w, texture->h); in GL_CreateTexture() 806 if (texture == NULL) { in GL_SetRenderTarget() 1048 SDL_Texture *texture = cmd->data.draw.texture; in SetCopyState() local 1097 if (texture != data->drawstate.texture) { in SetCopyState() 1113 data->drawstate.texture = texture; in SetCopyState() 1434 if (renderdata->drawstate.texture == texture) { in GL_DestroyTexture() 1444 if (data->texture) { in GL_DestroyTexture() [all …]
|
/AliOS-Things-master/components/ugraphics/src/ |
A D | ugraphics.c | 12 struct { char *string; SDL_Texture *texture; } text[MAX_TEXT]; member 13 struct { char *file; SDL_Texture *texture; } image[MAX_IMAGE]; member 88 SDL_DestroyTexture(text[i].texture); in graphics_wipe_text() 148 if (!texture) { in graphics_generate_text() 154 text[text_count].texture = texture; in graphics_generate_text() 164 SDL_DestroyTexture(image[i].texture); in graphics_wipe_image() 199 ret = SDL_QueryTexture(texture, NULL, NULL, &drect.w, &drect.h); in graphics_draw_texture() 203 ret = SDL_RenderCopy(renderer, texture, NULL, &drect); in graphics_draw_texture() 221 ret = graphics_draw_texture(text[i].texture, x, y); in ugraphics_draw_string() 262 image[image_count].texture = image_texture; in graphics_generate_image() [all …]
|
/AliOS-Things-master/components/SDL2/include/ |
A D | SDL_render.h | 285 extern DECLSPEC int SDLCALL SDL_QueryTexture(SDL_Texture * texture, 302 extern DECLSPEC int SDLCALL SDL_SetTextureColorMod(SDL_Texture * texture, 424 extern DECLSPEC int SDLCALL SDL_UpdateTexture(SDL_Texture * texture, 447 extern DECLSPEC int SDLCALL SDL_UpdateYUVTexture(SDL_Texture * texture, 468 extern DECLSPEC int SDLCALL SDL_LockTexture(SDL_Texture * texture, 498 extern DECLSPEC void SDLCALL SDL_UnlockTexture(SDL_Texture * texture); 520 SDL_Texture *texture); 871 SDL_Texture * texture, 891 SDL_Texture * texture, 1013 SDL_Texture * texture, [all …]
|
/AliOS-Things-master/components/SDL2/src/video/directfb/ |
A D | SDL_DirectFB_render.c | 288 layconf.width = texture->w; in DirectFB_AcquireVidLayer() 340 texture->driverdata = data; in DirectFB_CreateTexture() 356 dsc.width = texture->w; in DirectFB_CreateTexture() 357 dsc.height = texture->h; in DirectFB_CreateTexture() 407 …SDL_DFB_ALLOC_CLEAR(data->pixels, (texture->h * data->pitch + ((texture->h + texture->h % 2) * (d… in DirectFB_CreateTexture() 430 switch (texture->scaleMode) { 493 src = (Uint8 *) pixels + texture->h * pitch + texture->h * pitch / 4; in DirectFB_UpdateTexture() 586 if (texture) { in DirectFB_SetRenderTarget() 755 SDL_Texture *texture = cmd->data.draw.texture; in DirectFB_RunCommandQueue() local 784 const SDL_Rect rect = { 0, 0, texture->w, texture->h }; in DirectFB_RunCommandQueue() [all …]
|
/AliOS-Things-master/components/SDL2/src/render/opengles2/ |
A D | SDL_render_gles2.c | 56 GLenum texture; member 140 SDL_Texture *texture; member 949 SDL_Texture *texture = cmd->data.draw.texture; in SetDrawState() local 986 if (texture != data->drawstate.texture) { in SetDrawState() 1016 data->drawstate.texture = texture; in SetDrawState() 1019 if (texture) { in SetDrawState() 1023 if (GLES2_SelectProgram(data, imgsrc, texture ? texture->w : 0, texture ? texture->h : 0) < 0) { in SetDrawState() 1089 SDL_Texture *texture = cmd->data.draw.texture; in SetCopyState() local 1461 data->pitch = texture->w * SDL_BYTESPERPIXEL(texture->format); in GLES2_CreateTexture() 1809 if (data->drawstate.texture == texture) { in GLES2_DestroyTexture() [all …]
|
/AliOS-Things-master/components/SDL2/test/ |
A D | testshape.c | 24 SDL_Texture *texture; member 29 void render(SDL_Renderer *renderer,SDL_Texture *texture,SDL_Rect texture_dimensions) in render() argument 36 SDL_RenderCopy(renderer,texture,&texture_dimensions,&texture_dimensions); in render() 127 pictures[i].texture = NULL; in main() 129 pictures[i].texture = SDL_CreateTextureFromSurface(renderer,pictures[i].surface); in main() 130 if(pictures[i].texture == NULL) { in main() 132 if(pictures[i].texture != NULL) in main() 133 SDL_DestroyTexture(pictures[i].texture); in main() 153 …SDL_QueryTexture(pictures[current_picture].texture,(Uint32 *)&pixelFormat,(int *)&access,&texture_… in main() 180 render(renderer,pictures[current_picture].texture,texture_dimensions); in main() [all …]
|
A D | testshader.c | 280 GLuint texture; in SDL_GL_LoadTexture() local 322 glGenTextures(1, &texture); in SDL_GL_LoadTexture() 323 glBindTexture(GL_TEXTURE_2D, texture); in SDL_GL_LoadTexture() 331 return texture; in SDL_GL_LoadTexture() 356 void DrawGLScene(SDL_Window *window, GLuint texture, GLfloat * texcoord) in DrawGLScene() argument 390 glBindTexture(GL_TEXTURE_2D, texture); in DrawGLScene() 421 GLuint texture; in main() local 453 texture = SDL_GL_LoadTexture(surface, texcoords); in main() 465 DrawGLScene(window, texture, texcoords); in main()
|
A D | testime.c | 322 SDL_Texture *texture; in unifont_draw_glyph() local 334 texture = unifontTexture[UNIFONT_NUM_TEXTURES * rendererID + textureID]; in unifont_draw_glyph() 335 if (texture != NULL) in unifont_draw_glyph() 480 SDL_Texture *texture; in _Redraw() local 487 texture = SDL_CreateTextureFromSurface(renderer,textSur); in _Redraw() 490 SDL_RenderCopy(renderer,texture,NULL,&drawnTextRect); in _Redraw() 491 SDL_DestroyTexture(texture); in _Redraw() 543 SDL_Texture *texture; in _Redraw() local 563 texture = SDL_CreateTextureFromSurface(renderer,textSur); in _Redraw() 566 SDL_RenderCopy(renderer,texture,NULL,&drawnTextRect); in _Redraw() [all …]
|
A D | testscale.c | 53 SDL_Texture *texture; in LoadTexture() local 87 texture = SDL_CreateTextureFromSurface(renderer, temp); in LoadTexture() 88 if (!texture) { in LoadTexture() 96 return texture; in LoadTexture()
|
A D | teststreaming.c | 70 void UpdateTexture(SDL_Texture *texture, int frame) in UpdateTexture() argument 79 if (SDL_LockTexture(texture, NULL, &pixels, &pitch) < 0) { in UpdateTexture() 91 SDL_UnlockTexture(texture); in UpdateTexture()
|
A D | testrendercopyex.c | 51 SDL_Texture *texture; in LoadTexture() local 85 texture = SDL_CreateTextureFromSurface(renderer, temp); in LoadTexture() 86 if (!texture) { in LoadTexture() 94 return texture; in LoadTexture()
|
A D | testgamecontroller.c | 75 SDL_Texture *texture = NULL; in LoadTexture() local 88 texture = SDL_CreateTextureFromSurface(renderer, temp); in LoadTexture() 89 if (!texture) { in LoadTexture() 96 return texture; in LoadTexture()
|
/AliOS-Things-master/components/SDL2/src/render/software/ |
A D | SDL_render_sw.c | 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() 129 SDL_SetSurfaceRLE(texture->driverdata, 1); in SW_CreateTexture() 132 if (!texture->driverdata) { in SW_CreateTexture() 192 if (texture) { in SW_SetRenderTarget() 572 SDL_Texture *texture = cmd->data.draw.texture; in PrepTextureForCopy() local [all …]
|
/AliOS-Things-master/components/SDL2/src/render/psp/ |
A D | SDL_render_psp.c | 314 psp_texture->width = texture->w; in PSP_CreateTexture() 315 psp_texture->height = texture->h; in PSP_CreateTexture() 345 texture->driverdata = psp_texture; in PSP_CreateTexture() 357 TextureActivate(SDL_Texture * texture) in TextureActivate() argument 363 if (texture->w >= 16 || texture->h >= 16) in TextureActivate() 389 length = rect->w * SDL_BYTESPERPIXEL(texture->format); in PSP_UpdateTexture() 426 rect.w = texture->w; in PSP_UnlockTexture() 427 rect.h = texture->h; in PSP_UnlockTexture() 810 TextureActivate(cmd->data.draw.texture); in PSP_RunCommandQueue() 832 TextureActivate(cmd->data.draw.texture); in PSP_RunCommandQueue() [all …]
|
/AliOS-Things-master/components/SDL2/src/render/direct3d11/ |
A D | SDL_render_d3d11.c | 228 SDL_Texture *texture = NULL; in D3D11_ReleaseAll() local 231 for (texture = renderer->textures; texture; texture = texture->next) { in D3D11_ReleaseAll() 1061 texture->driverdata = textureData; in D3D11_CreateTexture() 1064 textureDesc.Width = texture->w; in D3D11_CreateTexture() 1065 textureDesc.Height = texture->h; in D3D11_CreateTexture() 1245 texture->driverdata = NULL; in D3D11_DestroyTexture() 1317 (ID3D11Resource *)texture, in D3D11_UpdateTextureInternal() 1545 if (texture == NULL) { in D3D11_SetRenderTarget() 2123 SDL_Texture *texture = cmd->data.draw.texture; in D3D11_SetCopyState() local 2147 switch (SDL_GetYUVConversionModeForResolution(texture->w, texture->h)) { in D3D11_SetCopyState() [all …]
|
/AliOS-Things-master/components/SDL2/src/image/ |
A D | IMG.c | 260 SDL_Texture *texture = NULL; in IMG_LoadTexture() local 263 texture = SDL_CreateTextureFromSurface(renderer, surface); in IMG_LoadTexture() 266 return texture; in IMG_LoadTexture() 271 SDL_Texture *texture = NULL; in IMG_LoadTexture_RW() local 274 texture = SDL_CreateTextureFromSurface(renderer, surface); in IMG_LoadTexture_RW() 277 return texture; in IMG_LoadTexture_RW() 282 SDL_Texture *texture = NULL; in IMG_LoadTextureTyped_RW() local 285 texture = SDL_CreateTextureFromSurface(renderer, surface); in IMG_LoadTextureTyped_RW() 288 return texture; in IMG_LoadTextureTyped_RW()
|
/AliOS-Things-master/components/SDL2/src/image/unused/ |
A D | showimage.c | 59 SDL_Texture *texture; in main() local 101 texture = IMG_LoadTexture(renderer, argv[i]); in main() 102 if (!texture) { in main() 106 SDL_QueryTexture(texture, NULL, NULL, &w, &h); in main() 178 SDL_RenderCopy(renderer, texture, NULL, NULL); in main() 183 SDL_DestroyTexture(texture); in main()
|
/AliOS-Things-master/components/SDL2/src/render/metal/ |
A D | SDL_shaders_metal.metal | 56 texture2d<float> tex [[texture(0)]], 73 texture2d<float> texY [[texture(0)]], 74 texture2d_array<float> texUV [[texture(1)]], 90 texture2d<float> texY [[texture(0)]], 91 texture2d<float> texUV [[texture(1)]], 106 texture2d<float> texY [[texture(0)]], 107 texture2d<float> texUV [[texture(1)]],
|
A D | SDL_render_metal.m | 555 switch (texture->format) { 591 … BOOL yuv = (texture->format == SDL_PIXELFORMAT_IYUV) || (texture->format == SDL_PIXELFORMAT_YV12); 640 … SDL_YUV_CONVERSION_MODE mode = SDL_GetYUVConversionModeForResolution(texture->w, texture->h); 739 toTexture:texture 1213 SDL_Texture *texture; field 1294 SDL_Texture *texture = cmd->data.draw.texture; 1299 if (texture != statecache->texture) { 1301 if (statecache->texture) { 1313 statecache->texture = texture; 1329 statecache.texture = NULL; [all …]
|
/AliOS-Things-master/components/SDL2/src/gfx/Test/ |
A D | TestGfxPrimitives.c | 1956 SDL_Surface *texture; in TestTexturedTrigon() local 2002 SDL_FreeSurface(texture); in TestTexturedTrigon() 2011 SDL_Surface *texture; in BenchmarkTexturedTrigon() local 2055 SDL_FreeSurface(texture); in BenchmarkTexturedTrigon() 2504 SDL_Surface *texture; in TestTexturedPolygon() local 2546 SDL_FreeSurface(texture); in TestTexturedPolygon() 2555 SDL_Surface *texture; in BenchmarkTexturedPolygon() local 2597 SDL_FreeSurface(texture); in BenchmarkTexturedPolygon() 2604 SDL_Surface *texture; in TestTexturedSquarePolygon() local 2638 SDL_FreeSurface(texture); in TestTexturedSquarePolygon() [all …]
|
/AliOS-Things-master/components/SDL2/docs/ |
A D | README-directfb.md | 43 YUV texture, namely the first. Every other YUV texture will be 50 to make the YUV texture an underlay. This will make the cursor to
|