Re: Copy RGBA pixels directly to target texture without blending

"leagor" <[email protected]> Fri, 17 Mar 2017 08:56:24 +0800
Newsgroups gmane.comp.lib.sdl
Message-ID <[email protected]>
This is a multipart message in MIME format.

--===============8241332344695549209==
Content-Type: multipart/alternative;
	boundary="----=_NextPart_000_0026_01D29EFC.5B1E1110"
Content-Language: zh-cn

This is a multipart message in MIME format.

------=_NextPart_000_0026_01D29EFC.5B1E1110
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: 7bit

frameTexture = SDL_CreateTexture(renderer, current_format,
SDL_TEXTUREACCESS_TARGET, w, h);

SDL_SetTextureBlendMode(frameTexture, SDL_BLENDMODE_NONE);


------=_NextPart_000_0026_01D29EFC.5B1E1110
Content-Type: text/html;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<html xmlns:v=3D"urn:schemas-microsoft-com:vml" =
xmlns:o=3D"urn:schemas-microsoft-com:office:office" =
xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" =
xmlns=3D"http://www.w3.org/TR/REC-html40"><head><meta =
http-equiv=3DContent-Type content=3D"text/html; =
charset=3Dus-ascii"><meta name=3DGenerator content=3D"Microsoft Word 15 =
(filtered medium)"><style><!--
/* Font Definitions */
@font-face
	{font-family:"Cambria Math";
	panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
	{font-family:DengXian;
	panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
	{font-family:"Trebuchet MS";
	panose-1:2 11 6 3 2 2 2 2 2 4;}
@font-face
	{font-family:DengXian;
	panose-1:2 1 6 0 3 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0cm;
	margin-bottom:.0001pt;
	font-size:12.0pt;
	font-family:"Times New Roman",serif;}
h1
	{mso-style-priority:9;
	mso-style-link:"\6807\9898 1 \5B57\7B26";
	mso-margin-top-alt:auto;
	margin-right:0cm;
	mso-margin-bottom-alt:auto;
	margin-left:0cm;
	line-height:120%;
	font-size:16.5pt;
	font-family:"Trebuchet MS",sans-serif;
	color:black;
	font-weight:bold;}
h2
	{mso-style-priority:9;
	mso-style-link:"\6807\9898 2 \5B57\7B26";
	mso-margin-top-alt:auto;
	margin-right:0cm;
	mso-margin-bottom-alt:auto;
	margin-left:0cm;
	line-height:120%;
	font-size:16.5pt;
	font-family:"Trebuchet MS",sans-serif;
	color:black;
	font-weight:bold;}
a:link, span.MsoHyperlink
	{mso-style-priority:99;
	color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{mso-style-priority:99;
	color:purple;
	text-decoration:underline;}
p
	{mso-style-priority:99;
	mso-margin-top-alt:auto;
	margin-right:0cm;
	mso-margin-bottom-alt:auto;
	margin-left:0cm;
	font-size:8.5pt;
	font-family:"Times New Roman",serif;}
span.1
	{mso-style-name:"\6807\9898 1 \5B57\7B26";
	mso-style-priority:9;
	mso-style-link:"\6807\9898 1";
	font-family:DengXian;
	font-weight:bold;}
span.2
	{mso-style-name:"\6807\9898 2 \5B57\7B26";
	mso-style-priority:9;
	mso-style-link:"\6807\9898 2";
	font-family:"DengXian Light";
	font-weight:bold;}
p.msonormal0, li.msonormal0, div.msonormal0
	{mso-style-name:msonormal;
	mso-margin-top-alt:auto;
	margin-right:0cm;
	mso-margin-bottom-alt:auto;
	margin-left:0cm;
	font-size:8.5pt;
	font-family:"Times New Roman",serif;}
p.gen, li.gen, div.gen
	{mso-style-name:gen;
	mso-margin-top-alt:auto;
	margin-right:0cm;
	mso-margin-bottom-alt:auto;
	margin-left:0cm;
	font-size:9.0pt;
	font-family:"Times New Roman",serif;}
p.genmed, li.genmed, div.genmed
	{mso-style-name:genmed;
	mso-margin-top-alt:auto;
	margin-right:0cm;
	mso-margin-bottom-alt:auto;
	margin-left:0cm;
	font-size:8.5pt;
	font-family:"Times New Roman",serif;}
p.gensmall, li.gensmall, div.gensmall
	{mso-style-name:gensmall;
	mso-margin-top-alt:auto;
	margin-right:0cm;
	mso-margin-bottom-alt:auto;
	margin-left:0cm;
	line-height:9.0pt;
	font-size:7.5pt;
	font-family:"Times New Roman",serif;}
p.forumlink, li.forumlink, div.forumlink
	{mso-style-name:forumlink;
	mso-margin-top-alt:auto;
	margin-right:0cm;
	mso-margin-bottom-alt:auto;
	margin-left:0cm;
	font-size:9.0pt;
	font-family:"Times New Roman",serif;
	font-weight:bold;}
p.postbody, li.postbody, div.postbody
	{mso-style-name:postbody;
	mso-margin-top-alt:auto;
	margin-right:0cm;
	mso-margin-bottom-alt:auto;
	margin-left:0cm;
	line-height:13.5pt;
	font-size:9.0pt;
	font-family:"Times New Roman",serif;}
p.code, li.code, div.code
	{mso-style-name:code;
	mso-margin-top-alt:auto;
	margin-right:0cm;
	mso-margin-bottom-alt:auto;
	margin-left:0cm;
	border:none;
	padding:0cm;
	font-size:8.5pt;
	font-family:"Times New Roman",serif;
	color:#3FB753;}
p.quote, li.quote, div.quote
	{mso-style-name:quote;
	mso-margin-top-alt:auto;
	margin-right:0cm;
	mso-margin-bottom-alt:auto;
	margin-left:0cm;
	line-height:125%;
	border:none;
	padding:0cm;
	font-size:8.5pt;
	font-family:"Times New Roman",serif;
	color:#444444;}
span.EmailStyle28
	{mso-style-type:personal-reply;
	font-family:DengXian;
	color:windowtext;}
.MsoChpDefault
	{mso-style-type:export-only;
	font-size:10.0pt;}
@page WordSection1
	{size:612.0pt 792.0pt;
	margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.WordSection1
	{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext=3D"edit">
<o:idmap v:ext=3D"edit" data=3D"1" />
</o:shapelayout></xml><![endif]--></head><body lang=3DZH-CN link=3Dblue =
vlink=3Dpurple><div class=3DWordSection1><p class=3DMsoNormal><span =
lang=3DEN-US =
style=3D'font-size:10.5pt;font-family:DengXian'>frameTexture =3D =
SDL_CreateTexture(renderer, current_format, SDL_TEXTUREACCESS_TARGET, w, =
h);<o:p></o:p></span></p><p class=3DMsoNormal><span lang=3DEN-US =
style=3D'font-size:10.5pt;font-family:DengXian'>SDL_SetTextureBlendMode(f=
rameTexture, =
SDL_BLENDMODE_NONE);<o:p></o:p></span></p></div></body></html>
------=_NextPart_000_0026_01D29EFC.5B1E1110--


--===============8241332344695549209==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
SDL mailing list
[email protected]
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

--===============8241332344695549209==--