You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CHECK_RENDERER_MAGIC(renderer, -1);
CHECK_TEXTURE_MAGIC(texture, -1);
if (renderer != texture->renderer) {
SDL_SetError("Texture was not created with this renderer");
return -1;
}
if (!SDL_ClipRects(renderer, texture, srcrect, dstrect, &real_srcrect,
&real_dstrect))
return 0;
CHECK_RENDERER_MAGIC(renderer, -1);
CHECK_TEXTURE_MAGIC(texture, -1);
if (renderer != texture->renderer) {
SDL_SetError("Texture was not created with this renderer");
return -1;
}
if (!SDL_ClipRects(renderer, texture, srcrect, dstrect, &real_srcrect,
&real_dstrect))
return 0;
if (texture->native) {
texture = texture->native;
}
Does this work for the software and Direct3D renderers as well?
On 2012-01-08 05:31:23 +0000, Mason Wheeler wrote:
(In reply to comment # 1)
Does this work for the software and Direct3D renderers as well?
It should work for Direct3D, for the same reason it works for OpenGL: all it does is reverse the vertices for the texture coordinates. Not sure how it will work with non-accelerated renderers that don't use the same system.
On 2012-01-08 10:48:53 +0000, Sam Lantinga wrote:
I'm pretty sure the software renderer wouldn't do the right thing. ;)
There's very similar discussion in bug 1308, maybe you want to drop by and comment?
On 2012-06-21 07:51:57 +0000, Gabriel Jacobo wrote:
SDL_RenderCopyEx has landed.
The text was updated successfully, but these errors were encountered:
This bug report was migrated from our old Bugzilla tracker.
Reported in version: HG 2.0
Reported for operating system, platform: Windows 7, x86
Comments on the original bug report:
On 2011-04-09 16:45:53 +0000, Mason Wheeler wrote:
On 2012-01-07 00:59:00 +0000, Sam Lantinga wrote:
On 2012-01-08 05:31:23 +0000, Mason Wheeler wrote:
On 2012-01-08 10:48:53 +0000, Sam Lantinga wrote:
On 2012-06-21 07:51:57 +0000, Gabriel Jacobo wrote:
The text was updated successfully, but these errors were encountered: