Game Development Reference
In-Depth Information
}else{
name=str.Left(pos);
str=name+“.html”;
}
pos=name.ReverseFind('\\');
if (pos!=-1) name=name.Right(name.GetLength()-pos-1);
CStdioFile htmlFile(str, CFile::modeCreate|CFile::modeWrite);
htmlFile.WriteString(“<html>\n<head>\n”);
htmlFile.WriteString(“<meta http-equiv=\“Content-Type\”
content=\“text/html; charset=iso-
8859-1\“>\n”);
htmlFile.WriteString(“<meta name=\“Author\” content=\“Nik
Lever\“>\n”);
htmlFile.WriteString(“<meta name=\“keywords\” content=\
“toon3d,
games, animation, multimedia, Catalyst Pictures\“>\n”);
htmlFile.WriteString(“<meta name=\“description\” content=\
“Toon3D is a 3D game creator. It is designed to enable \n”);
htmlFile.WriteString(“ animators to create 3D games
suitable for fast Internet downloads.\“>\n”);
str.Format(“<title>%s</title>\n”, name);
htmlFile.WriteString(str);
htmlFile.WriteString(“</head>\n”);
htmlFile.WriteString(“<body bgcolor=\“#000000\” text=\
“#FFFFFF\“>\n”);
str.Format(“<p><object id=\“%s\“\n”, name);
htmlFile.WriteString(str);
htmlFile.WriteString(“ classid=\”clsid:B65948FE-FB4B-11D3-
ABB2-0020186539CF\“\n”);
htmlFile.WriteString(“ codebase=\”http://toon3d.com/files/
toon3d.cab#version=1, 0, 1, 6\“\n”);
str.Format(“ align=\”baseline\“ border=\”0\“ width=\”%i\“
height=\”%i\“>\n”, m_width, m_height);
htmlFile.WriteString(str);
str.Format(“ <param name=\”ToonFile\“ value=\”%s.t3x\“>\n”,
name);
htmlFile.WriteString(str);
htmlFile.WriteString(“ Toon3D is an ActiveX control suitable
for Windows95/98/2000 and NT platforms.\n”);
htmlFile.WriteString(“ It works best with graphics cards that
support OpenGL acceleration.\n”);
Search Nedrilad ::




Custom Search