Blamite Game Engine - Blam (Core)
rendering.h File Reference
#include <Windows.h>
#include <d3d11_1.h>
#include <d2d1_1.h>
#include <dwrite.h>
#include <string>
#include "components/3rdparty/imgui/imgui.h"

Go to the source code of this file.

Namespaces

 BlamRendering
 Namespace for things relating to rendering.
 
 BlamRendering::DirectX
 Namespace containing functions exclusive to DirectX.
 
 BlamRendering::DirectX::D2D
 Namespace containing functions relating to Direct2D.
 
 BlamRendering::DirectX::WIC
 Namespace containing functions relating to the Windows Imaging Component (WIC).
 
 BlamRendering::OpenGL
 Namespace containing functions exclusive to OpenGL.
 
 Blam
 Namespace surrounding all major engine components.
 

Macros

#define BLAM
 

Functions

BLAM ID2D1DeviceContext * BlamRendering::DirectX::D2D::GetD2DRenderTarget ()
 Retrieves the Direct2D render target. More...
 
BLAM ID2D1Factory * BlamRendering::DirectX::D2D::GetD2DFactory ()
 Retrieves the Direct2D factory. More...
 
BLAM IDWriteFactory * BlamRendering::DirectX::D2D::GetDWriteFactory ()
 Retrieves the DirectWrite factory. More...
 
BLAM HRESULT BlamRendering::DirectX::D2D::LoadFontFromFile (std::string id, std::string file_path)
 Loads a TrueType font from the specified file into the list of loaded font collections. More...
 
BLAM IWICImagingFactory * BlamRendering::DirectX::WIC::GetWICFactory ()
 Retrieves the WIC Imaging Factory. More...
 
BLAM HRESULT BlamRendering::DirectX::WIC::CreateD2DBitmapFromResource (int res_id, const char *res_type, ID2D1Bitmap **bitmap_pointer)
 Creates a Direct2D bitmap from an application resource. More...
 
BLAM HRESULT BlamRendering::DirectX::WIC::CreateD2DBitmapFromFile (std::wstring path, ID2D1Bitmap **bitmap_pointer)
 Creates a Direct2D bitmap from a file. More...
 
BLAM HRESULT BlamRendering::DirectX::WIC::CreateWICBitmapFromFile (std::wstring path, IWICBitmap **bitmap_pointer)
 Creates a WIC bitmap from a file. More...
 
BLAM HRESULT BlamRendering::DirectX::WIC::CreateWICBitmapFromMemory (void *data, int size, IWICBitmap **bitmap_pointer)
 Creates a WIC bitmap from a block of memory. More...
 
BLAM HRESULT BlamRendering::DirectX::WIC::ConvertWICBitmapToD2D (IWICBitmap *wic_bitmap, ID2D1Bitmap **d2d_bitmap)
 Converts a WIC bitmap to a D2D bitmap. More...
 
BLAM HRESULT BlamRendering::DirectX::WIC::ConvertWICBitmapToD2D (IWICBitmap *wic_bitmap, ID2D1Bitmap **d2d_bitmap, ID2D1RenderTarget *render_target)
 Converts a WIC bitmap to a D2D bitmap, with a specific render target. More...
 
BLAM HRESULT BlamRendering::DirectX::WIC::ConvertWICBitmapTo32bppPBGRA (IWICBitmap *source, IWICBitmap **destination)
 Converts a WIC bitmap to a WIC bitmap, with the 32 bits-per-pixe, PBGRA format. More...
 
BLAM HRESULT BlamRendering::DirectX::WIC::Initialize ()
 Initializes the Windows Imaging Component (WIC). More...
 
BLAM void BlamRendering::DirectX::WIC::Shutdown ()
 Shuts down the Windows Imaging Component (WIC). More...
 
BLAM ID3D11Device * BlamRendering::DirectX::GetD3DDevice ()
 Retrieves the current Direct3D device. More...
 
BLAM ID3D11DeviceContext * BlamRendering::DirectX::GetD3DContext ()
 Retrieves the current Direct3D context. More...
 
BLAM IDXGISwapChain * BlamRendering::DirectX::GetDXGISwapChain ()
 Retrieves the current DXGI Swap Chain. More...
 
BLAM ID3D11RenderTargetView * BlamRendering::DirectX::GetD3DRenderTargetView ()
 Retrieves the current Direct3D Render Target. More...
 
BLAM DXGI_SWAP_CHAIN_DESC BlamRendering::DirectX::GetSwapChainDesc ()
 Retrieves the current Direct3D Swap Chain description. More...
 
BLAM HRESULT BlamRendering::DirectX::Initialize (HWND hWnd)
 Initializes DirectX 11. More...
 
BLAM void BlamRendering::DirectX::Cleanup ()
 Cleans up all DirectX data. More...
 
BLAM HRESULT BlamRendering::DirectX::HandleWindowResize (LPARAM lParam)
 Handles a window resize event. More...
 
BLAM bool * BlamRendering::DirectX::RenderTargetClearing ()
 Retrieves whether or not to enable render target clearing. More...
 
BLAM void BlamRendering::DirectX::RenderLoop (bool debug)
 Renders everything to the screen. More...
 
BLAM void BlamRendering::DirectX::ShutdownRenderThread ()
 Instructs the rendering thread to stop running. More...
 
BLAM void BlamRendering::DirectX::RenderThread (bool debug)
 Instructs the engine to start rendering on a separate thread. More...
 
BLAM bool BlamRendering::DirectX::HasRenderThreadStopped ()
 Determines whether or not the render thread has finished stopping. More...
 
BLAM void BlamRendering::DirectX::SetClearColor (ImVec4 color)
 Changes the color to used to clear the render target. More...
 
BLAM ImVec4 * BlamRendering::DirectX::GetClearColor ()
 Retrieves the current color used to clear the render target. More...
 
BLAM HRESULT BlamRendering::DirectX::UpdateResolution (int x, int y)
 Changes the DirectX render target resolution. More...
 
BLAM ID3D11Texture2D ** BlamRendering::DirectX::GetLastFrameTexture ()
 Retrieves the last frame that was rendered. More...
 
BLAM HRESULT BlamRendering::DirectX::GetLastFrameTextureAlt (ID3D11Texture2D *texture)
 Retrieves the last frame that was rendered. More...
 
BLAM void BlamRendering::DirectX::ScreenshotDone ()
 Informs DirectX that the screenshot has finished being captured. More...
 
BLAM HRESULT BlamRendering::DirectX::GetLastFrameHResult ()
 Unused. More...
 
BLAM void BlamRendering::DirectX::DisplayDetailedCrashScreen (const char *expression, const char *file, int line, std::string details)
 Displays a detailed engine crash screen. More...
 
BLAM void BlamRendering::DirectX::DisplayBasicCrashScreen ()
 Displays a basic engine crash screen. More...
 
BLAM void BlamRendering::DirectX::DisplaySignalCrashScreen (int signal)
 Displays a signal-based engine crash screen. More...
 
BLAM void BlamRendering::SetClearColor (ImVec4 color)
 Changes the color to used to clear the render target. More...
 
BLAM void BlamRendering::ShowCrashScreen (const char *exc, const char *file, int line, std::string message)
 Displays the engine crash screen. More...
 
BLAM HRESULT BlamRendering::SetDisplayRes (int x, int y)
 Changes the game's display resolution. More...
 
BLAM void Blam::TakeScreenshot ()
 Captures the current frame and saves it to a file. More...
 

Macro Definition Documentation

◆ BLAM

#define BLAM