Archive for February 12th, 2008
You are browsing the archives of 2008 February 12.
You are browsing the archives of 2008 February 12.
Purpose
One of the first and most handy way to display state or status information back to the player is by printing text to the screen. We simply load a texture of our desired alphabet/font, then create a display list containing the letters.
Once we pass a string of text to render, we simply go through each [...]
Purpose
This code sample demonstrates how to use some basic fog properties for using it in an OpenGL scene. If you use the up and down arrows, it will move the box towards and away from the camera which demonstrates how it comes out of the fog.
Download
Get the project here: PeonSDK-BasicFog
Create a simple OpenGL display list using the Peon SDK.
Downloads
The project is available here: PeonSDK-BasicDisplayList
/**
* This source code is part of the samples for “Game Programming in C++: Start to Finish”.
*
* @Author : Erik Yuzwa
* @Date : 09/01/2005
* @Version: 1.0
*
* @Goal: The purpose of this code sample is to demonstrate how to create a spinning/rotating
* cube using a display list.
*/
#include “PeonMain.h”
#define TEX_0 1
class MainApp : public peon::IApplication
{
private:
GLuint [...]
/**
* This source code is part of the samples for “Game Programming in C++: Start to Finish”.
*
* It demonstrates the basic startup way of getting a Peon run application to work.
*
* @Author : Erik Yuzwa
* @Date : 09/01/2005
* @Version: 1.0
*
* @Goal: The goal of this sample is to demonstrate a real small sample [...]