00001 /* 00002 * $Id: rendergl.cpp 324 2008-10-01 18:04:45Z kybav1 $ 00003 * 00004 * Description : One line description of file. 00005 * Author : Vaclav Kyba <mail/Jabber: vaseo1@gmail.com> <ICQ: 98576293> 00006 * 00007 * Purpose : 00008 * These per material properties are ignored, they are treated globally as: 00009 * Material::DEPTH_TEST always on 00010 * Material::DEPTH_MASK always on 00011 * Material::DEPTH_FUNC always GL_LEQUAL 00012 * Material::TEX_GEN_FUNC_U_SPHERE and Material::TEX_GEN_FUNC_V_SPHERE on 00013 * Material::INVERT_ALPHA ignored 00014 */ 00015 00016 00017 #include <stdlib.h> 00018 #include <GL/glut.h> 00019 #include <wx/stopwatch.h> 00020 #include "rendergl.h" 00021 #include "../../scene.h" 00022 #include "../../camera.h" 00023 00024 using namespace VRUT; 00025 00026 00027 RenderGl::RenderGl(MODULE_ID _id, const wxString & _name, EventHandler * msgSink) 00028 : RenderGlModule(_id, _name, msgSink) 00029 { 00030 00031 } 00032 00033 RenderGl::~RenderGl() 00034 { 00035 } 00036 00037 00038 wxString RenderGl::GetDesc() const 00039 { 00040 return wxT("Create window and render given scene to it using BVH interface"); 00041 } 00042 00043 00044 bool 00045 RenderGl::Initialize() 00046 { 00047 return RenderGlModule::Initialize(); 00048 } 00049 00050 00051 void RenderGl::Draw() 00052 { 00053 RenderGlModule::Draw(); 00054 } 00055 00056 00057 void RenderGl::Deinitialize() 00058 { 00059 RenderGlModule::Deinitialize(); 00060 } 00061 00062 00063 00064 00065 void RenderGl::processEvent(wxCommandEvent & evt) 00066 { 00067 00068 RenderGlModule::processEvent(evt); 00069 }
1.5.5