Blamite Game Engine - blam!  00296.01.12.21.0102.blamite
The core library for the Blamite Game Engine.
render_manage.cpp File Reference
#include "components/rendering/rendering.h"
#include <wrl/client.h>
#include <thread>
#include <dwrite.h>
#include <Strings/components/utils/converters/converters.h>
#include <Strings/components/utils/saferelease/saferelease.h>
#include "dw_font_loader/FontLoader.h"
#include "components/resources/debug_menu/debug_menu.h"
#include "components/settings/config/config.h"
#include "components/diagnostics/logger/logger.h"
#include "components/diagnostics/errors/errors.h"
#include "components/core/utils/utilities.h"
#include "components/core/utils/color/color.h"
#include "components/3rdparty/imgui/formats/dx11/imgui_impl_dx11.h"
#include "components/rendering/directx11/render_stack/render_stack.h"
#include "components/resources/engine_globals/globals.h"
#include "components/diagnostics/crash/crash.h"
#include "components/ui/imgui/debug_colors.h"
#include "components/resources/engine_definitions/engine_definitions.h"
#include "core.h"

Functions

HRESULT CreateRenderTarget ()
 Creates the render targets for Direct2D and Direct3D. More...
 
HRESULT CreateD2DTarget ()
 Creates the Direct2D render target. Should only ever be called in CreateRenderTarget() More...
 
HRESULT SetupDirect2D (HWND hwnd)
 
HRESULT SetupDXGI (HWND hWnd)
 Initialize DXGI. More...
 
void ReleaseRenderTarget ()
 Release the DirectX render target. More...
 
HRESULT HandleWindowResizeMain ()
 Main function to handle window resize events. Should only be called by BlamRendering::DirectX::HandleWindowReisze() More...
 

Variables

HRESULT screenshot_hr
 The result of the screenshot capture attempt. Should be removed. More...
 
bool crash_screen = false
 Whether or not to show the crash screen. More...
 
bool ready_to_submit_report = false
 Whether or not the crash screen has been displayed. More...
 
bool crash_report_started = false
 Whether or not the process to submit data to Sentry has been started. More...
 
std::string crash_message = "no additional info supplied"
 The message to display on the crash screen. More...
 
ImVec4 clear_col = ImColor(114, 144, 154)
 The color to use for render target clearing. More...
 

Function Documentation

◆ CreateD2DTarget()

HRESULT CreateD2DTarget ( )

Creates the Direct2D render target. Should only ever be called in CreateRenderTarget()

◆ CreateRenderTarget()

HRESULT CreateRenderTarget ( )

Creates the render targets for Direct2D and Direct3D.

◆ HandleWindowResizeMain()

HRESULT HandleWindowResizeMain ( )

Main function to handle window resize events. Should only be called by BlamRendering::DirectX::HandleWindowReisze()

◆ ReleaseRenderTarget()

void ReleaseRenderTarget ( )

Release the DirectX render target.

◆ SetupDirect2D()

HRESULT SetupDirect2D ( HWND  hwnd)

◆ SetupDXGI()

HRESULT SetupDXGI ( HWND  hWnd)

Initialize DXGI.

Variable Documentation

◆ clear_col

ImVec4 clear_col = ImColor(114, 144, 154)

The color to use for render target clearing.

◆ crash_message

std::string crash_message = "no additional info supplied"

The message to display on the crash screen.

◆ crash_report_started

bool crash_report_started = false

Whether or not the process to submit data to Sentry has been started.

◆ crash_screen

bool crash_screen = false

Whether or not to show the crash screen.

◆ ready_to_submit_report

bool ready_to_submit_report = false

Whether or not the crash screen has been displayed.

◆ screenshot_hr

HRESULT screenshot_hr

The result of the screenshot capture attempt. Should be removed.