 |
Nvidia, Microsoft intro new programming language
Nvidia introduced this Thursday the new Cg Language Specification
- C for Graphics. The company said that Cg is a high level programming
language that enables content developers to "create cinematic-quality
real-time graphics easier and faster."
The
new programming language introduced by Nvidia this week is called
Cg and was developed in collaboration with software giant Microsoft.
The companies said that the new Cg gives developers a new level
of abstraction, removing the need for them to program directly to
the graphics hardware. Based on a familiar C-like syntax, Cg was
also said to enable rapid development of real-time shaders and visual
effects for graphics platforms. It is also compatible with Microsofts
High Level Shading Language for DirectX
9.0.
Besides introducing the new language, Nvidia unveiled a Cg Toolkit
that includes a Cg Compiler, Cg Browser, CgFX file format, Cg Standard
Library and a collection of pre-written Cg shaders. This toolkit
will be available to developers attending The Gathering 2 conference
in London on June 13-14. It can also be downloaded at http://developer.Nvidia.com/cg.
Jen Hsun Huang, CEO at Nvidia, said: Cg is a significant
milestone for the computer graphics industry as it moves real-time
3D graphics programming a quantum leap closer to the programming
model of cinematic rendering. Cg will dramatically increase the
speed at which increasingly sophisticated and exciting graphics
features are adopted. Cg will do for GPUs what C and C++ did for
CPUs.
For those interested, more information about Cg can be found at
this
Nvidia page.
.
(Sources: Nvidia)
Related news:
";
while ($row = mysql_fetch_array($sql_result2))
{
$news_id = $row["news_id"];
$title = $row["title"];
$url = $row["url"];
$image2 = $row["image2"];
$image_visible2 = $row["image_visible2"];
if(($colcounter=='1') && ($image_visible2=='Yes'))
{
echo "
|
|
";
}
if(($colcounter=='2') && ($image_visible2=='Yes'))
{
echo "
|
";
}
if(($colcounter=='3') && ($image_visible2=='Yes'))
{
echo "
|
";
}
$colcounter++;
}
echo "
";
//Create the SQL statement
$sql3 = "SELECT news_id, title, url, image2, image_visible2 from $NewsTable WHERE visible='$visible' AND publishing_time<'$nowtime' AND (description LIKE '%$keyword1%' OR description LIKE '%$keyword2%' OR description LIKE '%$keyword3%' OR description LIKE '%$keyword4%' OR description LIKE '%$keyword5%') AND image_visible2='$image_visible2_2' ORDER BY news_id DESC LIMIT 1,3";
//Execute the SQL statement
$sql_result3 = mysql_query($sql3, $link) or die ("Couldn't execute query: " .mysql_error() );
$colcounter = '4';
while ($row = mysql_fetch_array($sql_result3))
{
$news_id = $row["news_id"];
$title = $row["title"];
$url = $row["url"];
$image2 = $row["image2"];
$image_visible2 = $row["image_visible2"];
if(($colcounter=='4') && ($image_visible2=='Yes'))
{
echo "
|
|
";
}
if(($colcounter=='5') && ($image_visible2=='Yes'))
{
echo "
|
";
}
if(($colcounter=='6') && ($image_visible2=='Yes'))
{
echo "
|
";
}
$colcounter++;
}
echo "
";
while ($row = mysql_fetch_array($sql_result))
{
$news_id = $row["news_id"];
$title = $row["title"];
$url = $row["url"];
echo "- $title
";
}
echo " ";
//Close connection
mysql_close($link);
?>
Related links:
|
 |