triangles & aspects

"speartip" <[email protected]> Thu, 23 Mar 2017 21:19:54 +0000
Newsgroups gmane.comp.lib.sdl
Message-ID <[email protected]>
--===============0207192852716285770==
Content-Type: multipart/alternative;
	boundary="=_0f46c208358f006bf3a94ab6f2c4494d"

--=_0f46c208358f006bf3a94ab6f2c4494d
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 7bit

Hi,

I am endeavoring to put some simple triangles in my screen. The SDL wiki gives an example of - yes - connecting 3 drawlines. Am I overlooking something or do these lines have to be arrived at mathematically or hardcoded to know what anchoring coordinates they must belong to form the triangle. I don't see a function to make the triangle for you. This becomes rather labor intensive to create your triangle. Also once made, if your aspect ratio changes the lines of the triangle will have to be recalculated to maintain the equality of the angles. I can make a function to correct, no prob.

Before venturing out on some crazy triangle project, just wanted to know whether I was missing some piece of info.





--=_0f46c208358f006bf3a94ab6f2c4494d
Content-Type: text/html; charset="ISO-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<style type=3D"text/css">
<!--

/*
  The original subSilver Theme for phpBB version 2+
  Created by subBlue design
  http://www.subBlue.com

  NOTE: These CSS definitions are stored within the main page body so that =
you can use the phpBB2
  theme administration centre. When you have finalised your style you could=
 cut the final CSS code
  and place it in an external file, deleting this section to save bandwidth=
.
*/


 /* General page style. The scroll bar colours only visible in IE5.5+ */
body {
	background-color: #;
	font-family: ;
	font-size: 11;
	color: #;
}

/* General font families for common tags */
font,th,td,p { font-family:  }
p, td		{ font-size : 11; color : #; }
a:link,a:active,a:visited { color : #; }
a:hover		{ text-decoration: underline; color : #; }
hr	{ height: 0px; border: solid # 0px; border-top-width: 1px;}
h1,h2		{ font-family: "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif=
; font-size : 22px; font-weight : bold; text-decoration : none; line-height=
 : 120%; color : #000000;}


/* This is the border line & background colour round the entire page */
.bodyline	{ background-color: #; border: 1px # solid; }


/* General text */
.gen { font-size : 12px; }
.genmed { font-size : 11px; }
.gensmall { font-size : 10px; line-height: 12px}
.gen,.genmed,.gensmall { color : #; }
a.gen,a.genmed,a.gensmall { color: #; text-decoration: none; }
a.gen:hover,a.genmed:hover,a.gensmall:hover	{ color: #; text-decoration: un=
derline; }


/* Forum title: Text and link to the forums used in: index.php */
.forumlink		{ font-weight: bold; font-size: 12px; color : #; }
a.forumlink 	{ text-decoration: none; color : #; }
a.forumlink:hover{ text-decoration: underline; color : #; }


/* The content of the posts (body of text) */
.postbody { font-size : 12px; line-height: 18px}
a.postlink:link	{ text-decoration: none; color : # }
a.postlink:visited { text-decoration: none; color : #; }
a.postlink:hover { text-decoration: underline; color : #}


/* Quote & Code blocks */
.code {
	font-family: ; font-size: 11px; color: #3FB753;
	background-color: #; border: #; border-style: solid;
	border-left-width: 1px; border-top-width: 1px; border-right-width: 1px; bo=
rder-bottom-width: 1px
}

.quote {
	font-family: ; font-size: 11px; color: #444444; line-height: 125%;
	background-color: #; border: #; border-style: solid;
	border-left-width: 1px; border-top-width: 1px; border-right-width: 1px; bo=
rder-bottom-width: 1px
}

-->
</style>
</head>
	<body>

	<div class=3D"postbody">Hi,<br />
<br />
I am endeavoring to put some simple triangles in my screen. The SDL wiki gi=
ves an example of - yes - connecting 3 drawlines. Am I overlooking somethin=
g or do these lines have to be arrived at mathematically or hardcoded to kn=
ow what anchoring coordinates they must belong to form the triangle. I don'=
t see a function to make the triangle for you. This becomes rather labor in=
tensive to create your triangle. Also once made, if your aspect ratio chang=
es the lines of the triangle will have to be recalculated to maintain the e=
quality of the angles. I can make a function to correct, no prob.<br />
<br />
Before venturing out on some crazy triangle project, just wanted to know wh=
ether I was missing some piece of info.</div>
	</body>
</html>

--=_0f46c208358f006bf3a94ab6f2c4494d--

--===============0207192852716285770==
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

--===============0207192852716285770==--