OGRE-Next 4.0.0unstable
Object-Oriented Graphics Rendering Engine
Loading...
Searching...
No Matches
Ogre::ImguiManager Class Reference

#include <OgreImguiManager.h>

Public Member Functions

 ImguiManager ()
 
 ~ImguiManager ()
 
void drawIntoCompositor (RenderPassDescriptor *renderPassDesc, TextureGpu *anyTargetTexture, SceneManager *sceneManager, const Camera *currentCamera)
 
void prepareForRender (SceneManager *sceneManager)
 
void setupFont (ImFontAtlas *fontAtlas, bool bUseSynchronousUpload)
 Setups the font texture provided by IMGUI and uploads it to GPU.
 

Constructor & Destructor Documentation

◆ ImguiManager()

Ogre::ImguiManager::ImguiManager ( )

◆ ~ImguiManager()

Ogre::ImguiManager::~ImguiManager ( )

Member Function Documentation

◆ drawIntoCompositor()

void Ogre::ImguiManager::drawIntoCompositor ( RenderPassDescriptor renderPassDesc,
TextureGpu anyTargetTexture,
SceneManager sceneManager,
const Camera currentCamera 
)

◆ prepareForRender()

void Ogre::ImguiManager::prepareForRender ( SceneManager sceneManager)

◆ setupFont()

void Ogre::ImguiManager::setupFont ( ImFontAtlas *  fontAtlas,
bool  bUseSynchronousUpload 
)

Setups the font texture provided by IMGUI and uploads it to GPU.

Parameters
fontAtlasImgui's font atlas.
bUseSynchronousUploadWhen true, this call will return once we're done uploading to GPU. When false, this call will return almost immediately and upload will happen in the background. Note however if you never call TextureGpuManager::waitForStreamingCompletion or mFontTex->waitForData(), the texture may "glitch" if it's presented on screen before we are done uploading it.

The documentation for this class was generated from the following file: