this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Renamed GPU_BlitBatchAttributes() to GPU_ShaderBatch().

+10 -10
+3 -3
SDL_gpu/GL_common/SDL_gpu_GL_common.inl
··· 2987 2987 } 2988 2988 2989 2989 2990 - static int BlitBatchAttributes(GPU_Renderer* renderer, GPU_Image* src, GPU_Target* dest, unsigned int numSprites, unsigned int numAttributes, GPU_Attribute* attributes) 2990 + static int ShaderBatch(GPU_Renderer* renderer, GPU_Image* src, GPU_Target* dest, unsigned int numSprites, unsigned int numAttributes, GPU_Attribute* attributes) 2991 2991 { 2992 2992 if(src == NULL || dest == NULL) 2993 2993 return -1; ··· 2996 2996 2997 2997 // TODO: Implement this function for more renderers. 2998 2998 #ifndef SDL_GPU_USE_GL_TIER3 2999 - GPU_LogError("GPU_BlitBatchAttributes(): Not supported by this renderer.\n"); 2999 + GPU_LogError("GPU_ShaderBatch(): Not supported by this renderer.\n"); 3000 3000 return -4; 3001 3001 #endif 3002 3002 ··· 4032 4032 renderer->BlitTransformX = &BlitTransformX; \ 4033 4033 renderer->BlitTransformMatrix = &BlitTransformMatrix; \ 4034 4034 renderer->BlitBatch = &BlitBatch; \ 4035 - renderer->BlitBatchAttributes = &BlitBatchAttributes; \ 4035 + renderer->ShaderBatch = &ShaderBatch; \ 4036 4036 \ 4037 4037 renderer->GenerateMipmaps = &GenerateMipmaps; \ 4038 4038 \
+3 -3
SDL_gpu/SDL_gpu.c
··· 1128 1128 return result; 1129 1129 } 1130 1130 1131 - int GPU_BlitBatchAttributes(GPU_Image* src, GPU_Target* dest, unsigned int numSprites, unsigned int numAttributes, GPU_Attribute* attributes) 1131 + int GPU_ShaderBatch(GPU_Image* src, GPU_Target* dest, unsigned int numSprites, unsigned int numAttributes, GPU_Attribute* attributes) 1132 1132 { 1133 - if(current_renderer == NULL || current_renderer->current_context_target == NULL || current_renderer->BlitBatchAttributes == NULL || numSprites == 0 || numAttributes == 0 || attributes == NULL) 1133 + if(current_renderer == NULL || current_renderer->current_context_target == NULL || current_renderer->ShaderBatch == NULL || numSprites == 0 || numAttributes == 0 || attributes == NULL) 1134 1134 return 0; 1135 1135 1136 - return current_renderer->BlitBatchAttributes(current_renderer, src, dest, numSprites, numAttributes, attributes); 1136 + return current_renderer->ShaderBatch(current_renderer, src, dest, numSprites, numAttributes, attributes); 1137 1137 } 1138 1138 1139 1139 void GPU_GenerateMipmaps(GPU_Image* image)
+3 -3
SDL_gpu/SDL_gpu.h
··· 371 371 /*! \see GPU_BlitBatch() */ 372 372 int (*BlitBatch)(GPU_Renderer* renderer, GPU_Image* src, GPU_Target* dest, unsigned int numSprites, float* values, GPU_BlitFlagEnum flags); 373 373 374 - /*! \see GPU_BlitBatchAttributes() */ 375 - int (*BlitBatchAttributes)(GPU_Renderer* renderer, GPU_Image* src, GPU_Target* dest, unsigned int numSprites, unsigned int numAttributes, GPU_Attribute* attributes); 374 + /*! \see GPU_ShaderBatch() */ 375 + int (*ShaderBatch)(GPU_Renderer* renderer, GPU_Image* src, GPU_Target* dest, unsigned int numSprites, unsigned int numAttributes, GPU_Attribute* attributes); 376 376 377 377 /*! \see GPU_GenerateMipmaps() */ 378 378 void (*GenerateMipmaps)(GPU_Renderer* renderer, GPU_Image* image); ··· 777 777 * \param numAttributes Number of shader attributes to use 778 778 * \param attributes Array of 'numAttributes' shader attribute specifiers 779 779 */ 780 - int GPU_BlitBatchAttributes(GPU_Image* src, GPU_Target* dest, unsigned int numSprites, unsigned int numAttributes, GPU_Attribute* attributes); 780 + int GPU_ShaderBatch(GPU_Image* src, GPU_Target* dest, unsigned int numSprites, unsigned int numAttributes, GPU_Attribute* attributes); 781 781 782 782 /*! Loads mipmaps for the given image, if supported by the renderer. */ 783 783 void GPU_GenerateMipmaps(GPU_Image* image);
+1 -1
demos/blit-batch/main.c
··· 443 443 sprite_values[val_n+1] = y + image->h/2; 444 444 } 445 445 446 - GPU_BlitBatchAttributes(image, screen, numSprites, 3, attributes); 446 + GPU_ShaderBatch(image, screen, numSprites, 3, attributes); 447 447 448 448 GPU_Flip(screen); 449 449