Wazoo Enterprises

Having fun in game development!


BasicFog

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

BasicApplication

/**
* 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 of the Peon
* engine.
*/
#include "PeonMain.h"

int main( int argc, char* argv[] )
{	

	new peon::EngineCore();

	if(!peon::EngineCore::getSingleton().loadEngine(”BasicApplication”, “data\\system.ini”))
	{
		return -1;
	}

	return( peon::EngineCore::getSingleton().runEngine() );

}

Download

Download the source for this sample here: PeonSDK-BasicApplication