11#pragma comment(lib, "d3d11.lib")
12#pragma comment(lib, "dxgi.lib")
13#pragma comment(lib, "d3dcompiler.lib")
19#include "imguiManager.h"
21#include "font_shader_class.h"
22#include "font_class.h"
23#include "text_class.h"
25using namespace DirectX;
52 virtual bool initialize(
int,
int,
bool, HWND,
bool,
float,
float);
66 virtual void begin_scene(
float,
float,
float,
float);
85 IDXGISwapChain* swap_chain;
170 int video_card_memory_;
171 char video_card_description_[128];
172 ID3D11Device* device_;
173 ID3D11DeviceContext* device_context_;
174 ID3D11RenderTargetView* render_target_view_;
175 ID3D11Texture2D* depth_stencil_buffer_;
176 ID3D11DepthStencilState* depth_stencil_state_;
177 ID3D11DepthStencilView* depth_stencil_view_;
178 ID3D11RasterizerState* raster_state_;
179 XMMATRIX projection_matrix_;
180 XMMATRIX world_matrix_;
181 XMMATRIX ortho_matrix_;
182 D3D11_VIEWPORT viewport_;
183 ID3D11DepthStencilState* depth_disabled_stencil_state_;
184 ID3D11BlendState* alpha_enable_blending_state_;
185 ID3D11BlendState* alpha_disable_blending_state_;
ID3D11Device * get_device()
Gets the Direct3D device.
virtual void end_scene()
Ends the rendering process for the current frame.
void reset_resources(int newWidth, int newHeight)
XMMATRIX get_world_matrix() const
void set_back_buffer_render_target()
ID3D11DeviceContext * get_device_context()
Gets the Direct3D device context.
XMMATRIX get_projection_matrix() const
void get_video_card_info(char *description, int &memory)
void enable_alpha_blending()
void resize_swap_chain(int width, int height)
void disable_alpha_blending()
d_3d_class()
Default constructor for d_3d_class.
XMMATRIX get_ortho_matrix() const
IDXGISwapChain * get_swap_chain()
void set_vsync(bool vsync)
Sets the vertical sync state.
void shutdown()
Releases Direct3D resources.
virtual void begin_scene(float, float, float, float)
Begins the rendering process for a new frame.
virtual bool initialize(int, int, bool, HWND, bool, float, float)
Initializes the Direct3D device and related resources.