示例#1
0
void wxGL_PMFCanvas::Reinit(bool should_reset_view)
{
	previus_focus = NULL;

	if (FreezeRender)// don't do this if we're already froze
		return;

	FreezeRender = true;
	while (IsRendering);
	int itemp;
	wxConfigBase *pConfig = wxConfigBase::Get();
	pConfig->SetPath(_T("/gr_options/"));
	pConfig->Read(_("use_vertex_buffer_objects"), &itemp, 0); // default to off
	UseVBOs = (itemp == 1);
	model.init_vertex_buffers(itemp == 1);
	if (model.GetSOBJCount())
	{
		if (should_reset_view) {
			reset_view();
		}

		reload_textures();
	}

	static geo_sphere sphere(3);
	if (GLEE_ARB_vertex_buffer_object)
		omni_point_buffer = sphere.make_vertex_buffer(3);


	FreezeRender = false;
}
示例#2
0
Java_com_sharkable_sharkengine_DemoRenderer_nativeReloadTextures(JNIEnv *env, jobject thiz) {
  reload_textures();
}