Setup our vertex fvf code ddevice- vertex teamlrn
|
---|
|
---|
|
---|
|
---|
TeamLRN
CGameApp::SetupRenderStates
The only other function that has changed in the CGameApp class from Lab Project 5.2 is CGameApp::SetupRenderStates -- called when the device is first created or reset. The function now calls TestDeviceCaps to gather information about supported texture formats, filter types, etc. Then it sets up the render states we have come to expect. We set an ambient light level, enable lighting, enable specular highlights, and the Z-Buffer.
|
---|
|
---|
TeamLRN