Moved about in front page

This commit is contained in:
Christophe Riccio 2011-02-10 16:11:05 +00:00
parent e430b096d4
commit 89d57a41ec
7 changed files with 99 additions and 54 deletions

View File

@ -235,6 +235,12 @@ ul.code-list
margin-right:0px; margin-right:0px;
} }
li
{
list-style-position:inside;
padding-left:8px;
}
li.code-line li.code-line
{ {
color:#008080; color:#008080;

View File

@ -2795,16 +2795,36 @@
<about-long date=" " title=" "> <about-long date=" " title=" ">
<paragraph> <paragraph>
OpenGL Mathematics (GLM) is a C++ mathematics library for 3D software based on the OpenGL Shading Language (GLSL) specification. OpenGL Mathematics (GLM) is a header only C++ mathematics library for graphics software
based on the <link href="http://www.opengl.org/documentation/glsl/">OpenGL Shading Language (GLSL)</link> specification.
</paragraph> </paragraph>
<paragraph> <paragraph>
The goal of the project is to provide to 3D programmers math classes and functions that miss in C++ when we use to program with GLSL or any high level GPU language. With GLM, the idea is to have a library that works the same way that GLSL which imply a strict following of GLSL specification for the implementation. GLM provides classes and functions designed and
implemented with the same naming conventions
and functionalities than GLSL so that
when a programmer knows GLSL, he knows GLM as well which makes it really easy to use.
</paragraph> </paragraph>
<paragraph> <paragraph>
However, this project isn't limited by GLSL features. An extension system allows to extend GLSL capabilities. It allows GLM to be a great subtitute for some OpenGL 3 deprecated functions, to work following a clean programmable approach. This project isn't limited by GLSL features.
An extension system, based on the GLSL extension conventions,
provides extended capabilities: matrix transformations,
quaternions, half-based types, random numbers, etc...
</paragraph> </paragraph>
<paragraph> <paragraph>
GLM is release under <link href="./copying.txt">MIT license</link> and available for all version of GCC from version 3.4 and Visual Studio from version 8.0 as a platform independent library. This library works perfectly with OpenGL but it also ensures interoperability with other third party libraries and SDKs. It is a good candidate for software rendering (Raytracing / Rasterisation), image processing, physic simulations and any context that requires a simple and convenient mathematics library.
</paragraph>
<list name="GLM is written as a platform independent library with no dependence and officially supports the following compilers:">
<list-element><link href="http://http://gcc.gnu.org/">GCC</link> 3.4 and higher</list-element>
<list-element><link href="http://llvm.org/">LLVM</link> 2.3 through GCC 4.2 front-end and higher</list-element>
<list-element><link href="http://msdn.microsoft.com/en-us/visualc/default">Visual C++</link> 2005 and higher</list-element>
<list-element>Any C++ compiler following C++98 norm</list-element>
</list>
<paragraph>
The source code is under the <link href="./copying.txt">MIT license</link>.
</paragraph>
<paragraph>
Thanks for contributing to the project by <link href="https://sourceforge.net/apps/trac/ogl-math/newticket">submitting tickets</link> for bug reports and feature requests. (SF.net account required).
Any feedback is welcome at <a href="mailto://glm@g-truc.net">glm@g-truc.net</a>.
</paragraph> </paragraph>
</about-long> </about-long>
@ -2832,29 +2852,25 @@
<menu> <menu>
<menu-group name="Main"> <menu-group name="Main">
<menu-entry name="News" href="./index.html" /> <menu-entry name="Front page" href="./index.html" />
<menu-entry name="About" href="./about.html" />
<menu-entry name="Downloads" href="./download.html" /> <menu-entry name="Downloads" href="./download.html" />
<menu-entry name="Goodies" href="./goodies.html" />
<menu-entry name="OpenGL SDK page" href="http://www.opengl.org/sdk/libs/GLM/" /> <menu-entry name="OpenGL SDK page" href="http://www.opengl.org/sdk/libs/GLM/" />
</menu-group> </menu-group>
<menu-group name="Documentation"> <menu-group name="Documentation">
<menu-entry name="GLM Manual" href="./glm-0.9.1.pdf" /> <menu-entry name="GLM Manual" href="./glm-0.9.1.pdf" />
<menu-entry name="GLM API" href="./html-0.9.1/index.html" /> <menu-entry name="GLM API" href="./api-0.9.1/index.html" />
<menu-entry name="Code samples" href="./code.html" /> <menu-entry name="Code samples" href="./code.html" />
<menu-entry name="GLSL Specification" href="http://www.opengl.org/registry/doc/GLSLangSpec.4.10.6.clean.pdf" /> <menu-entry name="GLSL Specification" href="http://www.opengl.org/registry/doc/GLSLangSpec.4.10.6.clean.pdf" />
<menu-entry name="OpenGL.org Toolkits forum" href="http://www.opengl.org/discussion_boards/ubbthreads.php?ubb=postlist&amp;Board=10&amp;page=1" /> <menu-entry name="OpenGL.org Toolkits forum" href="http://www.opengl.org/discussion_boards/ubbthreads.php?ubb=postlist&amp;Board=10&amp;page=1" />
<!--menu-entry name="Usage" href="./usage.html" /-->
</menu-group> </menu-group>
<menu-group name="Developer"> <menu-group name="Developer">
<!--menu-entry name="Contribute" href="./contribute.html" /--> <menu-entry name="Report a bug" href="https://sourceforge.net/apps/trac/ogl-math/newticket" />
<menu-entry name="Bug report" href="https://sourceforge.net/apps/trac/ogl-math" />
<menu-entry name="SourceForge page" href="https://sourceforge.net/projects/ogl-math/" /> <menu-entry name="SourceForge page" href="https://sourceforge.net/projects/ogl-math/" />
<menu-entry name="G-Truc Creation page" href="http://www.g-truc.net/project-0016.html#menu" /> <menu-entry name="G-Truc Creation page" href="http://www.g-truc.net/project-0016.html#menu" />
<menu-entry name="Browse Git repository" href="http://ogl-math.git.sourceforge.net/git/gitweb.cgi?p=ogl-math/ogl-math;a=summary" /> <menu-entry name="Browse Git repository" href="http://ogl-math.git.sourceforge.net/git/gitweb.cgi?p=ogl-math/ogl-math;a=summary" />
<menu-entry name="GIT HEAD snapshot" href="http://ogl-math.git.sourceforge.net/git/gitweb.cgi?p=ogl-math/ogl-math;a=snapshot;h=HEAD;sf=tgz" /> <menu-entry name="Source snapshot" href="http://ogl-math.git.sourceforge.net/git/gitweb.cgi?p=ogl-math/ogl-math;a=snapshot;h=HEAD;sf=tgz" />
</menu-group> </menu-group>
<menu-link> <menu-link>

View File

@ -7,7 +7,7 @@
<xsl:template match="/"> <xsl:template match="/">
<html> <html>
<head> <head>
<title>OpenGL Mathematics: News</title> <title>OpenGL Mathematics</title>
<meta http-equiv="Content-Language" content="en" /> <meta http-equiv="Content-Language" content="en" />
<meta http-equiv="Content-Type" content="application/xhtml+xml; charset=iso-8859-1" /> <meta http-equiv="Content-Type" content="application/xhtml+xml; charset=iso-8859-1" />
<meta name="copyright" content="G-Truc Creation" /> <meta name="copyright" content="G-Truc Creation" />
@ -39,6 +39,8 @@
</div> </div>
<xsl:apply-templates select="./glm/about-short" /> <xsl:apply-templates select="./glm/about-short" />
<br /> <br />
<xsl:apply-templates select="./glm/about-long" />
<br />
<xsl:apply-templates select="./glm/page_news/news" /> <xsl:apply-templates select="./glm/page_news/news" />
<div class="title3"> <div class="title3">
<xsl:value-of select="./glm/@copyright" /> <xsl:value-of select="./glm/@copyright" />
@ -53,28 +55,16 @@
<xsl:template match="news"> <xsl:template match="news">
<div> <div>
<div class="title-date">
<xsl:value-of select="./@date" />
</div>
<h3> <h3>
<xsl:value-of select="./@date" /><xsl:text> - </xsl:text>
<xsl:value-of select="./@title" /> <xsl:value-of select="./@title" />
</h3> </h3>
<div> <div>
<xsl:if test="./paragraph">
<xsl:apply-templates select="./paragraph" /> <xsl:apply-templates select="./paragraph" />
</xsl:if>
<xsl:if test="./list">
<xsl:apply-templates select="./list" /> <xsl:apply-templates select="./list" />
</xsl:if>
<xsl:if test="./code">
<xsl:apply-templates select="./code" /> <xsl:apply-templates select="./code" />
</xsl:if>
<xsl:apply-templates select="./source" /> <xsl:apply-templates select="./source" />
<!--xsl:apply-templates select="/" /-->
</div> </div>
<div class="news-separator">_________________</div>
<br /> <br />
</div> </div>
</xsl:template> </xsl:template>

View File

@ -52,9 +52,42 @@
</xsl:template> </xsl:template>
<xsl:template match="list"> <xsl:template match="list">
<xsl:value-of select="./@nom" /><br /> <div xmlns="http://www.w3.org/1999/xhtml">
<xsl:apply-templates select="./element"/> <xsl:if test="./@name">
<br /> <xsl:choose>
<xsl:when test="./@href">
<span class="list">
<a href="{./@href}">
<xsl:value-of select="./@name" />
</a>
</span>
</xsl:when>
<xsl:otherwise>
<span class="list">
<xsl:value-of select="./@name" />
</span>
</xsl:otherwise>
</xsl:choose>
</xsl:if>
<ul>
<xsl:apply-templates select="./list-element"/>
</ul>
</div>
</xsl:template>
<xsl:template match="list-element">
<li xmlns="http://www.w3.org/1999/xhtml">
<xsl:choose>
<xsl:when test="./@href">
<a href="{./@href}">
<xsl:apply-templates />
</a>
</xsl:when>
<xsl:otherwise>
<xsl:apply-templates />
</xsl:otherwise>
</xsl:choose>
</li>
</xsl:template> </xsl:template>
<xsl:template match="element"> <xsl:template match="element">
@ -62,7 +95,7 @@
</xsl:template> </xsl:template>
<xsl:template match="paragraph"> <xsl:template match="paragraph">
<div class="paragraph"><xsl:text /><xsl:apply-templates /><xsl:text /></div><br /> <p><xsl:text /><xsl:apply-templates /><xsl:text /></p>
</xsl:template> </xsl:template>
<xsl:template match="about-short"> <xsl:template match="about-short">