37 virtual bool initialize(
int,
int,
bool, HWND,
bool,
float,
float);
40 virtual void begin_scene(
float,
float,
float,
float);
41 virtual void end_scene();
43 ID3D11Device* get_device();
44 ID3D11DeviceContext* get_device_context();
46 IDXGISwapChain* swap_chain;
47 IDXGISwapChain* get_swap_chain();
48 void resize_swap_chain(
int,
int);
49 void set_vsync(
bool vsync);
52 XMMATRIX get_projection_matrix()
const {
return projection_matrix_; };
53 XMMATRIX get_world_matrix()
const {
return world_matrix_;};
54 XMMATRIX get_ortho_matrix()
const {
return ortho_matrix_; };
56 void get_video_card_info(
char*,
int&);
58 void set_back_buffer_render_target();
59 void reset_viewport();
61 void release_resources();
62 void reset_resources(
int newWidth,
int newHeight);
64 void turn_z_buffer_on();
65 void turn_z_buffer_off();
67 void enable_alpha_blending();
68 void disable_alpha_blending();
72 int video_card_memory_;
73 char video_card_description_[128];
74 ID3D11Device* device_;
75 ID3D11DeviceContext* device_context_;
76 ID3D11RenderTargetView* render_target_view_;
77 ID3D11Texture2D* depth_stencil_buffer_;
78 ID3D11DepthStencilState* depth_stencil_state_;
79 ID3D11DepthStencilView* depth_stencil_view_;
80 ID3D11RasterizerState* raster_state_;
81 XMMATRIX projection_matrix_;
82 XMMATRIX world_matrix_;
83 XMMATRIX ortho_matrix_;
84 D3D11_VIEWPORT viewport_;
85 ID3D11DepthStencilState* depth_disabled_stencil_state_;
86 ID3D11BlendState* alpha_enable_blending_state_;
87 ID3D11BlendState* alpha_disable_blending_state_;