Lines Matching refs:tface

366    SDL_Texture *tface;  in render_testBlit()  local
380 tface = _loadTestFace(); in render_testBlit()
381 SDLTest_AssertCheck(tface != NULL, "Verify _loadTestFace() result"); in render_testBlit()
382 if (tface == NULL) { in render_testBlit()
387 ret = SDL_QueryTexture(tface, &tformat, &taccess, &tw, &th); in render_testBlit()
401 ret = SDL_RenderCopy(renderer, tface, NULL, &rect ); in render_testBlit()
415 SDL_DestroyTexture( tface ); in render_testBlit()
436 SDL_Texture *tface; in render_testBlitColor() local
448 tface = _loadTestFace(); in render_testBlitColor()
449 SDLTest_AssertCheck(tface != NULL, "Verify _loadTestFace() result"); in render_testBlitColor()
450 if (tface == NULL) { in render_testBlitColor()
455 ret = SDL_QueryTexture(tface, &tformat, &taccess, &tw, &th); in render_testBlitColor()
468 ret = SDL_SetTextureColorMod( tface, (255/nj)*j, (255/ni)*i, (255/nj)*j ); in render_testBlitColor()
474 ret = SDL_RenderCopy(renderer, tface, NULL, &rect ); in render_testBlitColor()
489 SDL_DestroyTexture( tface ); in render_testBlitColor()
510 SDL_Texture *tface; in render_testBlitAlpha() local
525 tface = _loadTestFace(); in render_testBlitAlpha()
526 SDLTest_AssertCheck(tface != NULL, "Verify _loadTestFace() result"); in render_testBlitAlpha()
527 if (tface == NULL) { in render_testBlitAlpha()
532 ret = SDL_QueryTexture(tface, &tformat, &taccess, &tw, &th); in render_testBlitAlpha()
545 ret = SDL_SetTextureAlphaMod( tface, (255/ni)*i ); in render_testBlitAlpha()
551 ret = SDL_RenderCopy(renderer, tface, NULL, &rect ); in render_testBlitAlpha()
566 SDL_DestroyTexture( tface ); in render_testBlitAlpha()
583 _testBlitBlendMode( SDL_Texture * tface, int mode ) in _testBlitBlendMode() argument
597 ret = SDL_QueryTexture(tface, &tformat, &taccess, &tw, &th); in _testBlitBlendMode()
610 ret = SDL_SetTextureBlendMode( tface, (SDL_BlendMode)mode ); in _testBlitBlendMode()
616 ret = SDL_RenderCopy(renderer, tface, NULL, &rect ); in _testBlitBlendMode()
639 SDL_Texture *tface; in render_testBlitBlend() local
655 tface = _loadTestFace(); in render_testBlitBlend()
656 SDLTest_AssertCheck(tface != NULL, "Verify _loadTestFace() result"); in render_testBlitBlend()
657 if (tface == NULL) { in render_testBlitBlend()
662 ret = SDL_QueryTexture(tface, &tformat, &taccess, &tw, &th); in render_testBlitBlend()
670 ret = SDL_SetTextureAlphaMod( tface, 100 ); in render_testBlitBlend()
674 _testBlitBlendMode( tface, SDL_BLENDMODE_NONE ); in render_testBlitBlend()
684 _testBlitBlendMode( tface, SDL_BLENDMODE_BLEND ); in render_testBlitBlend()
694 _testBlitBlendMode( tface, SDL_BLENDMODE_ADD ); in render_testBlitBlend()
704 _testBlitBlendMode( tface, SDL_BLENDMODE_MOD); in render_testBlitBlend()
725 ret = SDL_SetTextureColorMod( tface, (255/nj)*j, (255/ni)*i, (255/nj)*j ); in render_testBlitBlend()
729 ret = SDL_SetTextureAlphaMod( tface, (100/ni)*i ); in render_testBlitBlend()
738 ret = SDL_SetTextureBlendMode( tface, (SDL_BlendMode)mode ); in render_testBlitBlend()
744 ret = SDL_RenderCopy(renderer, tface, NULL, &rect ); in render_testBlitBlend()
754 SDL_DestroyTexture( tface ); in render_testBlitBlend()
883 SDL_Texture *tface; in _loadTestFace() local
890 tface = SDL_CreateTextureFromSurface(renderer, face); in _loadTestFace()
891 if (tface == NULL) { in _loadTestFace()
897 return tface; in _loadTestFace()
914 SDL_Texture *tface; in _hasTexColor() local
918 tface = _loadTestFace(); in _hasTexColor()
919 if (tface == NULL) in _hasTexColor()
924 ret = SDL_SetTextureColorMod( tface, 100, 100, 100 ); in _hasTexColor()
927 ret = SDL_GetTextureColorMod( tface, &r, &g, &b ); in _hasTexColor()
932 SDL_DestroyTexture( tface ); in _hasTexColor()
954 SDL_Texture *tface; in _hasTexAlpha() local
958 tface = _loadTestFace(); in _hasTexAlpha()
959 if (tface == NULL) in _hasTexAlpha()
964 ret = SDL_SetTextureAlphaMod( tface, 100 ); in _hasTexAlpha()
967 ret = SDL_GetTextureAlphaMod( tface, &a ); in _hasTexAlpha()
972 SDL_DestroyTexture( tface ); in _hasTexAlpha()