Initializing tree graphics
To load the textures and initialize the vertex and index buffers of a CTree object, call CTreeRI::InitGfx(). Note the hierarchy of the tree classes:

In reference to the above diagram:
CCoreis defined in the Core library.CTreeis used as an alias forCCoreinInclude/SpeedTree/Forest/Forest.h.CTreeRIis a templated class in need of platform-specific rendering policies."Render Policies" represents the render policies (textures, shaders, vertex buffers, etc) for any of the supported SpeedTree platforms.
CTreeRenderis defined in each of the platform's renderer header files (e.g. OpenGLRenderer.h) and is aCTreeRIobject with the appropriate render policies passed in as template parameters.
The typical order for initializing a tree object is:
Load an .stsdk file or memory block into a
CTreeRIobject usingCTreeRI::LoadTree()(CTreeRIis derived fromCCore).Call
CTreeRI::InitGfx()of that tree object so that it will be ready to render using the Render Interface library.
Note
The source files MyPopulate.cpp/h give an example of how to load trees and initialize their graphics. Specifically, see CMyPopulate::LoadBaseTree() and CMyPopulate::InitBaseTreeGraphics().