Example #1
0
CsceneRender::CsceneRender(unsigned int ww, unsigned int hh, float hAp, float vAp, float nearZ, float farZ, const std::string & label, bool visible) :
    Window(visible), 
    view_point_()  
{
    //init window and GL state
    setRenderParameters(ww, hh, hAp, vAp, nearZ, farZ);
    initWindow(label);
    this->initGL();
    
    //init model render lists
    modelList = glGenLists(1);
}
Example #2
0
/*-<==>-----------------------------------------------------------------
/ 
/---------------------------------------------------------------------*/
CCamera::CCamera() {
	// Initialize with some default parameters
  	setRenderParameters(320, 240, 60.0f);
	setView(VECTOR(0,0,0), VECTOR(0,0,1));
}