Game Development Reference
In-Depth Information
topic elsewhere, you can visit http://www.packtpub.com/support and register to
have the files e-mailed directly to you.
Here we have the standard constructor, as well as an overridden Render() function
from the Direct3DBase base class. Alongside, we have a new function named Up-
date() , which will be explained in more detail when we cover the game loop later
in this chapter.
We add the following stub methods in Game.cpp to allow this to compile:
#include "pch.h"
#include "Game.h"
Game::Game(void)
{
}
void Game::Render()
{
}
void Game::Update(float totalTime, float
deltaTime)
{
}
Once these are in place you can compile to ensure everything works fine, before we
move on to the rest of the basic game structure.
Applications and windows
Windows 8 applications use a different window system compared to the Win32 days.
When the application starts, instead of describing a window that needs to be created,
you provide an implementation of IFrameworkView that allows your application to
respond to events such as resume, suspend, and resize.
Search WWH ::




Custom Search