/
redgpu
/
ezEngine
Обзор
Документация
Войти
/
redgpu
/
ezEngine
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
dev
Code/EditorPlugins/Particle/EnginePluginParticle/ParticleAsset/ParticleView.cpp
26 строк
860 B
C-Core
Render Pipeline Blackboards (#1974)
06 июл 2026, 13:55
Не верифицирован
06 июл 2026, 13:55
5715bdc
Код
Авторство
О чём код?
#include <EnginePluginParticle/EnginePluginParticlePCH.h> #include <EnginePluginParticle/ParticleAsset/ParticleContext.h> #include <EnginePluginParticle/ParticleAsset/ParticleView.h> #include <RendererCore/Pipeline/View.h> ezParticleViewContext::ezParticleViewContext(ezParticleContext* pParticleContext) : ezEngineProcessViewContext(pParticleContext) { m_pParticleContext = pParticleContext; } ezParticleViewContext::~ezParticleViewContext() = default; void ezParticleViewContext::PositionThumbnailCamera(const ezBoundingBoxSphere& bounds) { m_Camera.SetCameraMode(ezCameraMode::PerspectiveFixedFovX, 45.0f, 0.1f, 1000.0f); FocusCameraOnObject(m_Camera, bounds, 45.0f, -ezVec3(-1.8f, 1.8f, 1.0f)); } ezViewHandle ezParticleViewContext::CreateView() { ezView* pView = CreateDefaultView("Particle Editor - View"); return pView->GetHandle(); }