本文整理汇总了C++中Starshatter::LensFlare方法的典型用法代码示例。如果您正苦于以下问题:C++ Starshatter::LensFlare方法的具体用法?C++ Starshatter::LensFlare怎么用?C++ Starshatter::LensFlare使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Starshatter
的用法示例。
在下文中一共展示了Starshatter::LensFlare方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: if
void
CmpSceneDlg::Show()
{
FormWindow::Show();
Starshatter* stars = Starshatter::GetInstance();
if (stars->InCutscene()) {
Sim* sim = Sim::GetSim();
if (sim) {
cam_view->UseCamera(CameraDirector::GetInstance()->GetCamera());
cam_view->UseScene(sim->GetScene());
}
// initialize lens flare bitmaps:
if (stars->LensFlare()) {
cam_view->LensFlareElements(flare1, flare4, flare2, flare3);
cam_view->LensFlare(true);
}
// if lens flare disabled, just create the corona:
else if (stars->Corona()) {
cam_view->LensFlareElements(flare1, 0, 0, 0);
cam_view->LensFlare(true);
}
if (disp_view) {
old_disp_win = disp_view->GetWindow();
disp_view->SetWindow(mov_scene);
mov_scene->AddView(disp_view);
}
if (subtitles_box) {
subtitles_box->SetText(stars->GetSubtitles());
subtitles_delay = 0;
subtitles_time = 0;
}
}
}
示例2: if
//.........这里部分代码省略.........
if (quit_view && quit_view->IsMenuShown()) {
quit_view->ExecFrame();
dialog_showing = true;
}
if (navdlg && navdlg->IsShown()) {
navdlg->SetShip(player);
navdlg->ExecFrame();
dialog_showing = true;
}
if (engdlg && engdlg->IsShown()) {
engdlg->SetShip(player);
engdlg->ExecFrame();
dialog_showing = true;
}
if (fltdlg && fltdlg->IsShown()) {
fltdlg->SetShip(player);
fltdlg->ExecFrame();
dialog_showing = true;
}
if (auddlg && auddlg->IsShown()) {
auddlg->ExecFrame();
dialog_showing = true;
}
if (viddlg && viddlg->IsShown()) {
viddlg->ExecFrame();
dialog_showing = true;
}
if (optdlg && optdlg->IsShown()) {
optdlg->ExecFrame();
dialog_showing = true;
}
if (ctldlg && ctldlg->IsShown()) {
ctldlg->ExecFrame();
dialog_showing = true;
}
if (keydlg && keydlg->IsShown()) {
keydlg->ExecFrame();
dialog_showing = true;
}
if (joydlg && joydlg->IsShown()) {
joydlg->ExecFrame();
dialog_showing = true;
}
if (moddlg && moddlg->IsShown()) {
moddlg->ExecFrame();
dialog_showing = true;
}
if (quantum_view && !dialog_showing) {
quantum_view->ExecFrame();
}
if (radio_view && !dialog_showing) {
radio_view->ExecFrame();
}
if (wep_view && !dialog_showing) {
wep_view->ExecFrame();
}
if (tac_view && !dialog_showing) {
if (cam_view)
tac_view->UseProjector(cam_view->GetProjector());
tac_view->ExecFrame();
}
}
if (disp_view) {
disp_view->ExecFrame();
}
}
Starshatter* stars = Starshatter::GetInstance();
if (stars) {
if (stars->LensFlare()) {
cam_view->LensFlareElements(flare1, flare4, flare2, flare3);
cam_view->LensFlare(true);
}
else if (stars->Corona()) {
cam_view->LensFlareElements(flare1, 0, 0, 0);
cam_view->LensFlare(true);
}
else {
cam_view->LensFlare(false);
}
}
}