<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="wordpress/2.0.4" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>

<channel>
	<title>Web And Email Hosting, Coldfusion, Php4, Php5 Programming Blog</title>
	<link>http://coldfusion.premiumwebsitehosting.net</link>
	<description>Blog on PHP5, MySQL and Tomcat hosting services</description>
	<pubDate>Tue, 22 Jan 2008 01:55:37 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.0.4</generator>
	<language>en</language>
			<item>
		<title>Web hosting uk - Page 480 OpenGL Super Bible! height[TERRAIN_SIZE], (GLfloat)(y -</title>
		<link>http://coldfusion.premiumwebsitehosting.net/coldfusion/web-hosting-uk-page-480-opengl-super-bible-heightterrain_size-glfloaty/</link>
		<comments>http://coldfusion.premiumwebsitehosting.net/coldfusion/web-hosting-uk-page-480-opengl-super-bible-heightterrain_size-glfloaty/#comments</comments>
		<pubDate>Tue, 22 Jan 2008 01:55:37 +0000</pubDate>
		<dc:creator>humphreyblogart</dc:creator>
		
	<category>Coldfusion</category>
		<guid isPermaLink="false">http://coldfusion.premiumwebsitehosting.net/coldfusion/web-hosting-uk-page-480-opengl-super-bible-heightterrain_size-glfloaty/</guid>
		<description><![CDATA[Page 480 OpenGL Super Bible!   height[TERRAIN_SIZE], (GLfloat)(y - TERRAIN_EDGE + 1)); };   glEnd(); }; glPopMatrix();   /*   * While we fly or draw we re double-buffering. Swap buffers * as necessary  */   glFinish(); if (Moving &#124;&#124; Drawing) SwapBuffers(SceneDC); }   /*   * [...]]]></description>
			<content:encoded><![CDATA[<p>Page 480 OpenGL Super Bible!   height[TERRAIN_SIZE], (GLfloat)(y - TERRAIN_EDGE + 1)); };   glEnd(); }; glPopMatrix();   /*   * While we fly or draw we re double-buffering. Swap buffers * as necessary  */   glFinish(); if (Moving || Drawing) SwapBuffers(SceneDC); }   /*   * &#8216;SaveBitmapFile()  - Save the currently displayed scene to disk. */ void   SaveBitmapFile(void)   { char title[256], /* Title of file */ filename[256], /* Name of file */  directory[256]; /* Current directory */ OPENFILENAME ofn; /* Filename dialog  structure */ void *bits; /* Screen bitmap bits */ BITMAPINFO *info; /* Screen  bitmap info */ /*   * Grab the screen bitmap  */ bits = ReadDIBitmap(&#038;info); if (bits == NULL) {    DisplayErrorMessage(&#8217;Unable to get OpenGL bitmap from screen! ); return; };   /*   * Pop up a filename dialog  */ strcpy(directory, &#8216;. ); strcpy(filename,   &#8216;untitled.bmp ); strcpy(title, &#8216;&#8217;);   memset(&#038;ofn, 0, sizeof(ofn));   ofn.lStructSize = sizeof(ofn); ofn.hwndOwner = SceneWindow;    <br />We would like to recommend you tested and proved <a href="http://jboss.premiumwebsitehosting.net">virtual web hosting</a> services, which you will surely find to be of great quality.
</p>
]]></content:encoded>
			<wfw:commentRSS>http://coldfusion.premiumwebsitehosting.net/coldfusion/web-hosting-uk-page-480-opengl-super-bible-heightterrain_size-glfloaty/feed/</wfw:commentRSS>
		</item>
		<item>
		<title>Web site traffic - OpenGL Super Bible! Page 479 if (Moving &#124;&#124;</title>
		<link>http://coldfusion.premiumwebsitehosting.net/coldfusion/web-site-traffic-opengl-super-bible-page-479-if-moving/</link>
		<comments>http://coldfusion.premiumwebsitehosting.net/coldfusion/web-site-traffic-opengl-super-bible-page-479-if-moving/#comments</comments>
		<pubDate>Mon, 21 Jan 2008 03:08:11 +0000</pubDate>
		<dc:creator>humphreyblogart</dc:creator>
		
	<category>Coldfusion</category>
		<guid isPermaLink="false">http://coldfusion.premiumwebsitehosting.net/coldfusion/web-site-traffic-opengl-super-bible-page-479-if-moving/</guid>
		<description><![CDATA[OpenGL Super Bible! Page 479   if (Moving &#124;&#124; Drawing) glColor3f(0.0, 0.5, 0.0); else glCallList(GrassTexture);   break; case IDC_ROCKS : if (Moving &#124;&#124; Drawing) glColor3f(0.25, 0.25, 0.25);   else glCallList(RocksTexture); break; case IDC_TREES : if (Moving &#124;&#124; Drawing)   glColor3f(0.0, 0.25, 0.0); else glCallList(TreesTexture); break; case   IDC_MOUNTAINS : if [...]]]></description>
			<content:encoded><![CDATA[<p>OpenGL Super Bible! Page 479   if (Moving || Drawing) glColor3f(0.0, 0.5, 0.0); else glCallList(GrassTexture);   break; case IDC_ROCKS : if (Moving || Drawing) glColor3f(0.25, 0.25, 0.25);   else glCallList(RocksTexture); break; case IDC_TREES : if (Moving || Drawing)   glColor3f(0.0, 0.25, 0.0); else glCallList(TreesTexture); break; case   IDC_MOUNTAINS : if (Moving || Drawing) glColor3f(0.2, 0.1, 0.05); else   glCallList(MountainsTexture); break; };   glBegin(GL_QUAD_STRIP); if (last_type != -1) {   /*   * Start from the previous location to prevent * holes  */ glTexCoord2i(x * 2 -  2, y * 2); glNormal3fv(n[-1]); glVertex3f((GLfloat)(x - TERRAIN_EDGE - 1),   height[-1],   (GLfloat)(y - TERRAIN_EDGE)); glTexCoord2i(x * 2 - 2, y * 2 + 2);   glNormal3fv(n[TERRAIN_SIZE - 1]); glVertex3f((GLfloat)(x - TERRAIN_EDGE - 1),   height[TERRAIN_SIZE - 1],   (GLfloat)(y - TERRAIN_EDGE + 1)); }; last_type = *type;   };   glTexCoord2i(x * 2, y * 2); glNormal3fv(n[0]); glVertex3f((GLfloat)(x -  TERRAIN_EDGE),    height[0],   (GLfloat)(y - TERRAIN_EDGE)); glTexCoord2i(x * 2, y * 2 + 2);   glNormal3fv(n[TERRAIN_SIZE]); glVertex3f((GLfloat)(x - TERRAIN_EDGE),    <br />You want to have a cheap webhost for your apache application, then check <a href="http://apache.javaservletwebsitehosting.com">apache web hosting</a> services.
</p>
]]></content:encoded>
			<wfw:commentRSS>http://coldfusion.premiumwebsitehosting.net/coldfusion/web-site-traffic-opengl-super-bible-page-479-if-moving/feed/</wfw:commentRSS>
		</item>
		<item>
		<title>Database web hosting - Page 478 OpenGL Super Bible! glTexCoord2f(4.0, 0.8); glVertex3fv(sky_top[0]);</title>
		<link>http://coldfusion.premiumwebsitehosting.net/coldfusion/database-web-hosting-page-478-opengl-super-bible-gltexcoord2f40-08-glvertex3fvsky_top0/</link>
		<comments>http://coldfusion.premiumwebsitehosting.net/coldfusion/database-web-hosting-page-478-opengl-super-bible-gltexcoord2f40-08-glvertex3fvsky_top0/#comments</comments>
		<pubDate>Sun, 20 Jan 2008 03:31:02 +0000</pubDate>
		<dc:creator>humphreyblogart</dc:creator>
		
	<category>Coldfusion</category>
		<guid isPermaLink="false">http://coldfusion.premiumwebsitehosting.net/coldfusion/database-web-hosting-page-478-opengl-super-bible-gltexcoord2f40-08-glvertex3fvsky_top0/</guid>
		<description><![CDATA[Page 478 OpenGL Super Bible!   glTexCoord2f(4.0, 0.8); glVertex3fv(sky_top[0]); glEnd(); };    /*   * Setup lighting  */ glEnable(GL_LIGHTING);   glLightModeli(GL_LIGHT_MODEL_TWO_SIDE, GL_TRUE);    glEnable(GL_LIGHT0); glLightfv(GL_LIGHT0, GL_POSITION, sunpos);   glLightfv(GL_LIGHT0, GL_DIFFUSE, suncolor); glLightfv(GL_LIGHT0, GL_AMBIENT,   sunambient);    if (Moving &#124;&#124; Drawing) glEnable(GL_COLOR_MATERIAL); else  [...]]]></description>
			<content:encoded><![CDATA[<p>Page 478 OpenGL Super Bible!   glTexCoord2f(4.0, 0.8); glVertex3fv(sky_top[0]); glEnd(); };    /*   * Setup lighting  */ glEnable(GL_LIGHTING);   glLightModeli(GL_LIGHT_MODEL_TWO_SIDE, GL_TRUE);    glEnable(GL_LIGHT0); glLightfv(GL_LIGHT0, GL_POSITION, sunpos);   glLightfv(GL_LIGHT0, GL_DIFFUSE, suncolor); glLightfv(GL_LIGHT0, GL_AMBIENT,   sunambient);    if (Moving || Drawing) glEnable(GL_COLOR_MATERIAL); else   glDisable(GL_COLOR_MATERIAL);    /*   * Then the terrain  */ type = TerrainType[0]; height = TerrainHeight[0]; n =   TerrainNormal[0]; for (y = 0; y < (TERRAIN_SIZE - 1); y ++) {    last_type = -1;   for (x = 0; x < TERRAIN_SIZE; x ++, type ++, height ++, n ++)   { if (last_type != *type) {    /*   * If the type of terrain changes, end any existing * strip of quads and reset   color/texture parameters  */ if (last_type != -1) glEnd();    switch (*type) { case IDC_WATER : if (Moving || Drawing) glColor3f(0.0, 0.0,   0.5); else glCallList(WaterTexture); break; case IDC_GRASS :    <br />From our experience, we are can tell you that you can find a reliable and cheap webhost service at <a href="http://www.javaservletwebsitehosting.com">Java Web Hosting</a> services.
</p>
]]></content:encoded>
			<wfw:commentRSS>http://coldfusion.premiumwebsitehosting.net/coldfusion/database-web-hosting-page-478-opengl-super-bible-gltexcoord2f40-08-glvertex3fvsky_top0/feed/</wfw:commentRSS>
		</item>
		<item>
		<title>Page 478 OpenGL Super Bible! glTexCoord2f(4.0, 0.8); glVertex3fv(sky_top[0]);</title>
		<link>http://coldfusion.premiumwebsitehosting.net/coldfusion/page-478-opengl-super-bible-gltexcoord2f40-08-glvertex3fvsky_top0/</link>
		<comments>http://coldfusion.premiumwebsitehosting.net/coldfusion/page-478-opengl-super-bible-gltexcoord2f40-08-glvertex3fvsky_top0/#comments</comments>
		<pubDate>Sun, 20 Jan 2008 03:29:30 +0000</pubDate>
		<dc:creator>humphreyblogart</dc:creator>
		
	<category>Coldfusion</category>
		<guid isPermaLink="false">http://coldfusion.premiumwebsitehosting.net/coldfusion/page-478-opengl-super-bible-gltexcoord2f40-08-glvertex3fvsky_top0/</guid>
		<description><![CDATA[Page 478 OpenGL Super Bible!   glTexCoord2f(4.0, 0.8); glVertex3fv(sky_top[0]); glEnd(); };    /*   * Setup lighting  */ glEnable(GL_LIGHTING);   glLightModeli(GL_LIGHT_MODEL_TWO_SIDE, GL_TRUE);    glEnable(GL_LIGHT0); glLightfv(GL_LIGHT0, GL_POSITION, sunpos);   glLightfv(GL_LIGHT0, GL_DIFFUSE, suncolor); glLightfv(GL_LIGHT0, GL_AMBIENT,   sunambient);    if (Moving &#124;&#124; Drawing) glEnable(GL_COLOR_MATERIAL); else  [...]]]></description>
			<content:encoded><![CDATA[<p>Page 478 OpenGL Super Bible!   glTexCoord2f(4.0, 0.8); glVertex3fv(sky_top[0]); glEnd(); };    /*   * Setup lighting  */ glEnable(GL_LIGHTING);   glLightModeli(GL_LIGHT_MODEL_TWO_SIDE, GL_TRUE);    glEnable(GL_LIGHT0); glLightfv(GL_LIGHT0, GL_POSITION, sunpos);   glLightfv(GL_LIGHT0, GL_DIFFUSE, suncolor); glLightfv(GL_LIGHT0, GL_AMBIENT,   sunambient);    if (Moving || Drawing) glEnable(GL_COLOR_MATERIAL); else   glDisable(GL_COLOR_MATERIAL);    /*   * Then the terrain  */ type = TerrainType[0]; height = TerrainHeight[0]; n =   TerrainNormal[0]; for (y = 0; y < (TERRAIN_SIZE - 1); y ++) {    last_type = -1;   for (x = 0; x < TERRAIN_SIZE; x ++, type ++, height ++, n ++)   { if (last_type != *type) {    /*   * If the type of terrain changes, end any existing * strip of quads and reset   color/texture parameters  */ if (last_type != -1) glEnd();    switch (*type) { case IDC_WATER : if (Moving || Drawing) glColor3f(0.0, 0.0,   0.5); else glCallList(WaterTexture); break; case IDC_GRASS :    <br />You need excellent and relaible webhost company to host your web applications? Then pay a visit to <a href="http://www.a1websitehosting.net">Inexpensive Web Hosting</a> services.
</p>
]]></content:encoded>
			<wfw:commentRSS>http://coldfusion.premiumwebsitehosting.net/coldfusion/page-478-opengl-super-bible-gltexcoord2f40-08-glvertex3fvsky_top0/feed/</wfw:commentRSS>
		</item>
		<item>
		<title>OpenGL Super Bible! Page  (How to cite a web site) 477 /* * Setup</title>
		<link>http://coldfusion.premiumwebsitehosting.net/coldfusion/opengl-super-bible-page-how-to-cite-a-web-site-477-setup/</link>
		<comments>http://coldfusion.premiumwebsitehosting.net/coldfusion/opengl-super-bible-page-how-to-cite-a-web-site-477-setup/#comments</comments>
		<pubDate>Sat, 19 Jan 2008 03:10:32 +0000</pubDate>
		<dc:creator>humphreyblogart</dc:creator>
		
	<category>Coldfusion</category>
		<guid isPermaLink="false">http://coldfusion.premiumwebsitehosting.net/coldfusion/opengl-super-bible-page-how-to-cite-a-web-site-477-setup/</guid>
		<description><![CDATA[OpenGL Super Bible! Page 477   /*   * Setup viewing transformations for the current position and * orientation  */   glMatrixMode(GL_PROJECTION); glLoadIdentity(); gluPerspective(45.0,   (float)rect->right / (float)rect->bottom,    0.1, 1000.0);   glMatrixMode(GL_MODELVIEW);   glPushMatrix(); glRotatef(Roll, 0.0, 0.0, 1.0); glRotatef(Pitch, -1.0, 0.0,   0.0); glRotatef(Heading, [...]]]></description>
			<content:encoded><![CDATA[<p>OpenGL Super Bible! Page 477   /*   * Setup viewing transformations for the current position and * orientation  */   glMatrixMode(GL_PROJECTION); glLoadIdentity(); gluPerspective(45.0,   (float)rect->right / (float)rect->bottom,    0.1, 1000.0);   glMatrixMode(GL_MODELVIEW);   glPushMatrix(); glRotatef(Roll, 0.0, 0.0, 1.0); glRotatef(Pitch, -1.0, 0.0,   0.0); glRotatef(Heading, 0.0, 1.0, 0.0); glTranslatef(-Position[0],   -Position[1], -Position[2]); glScalef(TERRAIN_SCALE, TERRAIN_SCALE,  TERRAIN_SCALE);    if (!(Moving || Drawing)) { /*    * Draw the sky  */ glDisable(GL_LIGHTING); glCallList(SkyTexture);   glBegin(GL_QUAD_STRIP);    for (i = 0; i < 4; i ++)   { glTexCoord2f((float)i, 0.0); glVertex3fv(sky_bottom[i]);   glTexCoord2f((float)i, 0.8); glVertex3fv(sky_top[i]);    };   glTexCoord2f(4.0, 0.0); glVertex3fv(sky_bottom[0]);    glTexCoord2f(4.0, 0.8); glVertex3fv(sky_top[0]); glEnd();    glBegin(GL_TRIANGLE_FAN); glTexCoord2f(0.5, 1.0); glVertex3f(0.0, TERRAIN_SIZE,   0.0);    for (i = 0; i < 4; i ++)   { glTexCoord2f((float)i, 0.8); glVertex3fv(sky_top[i]);    };    <br />Looking for affordable and reliable webhost to host and run your business application? Then look no more and go to <a href="http://mysql5.premiumwebsitehosting.net">servlet web hosting</a> services.
</p>
]]></content:encoded>
			<wfw:commentRSS>http://coldfusion.premiumwebsitehosting.net/coldfusion/opengl-super-bible-page-how-to-cite-a-web-site-477-setup/feed/</wfw:commentRSS>
		</item>
		<item>
		<title>Page 476 OpenGL Super Bible! static GLfloat sky_top[4][3]  (Affordable web design)</title>
		<link>http://coldfusion.premiumwebsitehosting.net/coldfusion/page-476-opengl-super-bible-static-glfloat-sky_top43-affordable-web-design/</link>
		<comments>http://coldfusion.premiumwebsitehosting.net/coldfusion/page-476-opengl-super-bible-static-glfloat-sky_top43-affordable-web-design/#comments</comments>
		<pubDate>Fri, 18 Jan 2008 06:17:24 +0000</pubDate>
		<dc:creator>humphreyblogart</dc:creator>
		
	<category>Coldfusion</category>
		<guid isPermaLink="false">http://coldfusion.premiumwebsitehosting.net/coldfusion/page-476-opengl-super-bible-static-glfloat-sky_top43-affordable-web-design/</guid>
		<description><![CDATA[Page 476 OpenGL Super Bible!   static GLfloat sky_top[4][3] =   { /* Sky coordinates */ { -TERRAIN_EDGE, TERRAIN_SIZE * 0.8, -TERRAIN_EDGE }, {   TERRAIN_EDGE, TERRAIN_SIZE * 0.8, -TERRAIN_EDGE }, { TERRAIN_EDGE, TERRAIN_SIZE   * 0.8, TERRAIN_EDGE }, { -TERRAIN_EDGE, TERRAIN_SIZE * 0.8, TERRAIN_EDGE }    }; static [...]]]></description>
			<content:encoded><![CDATA[<p>Page 476 OpenGL Super Bible!   static GLfloat sky_top[4][3] =   { /* Sky coordinates */ { -TERRAIN_EDGE, TERRAIN_SIZE * 0.8, -TERRAIN_EDGE }, {   TERRAIN_EDGE, TERRAIN_SIZE * 0.8, -TERRAIN_EDGE }, { TERRAIN_EDGE, TERRAIN_SIZE   * 0.8, TERRAIN_EDGE }, { -TERRAIN_EDGE, TERRAIN_SIZE * 0.8, TERRAIN_EDGE }    }; static GLfloat sky_bottom[4][3] = {    { -TERRAIN_EDGE, 0.0, -TERRAIN_EDGE }, { TERRAIN_EDGE, 0.0, -TERRAIN_EDGE }, {   TERRAIN_EDGE, 0.0, TERRAIN_EDGE }, { -TERRAIN_EDGE, 0.0, TERRAIN_EDGE }    }; static GLfloat sunpos[4] = { 0.0, 1.0, 0.0, 0.0 }; static GLfloat   suncolor[4] = { 64.0, 64.0, 64.0, 1.0 }; static GLfloat sunambient[4] = {   0.001, 0.001, 0.001, 1.0 };    /*   * Reset the viewport and clear the window to light blue  */ glViewport(0, 0,   rect->right, rect->bottom);   glClearColor(0.5, 0.5, 1.0, 1.0);   glEnable(GL_DEPTH_TEST);   if (Moving || Drawing) { /*    * Don t texture while flying or drawing; it s too slow  * Also, draw to the   back buffer for smooth animation. */ glDisable(GL_TEXTURE_2D);   glDrawBuffer(GL_BACK); } else {    /*   * Enable textures when we ve stopped moving or drawing. * This generates a nice   scene that we can printout or * save to a bitmap file  * * Because it takes   longer, we draw to the front buffer * so the user can see some progress  */   glEnable(GL_TEXTURE_2D); glTexEnvi(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE,   GL_DECAL); glDrawBuffer(GL_FRONT);    };   glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);    <br />You need excellent and relaible webhost company to host your web applications? Then pay a visit to <a href="http://www.a1websitehosting.net">Inexpensive Web Hosting</a> services.
</p>
]]></content:encoded>
			<wfw:commentRSS>http://coldfusion.premiumwebsitehosting.net/coldfusion/page-476-opengl-super-bible-static-glfloat-sky_top43-affordable-web-design/feed/</wfw:commentRSS>
		</item>
		<item>
		<title>OpenGL Super Bible!  (Top web site) Page 475 */ Roll +=</title>
		<link>http://coldfusion.premiumwebsitehosting.net/coldfusion/opengl-super-bible-top-web-site-page-475-roll/</link>
		<comments>http://coldfusion.premiumwebsitehosting.net/coldfusion/opengl-super-bible-top-web-site-page-475-roll/#comments</comments>
		<pubDate>Wed, 16 Jan 2008 08:05:20 +0000</pubDate>
		<dc:creator>humphreyblogart</dc:creator>
		
	<category>Coldfusion</category>
		<guid isPermaLink="false">http://coldfusion.premiumwebsitehosting.net/coldfusion/opengl-super-bible-top-web-site-page-475-roll/</guid>
		<description><![CDATA[OpenGL Super Bible! Page 475   */   Roll += movex; Pitch += movey * cos(Roll * M_PI / 180.0); Heading += movey *   sin(Roll * M_PI / 180.0);    if (Heading < 0.0) Heading += 360.0; else if (Heading >= 360.0) Heading -=   360.0;   [...]]]></description>
			<content:encoded><![CDATA[<p>OpenGL Super Bible! Page 475   */   Roll += movex; Pitch += movey * cos(Roll * M_PI / 180.0); Heading += movey *   sin(Roll * M_PI / 180.0);    if (Heading < 0.0) Heading += 360.0; else if (Heading >= 360.0) Heading -=   360.0;   if (Pitch < -180.0) Pitch += 360.0; else if (Pitch >= 180.0) Pitch -= 360.0;   if (Roll < -180.0) Roll += 360.0; else if (Roll >= 180.0) Roll -= 360.0;   /*   * Move based upon the current orientation  */ cheading = cos(Heading * M_PI /   180.0); sheading = sin(Heading * M_PI / 180.0); cpitch = cos(Pitch * M_PI /   180.0); spitch = sin(Pitch * M_PI / 180.0);   Position[0] += distance * sheading * cpitch; Position[2] -= distance * cheading   * cpitch; Position[1] += distance * spitch;   /*   * Redraw the window using the new position and orientation  */   GetClientRect(SceneWindow, &#038;rect); RepaintWindow(&#038;rect); }   /*   * &#8216;RepaintWindow()  - Redraw the client area with our scene. */ void   RepaintWindow(RECT *rect) /* I - Client area rectangle */ { int i; /* Looping   var */ int x, y; /* Terrain (x,y) location */ int last_type; /* Previous   terrain type */ int *type; /* Current terrain type */ GLfloat *height, /*   Current terrain height */ (*n)[3]; /* Current terrain normal */    <br />Searching for affordable and reliable webhost to host and run your web applications? Go to our <a href="http://www.premiumwebsitehosting.net">java web server</a> services and you will be pleased.
</p>
]]></content:encoded>
			<wfw:commentRSS>http://coldfusion.premiumwebsitehosting.net/coldfusion/opengl-super-bible-top-web-site-page-475-roll/feed/</wfw:commentRSS>
		</item>
		<item>
		<title>Page 474  (Web hosting faq) OpenGL Super Bible! i += buffer[i];</title>
		<link>http://coldfusion.premiumwebsitehosting.net/coldfusion/page-474-web-hosting-faq-opengl-super-bible-i-bufferi/</link>
		<comments>http://coldfusion.premiumwebsitehosting.net/coldfusion/page-474-web-hosting-faq-opengl-super-bible-i-bufferi/#comments</comments>
		<pubDate>Tue, 15 Jan 2008 10:09:07 +0000</pubDate>
		<dc:creator>humphreyblogart</dc:creator>
		
	<category>Coldfusion</category>
		<guid isPermaLink="false">http://coldfusion.premiumwebsitehosting.net/coldfusion/page-474-web-hosting-faq-opengl-super-bible-i-bufferi/</guid>
		<description><![CDATA[Page 474 OpenGL Super Bible!   i += buffer[i];   /*   * Fill-in the 4 corners of the selected cell  */ draw_cell(x, y); draw_cell(x +   1, y); draw_cell(x, y + 1); draw_cell(x + 1, y + 1);   /*   * Update lighting normals for the [...]]]></description>
			<content:encoded><![CDATA[<p>Page 474 OpenGL Super Bible!   i += buffer[i];   /*   * Fill-in the 4 corners of the selected cell  */ draw_cell(x, y); draw_cell(x +   1, y); draw_cell(x, y + 1); draw_cell(x + 1, y + 1);   /*   * Update lighting normals for the terrain. */ UpdateNormals(); }; }   /*   * &#8216;FlyTerrain()  - Fly using the given mouse position. */ void FlyTerrain(int   mousex, /* I - Horizontal mouse position */ int mousey) /* I - Vertical mouse   position */ { RECT rect; /* Current client rectangle */ GLfloat movex, movey;   /* Scale mouse movement */ double curtime, /* Current time in seconds */   distance; /* Distance to move */ GLfloat cheading, /* Cosine of heading */   sheading, /* Sine of heading */ cpitch, /* Cosine of pitch */ spitch; /* Sine   of pitch */ /*   * Get the current system time to figure out how far to move. */ curtime =   GetClock(); distance = 10.0 * (curtime - MoveTime); MoveTime = curtime;    /*   * See how far the mouse pointer is from the &#8216;center  (click) * position. */   movex = 0.05 * (mousex - CenterMouseXY.x); movey = 0.05 * (mousey -  CenterMouseXY.y);   /*   * Adjust roll, pitch, and heading according to the current * mouse inputs and   orientation.  <br />Note: In case you are looking for affordable and reliable webhost to host and run your j2ee application check Vision <a href="http://linux.javaservletwebsitehosting.com">J2ee Web Hosting</a> services.
</p>
]]></content:encoded>
			<wfw:commentRSS>http://coldfusion.premiumwebsitehosting.net/coldfusion/page-474-web-hosting-faq-opengl-super-bible-i-bufferi/feed/</wfw:commentRSS>
		</item>
		<item>
		<title>OpenGL Super Bible! Page 473 height = TerrainHeight[0];  (Mac os x web server)</title>
		<link>http://coldfusion.premiumwebsitehosting.net/coldfusion/opengl-super-bible-page-473-height-terrainheight0-mac-os-x-web-server/</link>
		<comments>http://coldfusion.premiumwebsitehosting.net/coldfusion/opengl-super-bible-page-473-height-terrainheight0-mac-os-x-web-server/#comments</comments>
		<pubDate>Mon, 14 Jan 2008 12:02:56 +0000</pubDate>
		<dc:creator>humphreyblogart</dc:creator>
		
	<category>Coldfusion</category>
		<guid isPermaLink="false">http://coldfusion.premiumwebsitehosting.net/coldfusion/opengl-super-bible-page-473-height-terrainheight0-mac-os-x-web-server/</guid>
		<description><![CDATA[OpenGL   Super Bible! Page 473   height = TerrainHeight[0]; glPushName(0); for (y = 0; y < (TERRAIN_SIZE - 1); y   ++, height ++) {    glLoadName(y);   glPushName(0);   for (x = 0; x < (TERRAIN_SIZE - 1); x ++, height ++)   { glLoadName(x); [...]]]></description>
			<content:encoded><![CDATA[<p>OpenGL   Super Bible! Page 473   height = TerrainHeight[0]; glPushName(0); for (y = 0; y < (TERRAIN_SIZE - 1); y   ++, height ++) {    glLoadName(y);   glPushName(0);   for (x = 0; x < (TERRAIN_SIZE - 1); x ++, height ++)   { glLoadName(x); glBegin(GL_POLYGON);    glVertex3f((GLfloat)(x - TERRAIN_EDGE), height[0], (GLfloat)(y -  TERRAIN_EDGE));   glVertex3f((GLfloat)(x - TERRAIN_EDGE), height[TERRAIN_SIZE], (GLfloat)(y -  TERRAIN_EDGE + 1));   glVertex3f((GLfloat)(x - TERRAIN_EDGE + 1), height[1], (GLfloat)(y -  TERRAIN_EDGE));   glVertex3f((GLfloat)(x - TERRAIN_EDGE + 1), height[TERRAIN_SIZE + 1],   (GLfloat)(y - TERRAIN_EDGE + 1));   glEnd(); };    glPopName(); }; glPopName();    glPopMatrix(); glFinish();    /*   * Get the 'hits  in the selection buffer  */ count = glRenderMode(GL_RENDER);   for (i = 0; i < count; i += 3) {    if (buffer[i] == 0) continue;    /*   * Each 'hit  will contain the following parameters: * * 0 - count (2) * 1 - Z   minimum value * 2 - Z maximum value * 3 - Y location in terrain * 4 - X   location in terrain */ x = buffer[i + 4]; y = buffer[i + 3];    <br />We recommend high quality webhost to host and run your jsp application: <a href="http://jsp.javaservletwebsitehosting.com">christian web host</a> services.
</p>
]]></content:encoded>
			<wfw:commentRSS>http://coldfusion.premiumwebsitehosting.net/coldfusion/opengl-super-bible-page-473-height-terrainheight0-mac-os-x-web-server/feed/</wfw:commentRSS>
		</item>
		<item>
		<title>Page 472 OpenGL Super Bible! count, /* Selection  (Space web hosting)</title>
		<link>http://coldfusion.premiumwebsitehosting.net/coldfusion/page-472-opengl-super-bible-count-selection-space-web-hosting/</link>
		<comments>http://coldfusion.premiumwebsitehosting.net/coldfusion/page-472-opengl-super-bible-count-selection-space-web-hosting/#comments</comments>
		<pubDate>Sun, 13 Jan 2008 16:11:53 +0000</pubDate>
		<dc:creator>humphreyblogart</dc:creator>
		
	<category>Coldfusion</category>
		<guid isPermaLink="false">http://coldfusion.premiumwebsitehosting.net/coldfusion/page-472-opengl-super-bible-count-selection-space-web-hosting/</guid>
		<description><![CDATA[Page 472 OpenGL Super Bible!   count, /* Selection count */ x, y; /* Terrain (x,y) location */ GLfloat   *height; /* Current height */ GLuint buffer[100]; /* Selection buffer */ GLint   viewport[4]; /* OpenGL viewport */ /*   * Get the current OpenGL viewport and make the vertical * [...]]]></description>
			<content:encoded><![CDATA[<p>Page 472 OpenGL Super Bible!   count, /* Selection count */ x, y; /* Terrain (x,y) location */ GLfloat   *height; /* Current height */ GLuint buffer[100]; /* Selection buffer */ GLint   viewport[4]; /* OpenGL viewport */ /*   * Get the current OpenGL viewport and make the vertical * mouse position start   from the bottom of the viewport. */ glGetIntegerv(GL_VIEWPORT, viewport);   mousey = viewport[3] - 1 - mousey;   /*   * Begin selection into a 100 &#8216;hit  buffer  * * Allow picks within 4 pixels of   the current mouse position. */ glSelectBuffer(100, buffer);   glRenderMode(GL_SELECT);    glInitNames(); glMatrixMode(GL_PROJECTION); glLoadIdentity();   gluPickMatrix((GLdouble)mousex, (GLdouble)mousey, 4.0, 4.0,    viewport); gluPerspective(45.0, (float)viewport[2] / (float)viewport[3], 0.1,   1000.0);   glMatrixMode(GL_MODELVIEW); glPushMatrix(); /*   * Rotate/translate for the current viewing position and * orientation. */   glRotatef(Roll, 0.0, 0.0, 1.0); glRotatef(Pitch, -1.0, 0.0, 0.0);   glRotatef(Heading, 0.0, 1.0, 0.0); glTranslatef(-Position[0],   -Position[1], -Position[2]); glScalef(TERRAIN_SCALE, TERRAIN_SCALE,  TERRAIN_SCALE);   /*   * Draw the terrain into the selection buffer. This is * done differently than   the RepaintWindow() function does * so that we can select individual cells   rather than whole * strips of one type. * * The select buffer has names pushed   on the stack for both * the X and Y locations in the terrain  */  <br />We would like to recommend you tested and proved <a href="http://jboss.premiumwebsitehosting.net">virtual web hosting</a> services, which you will surely find to be of great quality.
</p>
]]></content:encoded>
			<wfw:commentRSS>http://coldfusion.premiumwebsitehosting.net/coldfusion/page-472-opengl-super-bible-count-selection-space-web-hosting/feed/</wfw:commentRSS>
		</item>
	</channel>
</rss>
