Initializing Tree Graphics

Render Interface Library

To load the textures and initialize the vertex and index buffers of a CTree object, call CForestRI::InitTreeGraphics(). Note the hierarchy of the tree classes:









Only a CTreeRender object can be passed into CForestRI::InitTreeGraphics(). The typical order for initializing a tree object is:

Note: The source files MyPopulate.cpp/h give an example of how to load trees and initialize their graphics.